deleteSubnet
- Print
- PDF
deleteSubnet
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Can be used in a VPC environment.
Overview
Delete a subnet.
Request
Request parameter
Parameter Name | Required Status | Type | Restrictions | Description |
---|---|---|---|---|
regionCode | No | String | Region Code You can decide the region of the subnet to be deleted. The regionCode can be obtained through the getRegionList action. Default: Select the first region of the getRegionList query results. | |
subnetNo | Yes | String | The number of the subnet to be deleted The subnetNo can be obtained through the getSubnetList action. | |
responseFormatType | No | String | Format type for the response result Options : xml | json Default : xml |
Response
Response data type
- SubnetList type
SubnetList extends CommonResponse |
---|
private Integer totalRows; |
private List |
Subnet |
---|
private String subnetNo; |
private String vpcNo; |
private String zoneCode; |
private String subnetName; |
private String subnet; |
private CommonCode subnetStatus; |
private Date createDate; |
private CommonCode subnetType; |
private CommonCode usageType; |
private String networkAclNo; |
Example
Request example
ncloud vpc deleteSubnet --regionCode KR --subnetNo ***43
Response example
<deleteSubnetResponse>
<requestId>a0746ba0-488a-45d1-94e9-a62dea9db1a8</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<subnetList>
<subnet>
<subnetNo>***43</subnetNo>
<vpcNo>***04</vpcNo>
<zoneCode>KR-1</zoneCode>
<subnetName>test-***</subnetName>
<subnet>***.***.1.0/24</subnet>
<subnetStatus>
<code>TERMTING</code>
<codeName>terminating</codeName>
</subnetStatus>
<createDate>2020-07-31T14:38:00+0900</createDate>
<subnetType>
<code>PUBLIC</code>
<codeName>Public</codeName>
</subnetType>
<usageType>
<code>GEN</code>
<codeName>General</codeName>
</usageType>
<networkAclNo>***31</networkAclNo>
</subnet>
</subnetList>
</deleteSubnetResponse>
Was this article helpful?