Deletes an SNAT entry.

Note If any SNAT entry in the SNAT table is in the Pending or Modifying state, you cannot delete any SNAT entries.

Debug

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

Request parameters

Parameter Type Required? Example value Description
Action String Yes DeleteSnatEntry

The name of this action.

Value: DeleteSnatEntry

RegionId String Yes cn-hangzhou

The ID of the region to which the NAT Gateway belongs.

To query the region ID, call DescribeRegions.

SnatEntryId String Yes snat-bp1vcgcf8tm0plqcgfl04

The ID of the SNAT entry.

SnatTableId String Yes stb-bp190wu8io1vgev80kec7

The ID of the SNAT table.

Response parameters

Parameter Type Example value Description
RequestId String 47B80B6A-759A-479C-A565-76D04BDA29F3

The ID of the request.

Examples

Request example


https://vpc.aliyuncs.com/?Action=DeleteSnatEntry
&RegionId=cn-hangzhou
&SnatEntryId=snat-bp1vcgcf8tm0plqcgfl04
&SnatTableId=stb-bp190wu8io1vgev80kec7
&<CommonParameters>

Response example

XML format

<DeleteSnatEntryResponse>
      <RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
</DeleteSnatEntryResponse>

JSON format

{
	"RequestId":"0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}

Errors

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.
400 IncorretSnatEntryStatus Some Snat entry status blocked this operation.. You cannot perform this operation because one or more SNAT entries are in the Pending or Modifying state.
404 InvalidSnatEntryId.NotFound Specified Snat entry ID does not exist The specified SNAT entry does not exist.
404 InvalidSnatTableId.NotFound Specified SNAT table does not exist. The specified SNAT table does not exist.
404 InvalidSnatEntryId.NotFound Specified SNAT entry does not exist. The specified SNAT entry does not exist.

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