All Products
Search
Document Center

Smart Access Gateway:DescribeSmartAccessGatewayAttribute

Last Updated:Mar 29, 2024

Queries the information about a Smart Access Gateway (SAG) instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
smartag:DescribeSmartAccessGatewayAttributeRead
  • SmartAccessGateway
    acs:smartag:{#regionId}:{#accountId}:smartag/{#SmartAGId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the region where the SAG instance is deployed.

You can call the DescribeRegions operation to query the most recent region list.

cn-shanghai
SmartAGIdstringYes

The ID of the SAG instance.

sag-6z21oj0vjjrx****

Response parameters

ParameterTypeDescriptionExample
object
UpBandwidth4Ginteger

The maximum upstream bandwidth of 4G network connections established by the SAG device. Unit: Mbit/s.

3
Descriptionstring

The description of the SAG instance.

testdesc
EndTimelong

The timestamp when the SAG instance expires.

1628265600000
ResourceGroupIdstring

The ID of the resource group to which the SAG instance belongs.

rg-acfm2iu4fnc****
UserCountinteger

The number of client accounts on the SAG instance.

3
AssociatedCcnNamestring

The ID of the Cloud Connect Network (CCN) instance with which the SAG instance is associated.

testname
MaxBandwidthstring

The maximum bandwidth value of the SAG instance. Unit: Mbit/s.

50 M
VpnStatusstring

The status of the VPN connection. Valid values:

  • up: normal
  • down: abnormal
down
BoxControllerIpstring

The public IP address of the active SAG device.

112.XX.XX.25
UpBandwidthWaninteger

The maximum upstream bandwidth of network connections established on the WAN port of the SAG device. Unit: Mbit/s.

4
CidrBlockstring

The private CIDR block of the destination network with which the on-premises network or client needs to communicate.

10.0.9.0/24
QosIdsarray

The ID of the quality of service (QoS) policy with which the SAG instance is associated.

string
qos-yca8p30w1jcrbt****
IRIdsarray

The ID of the smart routing policy with which the SAG instance is associated.

string
ir-yca8p30w1jcrbt****
Devicesobject []

The information about the SAG device.

SerialNumberstring

The serial number of the SAG device.

sage6gsdllbid****"
HaStatestring

Indicates whether the SAG device is an active or standby device. Valid values:

  • Active: an active device
  • Standby: a standby device
Active
SecretKeystring

The key of the SAG device.

+T4nV8xkS4****
DpiSignatureDbVersionstring

The version of the database that is used by the deep packet inspection (DPI) feature of the SAG device.

20201117_1_0-0.0.1
SoftwareVersionstring

The software version of the SAG device.

2.3.0.0
DistributeSkStatusinteger

Indicates whether the key of the SAG device is activated. Valid values:

  • 1: yes
  • 0: no
1
MonitorVersionstring

The monitoring version of the SAG device.

0.1.11.17
HcStatestring

The health check status of the SAG device. Valid values:

  • online: connected to Alibaba Cloud
  • offline: disconnected from Alibaba Cloud
online
Namestring

The name of the SAG instance.

testname
OptimizationTypeboolean

The transmission optimization type of the SAG instance. If transmission optimization is enabled, the default value is fec.

fec
IpsecStatusstring

The status of the IPsec-VPN connection. Valid values:

  • up: normal
  • down: abnormal
up
RoutingStrategystring

The method that the SAG instance uses to advertise routes to Alibaba Cloud.

  • static: static routing
  • dynamic: dynamic routing
static
AssociatedCcnIdstring

The ID of the Cloud Connect Network (CCN) instance with which the SAG instance is associated.

ccn-iz26o9zye6lhoo****
FlowLogIdsarray

The ID of the flow log with which the SAG instance is associated.

string
fl-0vv40lyu2un5qh****
SmartAGIdstring

The ID of the SAG instance.

sag-6z21oj0vjjrx6s****
InstanceTypestring

The type of the SAG instance. Valid values:

  • sag-1000: indicates an SAG CPE instance and the instance is associated with an SAG-1000 device.
  • sag-10wm: indicates an SAG CPE instance and the instance is associated with an SAG-100WM device.
  • sag-software: indicates an SAG app instance.
  • sag-vcpe: an SAG vCPE instance.
sag-vcpe
ResellerUidstring

The ID of the third-party reseller.

1210123456123456
SecurityLockThresholdinteger

The time threshold. If the SAG device remains disconnected for the specified period of time, the SAG device is locked.

Unit: seconds.

3600
Statusstring

The status of the SAG instance. Valid values:

  • Ordered: The order is to be shipped.
  • Delivered: The SAG instance is shipped.
  • Received: The SAG instance is activated.
  • Unconfirmed: The SAG instance is to be confirmed.
  • Active: The SAG instance is available.
  • Offline: The SAG instance is disconnected.
  • Arrearage: The SAG device is locked due to overdue payments.
Active
RequestIdstring

The ID of the request.

F02D092B-A0B7-4BA1-BCA7-014B953C5DC7
CreateTimelong

The timestamp when the SAG instance was created.

1622617250000
DataPlanlong

The data transfer plan of the SAG instance. Unit: GB.

Note Each client account has a data transfer plan free of charge for 5 GB each month.
5
EnableOptimizationboolean

Indicates whether the transmission optimization feature is enabled.

  • true: yes
  • false: no
false
Citystring

The ID of the city where the SAG device is deployed.

cn-shanghai
ResellerInstanceIdstring

The ID of the instance provided by the third-party reseller.

sag-v0fkpk4akfz5******
SerialNumberstring

The serial number of the SAG device.

sage6gsdllbidl****,sage6nniq3d****
BackupBoxControllerIpstring

The public IP address of the standby SAG device.

112.XX.XX.27
TrafficMasterSnstring

The serial number of the active SAG device.

sage6nniq3d****
AccessPointIdstring

The ID of the access point for the SAG instance.

238
HealthCheckTargetIpstring

The IP address of the virtual border router (VBR).

Note When you create a health check for an Express Connect circuit, you must specify the IP address of the VBR as the destination address.
100.XX.XX.144
EndTimelong

The timestamp when the connection expires.

1628265600000
Statusstring

The status of the network connection.

Valid values:

  • Ordered: The order is to be shipped.
  • Delivered: The order is shipped.
  • Offline: The connection is disconnected.
  • Active: The connection is available.
  • Arrearage: The connection is locked due to overdue payments.

The status of the Express Connect circuit:

  • normal: working as expected.
  • arrears: locked due to overdue payments.
Active
Typestring

The type of the network connection. Valid values:

  • ccn: The on-premises network is connected to Alibaba Cloud through CCN.
  • vbr: indicates that the on-premises network is connected to Alibaba Cloud through VBRs and Express Connect circuits.
ccn
Bandwidthstring

The bandwidth of the connection. Unit: Mbit/s.

50 M
RelateInstanceRegionIdstring

The region ID of the instance with which the connection is associated.

cn-shanghai
RelateInstanceIdstring

The ID of the instance associated with the connection.

ccn-iz26o9zye6lho****
InstanceIdstring

The ID of the product instance.

sag-6z21oj0vjjrx****
CommodityTypestring

The product type of bandwidth. Valid values:

  • bandwidth: The SAG instance and bandwidth resources can be separately purchased.
  • smartag: The SAG instance and bandwidth resources must be purchased as a bundle.
smartag
AclIdsarray

The ID of the access control list (ACL) with which the SAG instance is associated.

string
acl-9p14e8y1red6kv****
ApplicationBandwidthPackageIdstring

The ID of the bandwidth plan for application acceleration that is associated with the SAG instance.

abwp-7963l7iqnquyj3****
ApplicationBandwidthPackageNamestring

The name of the bandwidth plan for application acceleration that is associated with the SAG instance.

testname
AccelerateBandwidthlong

The maximum bandwidth value for application acceleration. Unit: Mbit/s.

1
ApplicationBandwidthPackageBussinessStatusstring

The status of the bandwidth plan for application acceleration. Valid value:

  • Abnormal: abnormal
  • Normal: normal
Normal
ApplicationBandwidthPackageOperationLocksobject

Indicates whether the bandwidth plan is locked.

LockTypestring

The lock mode of the instance. The value is set to FinancialLocked.

FinancialLocked
LockReasonstring

The reason why the instance was locked.

Message
Positionstring

The location of the SAG instance.

EnableSoftwareConnectionAuditboolean

Indicates whether the audit log for connections to the SAG app instance is enabled. Valid values:

  • true: enabled
  • false: disabled
true

Examples

Sample success responses

JSONformat

{
  "UpBandwidth4G": 3,
  "Description": "testdesc",
  "EndTime": 1628265600000,
  "ResourceGroupId": "rg-acfm2iu4fnc****",
  "UserCount": 3,
  "AssociatedCcnName": "testname",
  "MaxBandwidth": "50 M",
  "VpnStatus": "down",
  "BoxControllerIp": "112.XX.XX.25",
  "UpBandwidthWan": 4,
  "CidrBlock": "10.0.9.0/24",
  "QosIds": {
    "QosId": [
      "qos-yca8p30w1jcrbt****"
    ]
  },
  "IRIds": {
    "IRId": [
      "ir-yca8p30w1jcrbt****"
    ]
  },
  "Devices": {
    "Device": [
      {
        "SerialNumber": "sage6gsdllbid****\"",
        "HaState": "Active",
        "SecretKey": "+T4nV8xkS4****",
        "DpiSignatureDbVersion": "20201117_1_0-0.0.1",
        "SoftwareVersion": "2.3.0.0",
        "DistributeSkStatus": 1,
        "MonitorVersion": "0.1.11.17",
        "HcState": "online"
      }
    ]
  },
  "Name": "testname",
  "OptimizationType": true,
  "IpsecStatus": "up",
  "RoutingStrategy": "static",
  "AssociatedCcnId": "ccn-iz26o9zye6lhoo****",
  "FlowLogIds": {
    "FlowLogId": [
      "fl-0vv40lyu2un5qh****"
    ]
  },
  "SmartAGId": "sag-6z21oj0vjjrx6s****",
  "InstanceType": "sag-vcpe",
  "ResellerUid": "1210123456123456",
  "SecurityLockThreshold": 3600,
  "Status": "Active",
  "RequestId": "F02D092B-A0B7-4BA1-BCA7-014B953C5DC7",
  "CreateTime": 1622617250000,
  "DataPlan": 5,
  "EnableOptimization": false,
  "City": "cn-shanghai",
  "ResellerInstanceId": "sag-v0fkpk4akfz5******",
  "SerialNumber": "sage6gsdllbidl****,sage6nniq3d****",
  "BackupBoxControllerIp": "112.XX.XX.27",
  "TrafficMasterSn": "sage6nniq3d****",
  "AccessPointId": "238",
  "Links": {
    "Link": [
      {
        "HealthCheckTargetIp": "100.XX.XX.144",
        "EndTime": 1628265600000,
        "Status": "Active",
        "Type": "ccn",
        "Bandwidth": "50 M",
        "RelateInstanceRegionId": "cn-shanghai",
        "RelateInstanceId": "ccn-iz26o9zye6lho****",
        "InstanceId": "sag-6z21oj0vjjrx****",
        "CommodityType": "smartag"
      }
    ]
  },
  "AclIds": {
    "AclId": [
      "acl-9p14e8y1red6kv****"
    ]
  },
  "ApplicationBandwidthPackageId": "abwp-7963l7iqnquyj3****",
  "ApplicationBandwidthPackageName": "testname",
  "AccelerateBandwidth": 1,
  "ApplicationBandwidthPackageBussinessStatus": "Normal",
  "ApplicationBandwidthPackageOperationLocks": {
    "LockType": "FinancialLocked",
    "LockReason": "Message"
  },
  "Position": "",
  "EnableSoftwareConnectionAudit": true
}

Error codes

HTTP status codeError codeError messageDescription
400SAG.InstanceNoFoundThe specified SAG instance does not exist.The specified SAG instance does not exist.

For a list of error codes, visit the Service error codes.