edit-icon download-icon


Last Updated: Apr 09, 2018


Modify the name and description of a NAT Gateway.

Request parameters

Name Type Required Description
Action String Yes

The action to perform.

Valid value: ModifyNatGatewayAttribute

RegionId String Yes The region of the NAT Gateway.

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

NatGatewayId String Yes The ID of the NAT Gateway.
Name String No

The name of the NAT Gateway.

The name must start with an English letter, but cannot start withhttp:// or https://.

The name can contain from 2 to 128 characters including a-z, A-Z, 0-9, underlines, and hyphens.

Description String No

The description of the NAT Gateway.

The description must start with English letters, but cannot start with http:// or https://.

The description can contain from 2 to 256 characters.

Response parameters

Name Type Description
RequestId String The ID of the request.

Error codes

See VPC API Error Center.


Request example

  1. https://vpc.aliyuncs.com/?Action=ModifyNatGatewayAttribute
  2. &RegionId=cn-shanghai
  3. &NatGatewayId=ngw-7mwb327j1
  4. &Name=test
  5. &<CommonParameters>

Response example

JSON format

  1. {
  2. "RequestId": "AB5F62CF-2B60-4458-A756-42C9DFE108D1"
  3. }
Thank you! We've received your feedback.