deleteNatGatewayInstance

Prev Next

Available in VPC

Delete a NAT Gateway instance by specifying the NAT Gateway instance number.

Request

This section describes the request format. The method and URI are as follows:

Method URI
GET, POST /deleteNatGatewayInstance

Request headers

For information about the headers common to all VPC APIs, see VPC common headers.

Request query parameters

The following describes the parameters.

Parameter name Type Required Description
regionCode String Optional Region code of the NAT Gateway to delete
  • First Region of the query result (default)
  • Check through getRegionList.
natGatewayInstanceNo String Required Number of NAT Gateway instance to delete
output String Optional Format of the response result
  • xml | json (default)
returnPublicIpInstance Boolean Optional
  • true (default) | false
    • true: Also delete the public IP instance assigned to the public NAT Gateway.
    • false: Keep the public IP instance as is.

Request example

The request example is as follows:

curl --location 'https://ncloud.apigw.ntruss.com/vpc/v2/deleteNatGatewayInstance
?regionCode=KR
&natGatewayInstanceNo=***9734'
--header 'x-ncp-apigw-timestamp: {Timestamp}'     
--header 'x-ncp-iam-access-key: {Access Key}' 
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'

Response

This section describes the response format.

Response body

See NatGatewayInstanceList for the response body.

Response status codes

For response status codes common to NAVER Cloud Platform, see Ncloud API response status codes.

Response example

The following is a sample response.

<deleteNatGatewayInstanceResponse>
  <requestId>bce9e911-5989-4285-8596-8d08966c7181</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <natGatewayInstanceList>
    <natGatewayInstance>
      <vpcNo>***36</vpcNo>
      <vpcName>normal-***</vpcName>
      <natGatewayInstanceNo>*****0811</natGatewayInstanceNo>
      <natGatewayName>ng19****</natGatewayName>
      <publicIp>***.***.153.33</publicIp>
      <natGatewayInstanceStatus>
        <code>RUN</code>
        <codeName>RUN status</codeName>
      </natGatewayInstanceStatus>
      <natGatewayInstanceStatusName>Terminating</natGatewayInstanceStatusName>
      <natGatewayInstanceOperation>
        <code>TERMT</code>
        <codeName>TERMINATE OP</codeName>
      </natGatewayInstanceOperation>
      <createDate>2025-05-08T18:38:25+0900</createDate>
      <natGatewayDescription></natGatewayDescription>
      <zoneCode>KR-1</zoneCode>
      <natGatewayType>
        <code>PBLIP</code>
        <codeName>Public</codeName>
      </natGatewayType>
      <subnetName>public-***</subnetName>
      <subnetNo>***29</subnetNo>
      <privateIp>10.0.1.8</privateIp>
      <publicIpInstanceNo>***810</publicIpInstanceNo>
      <natGatewayIpList>
        <natGatewayIp>
          <type>PRIMARY</type>
          <privateIp>10.0.1.8</privateIp>
          <publicIp>***.***.153.33</publicIp>
          <publicIpInstanceNo>***810</publicIpInstanceNo>
        </natGatewayIp>
      </natGatewayIpList>
    </natGatewayInstance>
  </natGatewayInstanceList>
</deleteNatGatewayInstanceResponse>