getSubnetList
- Print
- PDF
getSubnetList
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in VPC
View the list of subnets based on the conditions the user specifies.Request
The following describes the request format for the endpoint. The request format is as follows:
Method | URI |
---|---|
GET, POST | /getSubnetList |
Request headers
For headers common to all VPC APIs, see VPC common headers.
Request query parameters
The following describes the parameters.
Field | Type | Required | Description |
---|---|---|---|
regionCode | String | Optional | Region code whose subnet list you want to view |
subnetNoList.N | List<String> | Optional | View the list with the subnet numbersubnetNo can be obtained through getSubnetList |
subnetName | String | Optional | View the list with the subnet name |
subnet | String | Optional | View the list with the subnet IP address rangesubnet =10.0.0.0/24 |
subnetTypeCode | String | Optional | View the list with the subnet type code
|
usageTypeCode | String | Optional | View the subnet list with the subnet purpose type code
|
networkAclNo | String | Optional | View the subnet list with the network ACL number applied to the subnetnetworkAclNo can be obtained through getNetworkAclList |
pageNo | Integer | Optional | Page number of the paged results
|
pageSize | Integer | Conditional | |
subnetStatusCode | String | Optional | View the subnet list with the subnet status code
|
vpcNo | String | Optional | View the subnet list with the VPC number
|
zoneCode | String | Optional | View the subnet list with the zone code
|
responseFormatType | String | Optional | Response result format
|
Request example
The following is a sample request.
curl --location 'https://ncloud.apigw.ntruss.com/vpc/v2/getSubnetList
?regionCode=KR
&subnetNoList.1=***43
&subnetName=test-***
&subnet=***.***.1.0
&subnetTypeCode=PUBLIC
&usageTypeCode=GEN
&networkAclNo=***31
&subnetStatusCode=RUN
&vpcNo=***04
&zoneCode=KR-1'
--header 'x-ncp-apigw-timestamp: {Timestamp}'
--header 'x-ncp-iam-access-key: {Sub Account Access Key}'
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
Response
The following describes the response format.
Response body
See SubnetList 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.
<getSubnetListResponse>
<requestId>4a7ca579-1b43-439b-97f7-c423a37bc3d9</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>
</getSubnetListResponse>
Was this article helpful?