Queries one or more SNAT entries in a SNAT table.


By using API Explorer, you can easily debug APIs, automatically generate SDK code examples, and quickly search for APIs.

Request parameters

Parameter Type Required? Example value Description
Action String Yes DescribeSnatTableEntries

The name of this action. Value: 


RegionId String Yes cn-hangzhou

The region to which the NAT Gateway belongs.

To query the region ID, call DescribeRegions.

SnatTableId String Yes stb-8vbczigrhop8x5u3twlhd

The ID of the SNAT table.

PageNumber Integer No 1

The number of pages to return. Default value: 1.

PageSize Integer No 10

The number of rows per page. Maximum value: 50. Default value: 10.

SnatEntryId String No snat-8vbae8uqh7rjpk7d2kuwt

The ID of the SNAT entry.

Response parameters

Parameter Type Example value Description
SnatTableEntries N/A N/A

A list of SNAT entries.

 └SnatEntryId String snat-kmd6nv8fy

The ID of the SNAT entry.

 └SnatIp String

The public IP address in the SNAT entry.

 └SnatTableId String stb-gz3r3odaw

The ID of the SNAT table to which the SNAT entry belongs.

 └SourceCIDR String

The source CIDR block of the SNAT entry.

 └SourceVSwitchId String vsw-3xbxxxxx

The ID of the VSwitch that accesses the Internet through the SNAT function.

 └Status String Pending

The status of the SNAT entry.

TotalCount Integer 1

The number of queried entries.

PageNumber Integer 1

The current page number.

PageSize Integer 5

The number of entries per page.

RequestId String 6D7E89B1-1C5B-412B-8585-4908E222EED5

The ID of the request.


Request example

Response example
  • XML format

  • JSON format


Error codes

HTTP status code Error code Error message Description
404 InvalidRegionId.NotFound The specified RegionId does not exist in our records. The specified region ID does not exist.
404 InvalidSnatTableId.NotFound Specified SNAT table does not exist. The specified SNAT table does not exist.

See common error codes