Queries Smart Access Gateway (SAG) instances.
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
smartag:DescribeSmartAccessGateways | Read |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | No | The ID of the region where the SAG instance is deployed. | cn-shanghai |
AssociatedCcnId | string | No | The ID of the CCN instance with which the SAG instance is associated. | ccn-bxuau4ezctt**** |
SmartAGId | string | No | The ID of the SAG instance. | sag-6z21oj0vjjrx6s**** |
Status | string | No | The status of the SAG instance. Valid values:
| Active |
Name | string | No | The name of the SAG instance. The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter. | nametest |
PageSize | integer | No | The number of entries to return on each page. Default value: 10. Valid values: 1 to 50. | 10 |
PageNumber | integer | No | The number of the page to return. Default value: 1. | 1 |
SerialNumber | string | No | The serial number of the SAG device. | sag32a3**** |
AclIds | string | No | The ID of the ACL with which the SAG instance is associated. | acl-xhwhyuo43l0n**** |
UnboundAclIds | string | No | The ID of the ACL rule. Specifies that the SAG instance which is not associated with the ACL is queried. Separate ACL IDs with commas (,). | acl-sjfbgngj**** |
InstanceType | string | No | The type of the SAG instance. Valid values:
| hardware |
CanAssociateQos | boolean | No | Specifies whether the SAG instance can be associated with a quality of service (QoS) policy. Valid values:
Specifies whether to query SAG instances that cannot be associated with QoS policies. | false |
HardwareType | string | No | The model of SAG device. Valid values:
| sag-100wm |
SoftwareVersion | string | No | The software version of the SAG device. | 2.3.0.0 |
VersionComparator | string | No | The version filter. Valid values:
| equals |
BusinessState | string | No | The business status of the SAG instance. Valid values:
| Normal |
ResourceGroupId | string | No | The ID of the resource group to which the SAG instance belongs. | rg-acfm2iu4fnc**** |
SmartAGIds | array | No | The IDs of the SAG instances. | |
string | No | The ID of the SAG instance. | sag-6z21oj0vjjrx6s**** | |
AssociatedCcnName | string | No | The name of the associated CCN instance. The name must be 2 to 100 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. | ccn |
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalCount": 1,
"PageSize": 10,
"RequestId": "ADE68CEE-8E4F-4D0B-9EE9-2C2FFAABF41F",
"PageNumber": 1,
"SmartAccessGateways": {
"SmartAccessGateway": [
{
"SerialNumber": "sage6gsdllbid****,sage6nniq3dqa****",
"Status": "Active",
"UpBandwidth4G": 3,
"BackupStatus": "Active",
"IdaasApplicationId": "idaas-cn-hangzhou-l7j0wf0crzea****",
"SoftwareVersion": "2.3.0.0",
"CreateTime": 1622617250000,
"SmartAGId": "sag-6z21oj0vjjrx6s****",
"UpBandwidthWan": 2,
"City": "cn-shanghai",
"AclIds": "acl-shfhfhhfbnvkdg****",
"QosIds": "qos-djh****",
"IRIds": "ir-7unf5nom01ygrg****",
"CidrBlock": "10.0.9.0/24",
"Description": "docdesc",
"IpsecStatus": "up",
"EnterpriseCode": "12P****",
"DpiStatus": "Off",
"AssociatedCcnId": "ccn-iz26o9zye6lhoo****",
"Name": "testname",
"HardwareVersion": "sag-100wm",
"IdaasId": "idaas-cn-hangzhou-1ahixtl****",
"DataPlan": 5,
"AssociatedCcnName": "ccn",
"ResellerUid": "25346073170691****",
"DpiMonitorStatus": "Inactive",
"MaxBandwidth": "50M",
"SmartAGUid": 1210123456123456,
"BackupSoftwareVersion": "2.3.0.0",
"EndTime": 1628265600000,
"ResellerInstanceId": "sag-v0fkpk4akfz5****",
"VpnStatus": "down",
"RoutingStrategy": "static",
"SecurityLockThreshold": 3600,
"Links": {
"Link": [
{
"Type": "ccn",
"Status": "Active",
"EndTime": 1628265600000,
"Bandwidth": "50M",
"RelateInstanceRegionId": "cn-shanghai",
"RelateInstanceId": "ccn-iz26o9zye6lhoo****",
"InstanceId": "sag-6z21oj0vjjrx6s****",
"CommodityType": "smartag"
}
]
},
"ResourceGroupId": "rg-acfm2iu4fnc****",
"UserCount": 3,
"AccessPointId": "238",
"ApplicationBandwidthPackageId": "abwp-7963l7iqnquyj3****",
"AccelerateBandwidth": 1,
"EnableSoftwareConnectionAudit": true,
"Position": "\\[{\\\\\"adcode\\\\\":\\\\\"\\\\\",\\\\\"label\\\\\":\\\\\"Jimo District, Qingdao, Shandong province\\\\\",\\\\\"value\\\\\":\\\\\"B02140800T\\\\\",\\\\\"center\\\\\":\\\\\"120.989576,36.487512\\\\\",\\\\\"\\_new\\\\\":\\\\\"true\\\\\"}]\n",
"Isp": "China Telecom\n",
"EnableAdvancedMonitor": true
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | Param.InvalidVersionComparator | The specified version comparison operator is invalid. | The specified version comparison operator is invalid. |
400 | InvalidRegionID | The specified regionId does not exist. | The specified region ID does not exist. |
403 | Forbidden | User not authorized to operate on the specified resource. | You do not have permissions to manage the specified resource. |
For a list of error codes, visit the Service error codes.