DescribeSnatTableEntries
Description
call the DescribeSnatTableEntries interface to query the created SNAT entry.
Request Method
POST
Request Path
/apsara/route/Vpc/DescribeSnatTableEntries
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
SourceVSwitchId | BODY | string | No | vsw-3xb**** | switch ID for public network access through SNAT function. |
SnatEntryName | BODY | string | No | SnatEntry-1 | The name of the SNAT entry. The length is 2-128 characters and must start with a letter or Chinese, but cannot be http:// or https:// start. |
PageSize | BODY | integer | No | 10 | The number of rows per page during paging query, the maximum value is 50, the default value is 10. |
SourceCIDR | BODY | string | No | 116.XX.XX.0/28 | the source network segment of the SNAT entry. |
PageNumber | BODY | integer | No | 1 | page number of the list, the default value is 1. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
SnatEntryId | BODY | string | No | snat-8vbae8uqh7rjpk7d2**** | SNAT entry ID. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID of the NAT gateway. you can obtain the region by calling DescribeRegions interface ID. |
SnatIp | BODY | string | No | 116.XX.XX.28 | the public IP of the SNAT entry. |
version | BODY | string | No | 2016-01-01 | version of api |
SnatTableId | BODY | string | Yes | stb-8vbczigrhop8x5u3t**** | SNAT table ID. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}