Lists the configured service addresses for a specified Smart Access Gateway device.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
smartag:ListAvailableServiceAddress |
list |
*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. Call the DescribeRegions operation to obtain the region ID. |
cn-shanghai |
| AddressType |
string |
No |
The type of the service address for the Smart Access Gateway instance. Valid values:
Note
If you do not specify this parameter, all types of service addresses are queried. |
ProbeTask |
| SagId |
string |
Yes |
The ID of the Smart Access Gateway instance. |
sag-**** |
| Sn |
string |
Yes |
The serial number of the Smart Access Gateway device. |
sag**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
324223F3-93D3-4CE4-B26F-66C0C3809922 |
| Code |
string |
The response code. |
200 |
| Message |
string |
The response message. |
Success |
| Data |
array<object> |
||
|
object |
|||
| Address |
string |
The service address. |
192.168.1.1 |
| AddressType |
string |
The type of the service address. |
ProbeTask |
Examples
Success response
JSON format
{
"RequestId": "324223F3-93D3-4CE4-B26F-66C0C3809922",
"Code": "200",
"Message": "Success",
"Data": [
{
"Address": "192.168.1.1",
"AddressType": "ProbeTask"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidId.SN | The specified smart access gateway serial number does not exist. | The specified smart access gateway serial number does not exist. |
| 400 | InvalidServiceAddressType | The specified service address type is invalid. | The type of the service address is invalid. |
| 403 | InvalidId.SMARTAG | The specified smart access gateway instance id is invalid. | The SAG instance ID is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.