edit-icon download-icon


Last Updated: Apr 12, 2018


Delete a NAT gateway.

Note: If the NAT gateway is associated with a bandwidth package, delete the bandwidth package first.

Request parameters

Name Type Required Description
Action String Yes

The action to perform.

Valid value: DeleteNatGateway

RegionId String Yes

The region of the NAT gateway.

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

NatGatewayId Integer Yes The ID of the NAT gateway.

Response parameters

Name Type Required
RequestId String The ID of the request.

Error codes

See VPC API Error Center.


Request example

  1. https://vpc.aliyuncs.com/?&Action=DeleteNatGateway
  2. &RegionId=cn-shanghai
  3. &NatGatewayId=ngw-112za33e4
  4. &<CommonParameters>

Response example

JSON format

  1. {
  2. "RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF"
  3. }
Thank you! We've received your feedback.