Queries the SNAT entries added to a Smart Access Gateway (SAG) instance.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
RegionId String Yes cn-hangzhou

The ID of the region to which the SAG instance belongs.

SmartAGId String Yes sag-whfn************

The ID of the SAG instance.

Action String No DescribeSnatEntries

The name of this action.

Value: DescribeSnatEntries

PageNumber Integer No 1

The number of entries per page in the case of a paged query result. Default value: 10. Maximum value: 50

PageSize Integer No 2

The page number. Default value: 1

Response parameters

Parameter Type Example value Description
PageNumber Integer 12

The number of entries per page.

PageSize Integer 5

The page number.

RequestId String 674BC3B2-5828-41D5-830E-148EE6CF86C2

The ID of the request.

SnatEntries

The list of SNAT entries.

CidrBlock String 192.169.10.0/24

The destination CIDR block specified in the SNAT entry.

CreateTime Long 1523604565000

The time when the SNAT entry was created.

InstanceId String snat-sl7kb9cpgfds*****

The ID of the SNAT entry.

SnatIp String 10.10.**. **

The public IP address.

TotalCount Integer 12

The total number of SNAT entries.

Examples

Request example


http(s)://[Endpoint]/? Action=DescribeSnatEntries
&RegionId=cn-hangzhou
&SmartAGId=sag-whfn************
&<CommonParameters>

Response example

XML format

<DescribeSnatEntriesResponse>
      <PageNumber>1</PageNumber>
	  <PageSize>10</PageSize>
	  <RequestId>674BC3B2-5828-41D5-830E-148EE6CF86C2</RequestId>
	  <SnatEntries>
		    <SnatEntry>
			      <CidrBlock>192.169.10.0/24</CidrBlock>
			      <CreateTime>1523604565000</CreateTime>
			      <InstanceId>snat-sl7kb9cpgfdsjrquc7</InstanceId>
			      <SnatIp>10.10.10.3</SnatIp>
		    </SnatEntry>
		    <SnatEntry>
			      <CidrBlock>10.0.0.0/8</CidrBlock>
			      <CreateTime>2019-07-11T15:48Z</CreateTime>
			      <InstanceId>snat-m2obgkt5ya1puz8qh1</InstanceId>
			      <SnatIp>192.168.3.0</SnatIp>
		    </SnatEntry>
	  </SnatEntries>
	  <TotalCount>2</TotalCount>
    </DescribeSnatEntriesResponse>

JSON format

{
	"PageNumber":1,
	"TotalCount":2,
	"PageSize":10,
	"RequestId":"674BC3B2-5828-41D5-830E-148EE6CF86C2",
	"SnatEntries":{
		"SnatEntry":[
			{
				"CidrBlock":"192.169.10.0/24",
				"SnatIp":"10.10.10.3",
				"InstanceId":"snat-sl7kb9cpgfdsjrquc7",
				"CreateTime":"2019-07-11T16:23Z"
			},
			{
				"CidrBlock":"10.0.0.0/8",
				"SnatIp":"192.168.3.0",
				"InstanceId":"snat-m2obgkt5ya1puz8qh1",
				"CreateTime":"1523604565000"
			}
		]
	}
}

Errors

For a list of error codes, visit the API Error Center.