getSubnetDetail
- Print
- PDF
getSubnetDetail
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Can be used in a VPC environment.
Overview
Query the subnet details using the subnet number.
Request
Request parameter
Parameter Name | Required Status | Type | Restrictions | Description |
---|---|---|---|---|
regionCode | No | String | Region Code You can decide the region where the subnet details will be queried. 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 queried 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 getSubnetDetail --regionCode KR --subnetNo ***43
Response example
<getSubnetDetailResponse>
<requestId>5a8fd498-37e4-4d5a-9622-462c22fa01ac</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>RUN</code>
<codeName>run</codeName>
</subnetStatus>
<createDate>2020-05-04T11:49:52+0900</createDate>
<subnetType>
<code>PUBLIC</code>
<codeName>Public</codeName>
</subnetType>
<usageType>
<code>GEN</code>
<codeName>General</codeName>
</usageType>
<networkAclNo>***31</networkAclNo>
</subnet>
</subnetList>
</getSubnetDetailResponse>
Was this article helpful?