Available in VPC
Overview
Delete a NAT Gateway instance.
Request
Request parameters
Parameter name |
Required |
Type |
Restrictions |
Description |
regionCode |
No |
String |
|
Region code- Determine the Region in which the NAT Gateway instance will be deleted.
- regionCode can be obtained through the getRegionList action.
- Default: Select the first Region of the getRegionList query result.
|
natGatewayInstanceNo |
Yes |
String |
|
NAT Gateway instance number to delete |
returnPublicIpInstance |
No |
Boolean |
|
Also return the public IP instance assigned to the public NAT Gateway of the NAT Gateway product. |
responseFormatType |
No |
String |
|
Response result's format type- Options: xml | json
- Default: xml
|
Response
Response data type
NatGatewayInstanceList extends CommonResponse |
private Integer totalRows; |
private List<NatGatewayInstance> natGatewayInstanceList |
NatGatewayInstance |
private String vpcNo; |
private String vpcName; |
private String natGatewayInstanceNo; |
private String natGatewayName; |
private String publicIp; |
private CommonCode natGatewayInstanceStatus; |
private String natGatewayInstanceStatusName; |
private CommonCode natGatewayInstanceOperation; |
private Date createDate; |
private String natGatewayDescription; |
private String zoneCode; |
private CommonCode natGatewayType; |
private String subnetName; |
private String subnetNo; |
private String privateIp; |
private String publicIpInstanceNo; |
private List<NatGatewayIp> natGatewayIpList; |
NatGatewayIp |
private String type; |
private String privateIp; |
private String publicIp; |
private String publicIpInstanceNo; |
Examples
Request example
ncloud vpc deleteNatGatewayInstance --regionCode KR --natGatewayInstanceNo ***9734
Response example
<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>