edit-icon download-icon

ModifySnatEntry

Last Updated: Apr 12, 2018

Description

Modify the SnatIP (public IP) in the specified SNAT entry.

Note the following before modifying the SnatIP:

  • If your account has a NAT bandwidth package before 23:59, January 26, 2018, SnatIP must be a public IP in the NAT bandwidth package of the NAT gateway.

  • If your account does not have a NAT bandwidth package before 23:59, January 26, 2018, SnatIP must be an EIP of the NAT gateway. For more information, see AssociateEipAddress.

Request parameters

Name Type Required Description
Action String Yes

The action to perform.

Valid value: ModifySnatEntry

RegionId String Yes

The region of the NAT gateway.

You can obtain the region ID by calling the DescribeRegions API.

SnatTableId String Yes The ID of the SNAT table to which the SNAT entry belongs.
SnatEntryId String Yes The ID of the SNAT entry.
SnatIp String No

The public IP used for accessing the Internet.

Separate multiple IPs by commas, such as 47.XXX.XXX.98,47.XXX.XXX.99,47.XXX.XXX.241.

Response parameters

Name Type Description
RequestId String The ID of the request.

Error codes

See VPC API Error Center.

Examples

Request example

  1. https://vpc.aliyuncs.com/?Action=ModifySnatEntry
  2. &SnatEntryId=snat-bs5bezbme
  3. &RegionId=cn-shanghai
  4. &SnatTableId=stb-gz3r3odaw
  5. &SnatIp=139.224.36.107
  6. <CommonParameters>

Response example

JSON format

  1. {
  2. "RequestId": "C4C873E5-8B92-4CD8-9163-66703A808E46"
  3. }
Thank you! We've received your feedback.