edit-icon download-icon

ModifyNatGatewaySpec

Last Updated: Apr 09, 2018

Description

Modify the specification of a NAT gateway.

Note: The NAT Gateway is billed at the largest specification used in a day.

Request parameters

Name Type Required Description
Action String Yes

The action to perform.

Valid value: ModifyNatGatewaySpec

RegionId String Yes The region of the NAT gateway.

You can obtain the region by calling the DescribeRegions API.

NatGatewayId String Yes The ID of the NAT gateway.
Spec String No

The specification of the NAT gateway. Valid value:

  • Small

  • Middle

  • Large

ClientToken String No

A client token used to guarantee the idempotence of requests. This parameter value is generated by the client and must be unique. It cannot exceed 64 ASCII characters.

For more information, see How to guarantee idempotence.

Response parameters

Name Type Description
RequestId String The ID of the request.
NatGatewayId String

The ID of the NAT gateway.

ForwardTableIds JSON string A list of DNAT tables.

Error codes

See VPC API Error Center.

Examples

Request example

  1. https://vpc.aliyuncs.com/?Action=ModifyNatGatewaySpec
  2. &NatGatewayId=ngw-xxoo123
  3. &RegionId=cn-hangzhou
  4. &Spec=Small
  5. &<CommonParameters>

Response example

JSON format

  1. {
  2. "RequestId":"DBD4E4A2-786E-4BD2-8EB6-107FFC2B5B7D"
  3. }
Thank you! We've received your feedback.