Queries source network address translation (SNAT) entries associated with a Smart Access Gateway (SAG) instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
smartag:DescribeSnatEntries |
get |
*SmartAccessGateway
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region where the SAG instance is deployed. |
cn-hangzhou |
| SmartAGId |
string |
Yes |
The ID of the SAG instance. |
sag-whfn************ |
| PageNumber |
integer |
No |
The number of the page to return. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Default value: 10. Maximum value: 50. |
2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The total number of SNAT entries. |
12 |
| PageSize |
integer |
The number of entries returned per page. |
5 |
| RequestId |
string |
The ID of the request. |
674BC3B2-5828-41D5-830E-148EE6CF86C2 |
| SnatEntries |
object |
||
| SnatEntry |
array<object> |
The information about the SNAT entries. |
|
|
object |
|||
| CidrBlock |
string |
The destination CIDR block. |
192.169.10.0/24 |
| CreateTime |
integer |
The time when the SNAT entry was created. |
1523604565000 |
| InstanceId |
string |
The ID of the SNAT entry. |
snat-sl7kb9cpgfds***** |
| SnatIp |
string |
The public IP address. |
10.10.**.** |
| PageNumber |
integer |
The page number of the returned page. |
12 |
Examples
Success response
JSON format
{
"TotalCount": 12,
"PageSize": 5,
"RequestId": "674BC3B2-5828-41D5-830E-148EE6CF86C2",
"SnatEntries": {
"SnatEntry": [
{
"CidrBlock": "192.169.10.0/24",
"CreateTime": 1523604565000,
"InstanceId": "snat-sl7kb9cpgfds*****",
"SnatIp": "10.10.**.**"
}
]
},
"PageNumber": 12
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.