getSubnetList
- Print
- PDF
getSubnetList
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in VPC
View the subnets that can be generated when creating Notebooks.
Requests
Request Parameters
Parameter name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
typeCode | YES | String | - typeCode can be verified through Notebooks’ getTypeList API | |
vpcNo | YES | Integer | VPC with Public Subnets | - vpcNo can be verified through Notebooks’ getVpcList API |
Request headers
Request bodies
- JSON
{ "typeCode": "string", "vpcNo": 0 }
- XML
<?xml version="1.0" encoding="UTF-8"?> <GetSubnetListRequest> <typeCode>string</typeCode> <vpcNo>0</vpcNo> </GetSubnetListRequest>
Errors
HTTP Status | Description |
---|---|
400 | invalid request parameters |
403 | not allowed to access |
404 | no such element |
500 | unexpected error |
Examples
Request Examples
POST https://df.apigw.ntruss.com/api/v2/notebooks/getSubnetList
HOST: df.apigw.ntruss.com
Content-Type: application/json
x-ncp-apigw-signature-v2: Azm1WBMWDgEONUCUbsVkB4tRIpc053uOHU8bitbQRtU=
x-ncp-apigw-timestamp: 1658898041497
x-ncp-iam-access-key: F5O55GOTR4CqYJqPDnCu { \"typeCode\": \"SW.DFRNT.OS.LNX64.CNTOS.0708.B050\", \"vpcNo\": 8717}
curl -X POST "https://df.apigw.ntruss.com/api/v2/notebooks/getSubnetList" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-H "x-ncp-iam-access-key: F5O55GOTR4CqYJqPDnCu" \
-H "x-ncp-apigw-timestamp: 1684746475134" \
-H "x-ncp-apigw-signature-v2: T7cOntzhT16AorO6hipld/xPlRj+Lh4VaUAZq/kdMIQ=" \
-d "{ \"typeCode\": \"SW.DFRNT.OS.LNX64.CNTOS.0708.B050\", \"vpcNo\": 8717}"
Response examples
HTTP
HTTP Status Description 200 OK BASH
{ "success": true, "total": 1, "contents": [ { "zoneNo": 3, "zoneName": "KR-2", "subnetNo": 13594, "subnetName": "prisub-kr", "isPublic": true } ] }
Was this article helpful?