Queries information about a Smart Access Gateway device by calling the DescribeSAGDeviceInfo operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
smartag:DescribeSAGDeviceInfo |
get |
*SmartAccessGateway
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region where the Smart Access Gateway instance is deployed. You can call the DescribeRegions operation to query region IDs. |
cn-shanghai |
| SmartAGId |
string |
Yes |
The instance ID of the Smart Access Gateway. |
sag-7f3d9b6jwnuqn6**** |
| SmartAGSn |
string |
Yes |
The serial number of the associated Smart Access Gateway device. |
sag32a30**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| ServiceIP |
string |
The service IP address of the Smart Access Gateway device. |
42.XX.XX.151 |
| ControllerState |
string |
The control status of the Smart Access Gateway device. Valid values:
|
Normal |
| RequestId |
string |
The request ID. |
B6A991F4-F533-1627-8144-B64E01C5EE85 |
| SynStatus |
string |
The synchronization status between the local Smart Access Gateway device and the cloud. Valid values:
|
Unsynchronized |
| SmartAGType |
string |
The type of the Smart Access Gateway device. Valid values:
|
sag-100wm |
| Version |
string |
The software version that runs on the Smart Access Gateway device. |
2.3.1.1 |
| VpnState |
string |
The VPN connection status of the Smart Access Gateway device. Valid values:
|
Abnormal |
| StartupTime |
string |
The startup time of the Smart Access Gateway device. |
2021-06-15 17:33:43 |
| LastConnectedControllerTime |
string |
The most recent time when the Smart Access Gateway device connected to the controller. |
2021-07-14 00:27:48 |
| ResettableStatus |
string |
Indicates whether the reset button of the Smart Access Gateway device is enabled. Valid values:
|
Enabled |
Examples
Success response
JSON format
{
"ServiceIP": "42.XX.XX.151",
"ControllerState": "Normal",
"RequestId": "B6A991F4-F533-1627-8144-B64E01C5EE85",
"SynStatus": "Unsynchronized",
"SmartAGType": "sag-100wm",
"Version": "2.3.1.1",
"VpnState": "Abnormal",
"StartupTime": "2021-06-15 17:33:43",
"LastConnectedControllerTime": "2021-07-14 00:27:48",
"ResettableStatus": "Enabled"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | SAG.InstanceNoFound | The specified SAG instance does not exist. | The specified SAG instance does not exist. |
| 400 | SAG.SoftwareNotSupport | The specified SAG software edition instance does not support ACL. | The specified SAG software edition instance does not support ACL. |
| 400 | InstanceNotExit | The specified instance does not exist. | The specified instance does not exist. |
| 400 | ConfigUnsynchronized | The network configuration is not synchronized. | Network settings are not synchronized. |
| 400 | SmartAccessGatewayNotActivated | The specified Smart Access Gateway has not been activated. | The specified SAG instance is inactive. You must activate the instance first. |
| 400 | SmartAccessGatewayInArrears | The specified Smart Access Gateway has expired. | The specified Smart Access Gateway has expired. |
| 400 | SmartAccessGatewayOffline | The request cannot be completed. The Smart Access Gateway is offline. | The SAG device is disconnected. The request cannot be processed. |
| 403 | FeatureNotSupport | The current edition of the smart access gateway does not support this feature. | The current version of Smart Access Gateway does not support this feature. |
| 403 | FeatureNotSupportForActiveSmartAG | The current edition of the active smart access gateway does not support this feature. | The current edition of the active SAG instance does not support this feature. |
| 403 | FeatureNotSupportForStandBySmartAG | The current edition of the standby smart access gateway does not support this feature. | The current version of Smart Access Gateway does not support this feature. |
| 403 | SmartAccessGatewayNotOnline | The specified smart access gateway is not online. | The specified SAG device is disconnected. The operation cannot be processed. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.