GetMetaSubnet
- Print
- PDF
GetMetaSubnet
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Overview
Available in the VPC environment.
Inquire the Subnet available on NTM.
Request
API URL
URL: https://vpc-ntm.apigw.ntruss.com/meta/v1/subnet
Method: GET
Request header
The request header specified in the common setting is required.
x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
Parameter Name | Required | Type | Constraints | Description |
---|---|---|---|---|
SubnetName | N | String | SubnetNamePrefix | |
regionCode | Y | String | region code, default KR |
Example
Request example
GET /meta/v1/subnet?subnetName=subne®ionCode=KR
Host: vpc-ntm.apigw.ntruss.com
x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
Response example
HTTP code 200 and Subnet information are inquired if the inquiry is completed without errors.
[
{
"subnetNo": 1925,
"subnetName": "subnet3",
"subnet": "10.0.3.0/24",
"gateway": "10.0.3.1",
"zoneNo": 2,
"zoneName": "KR-1",
"vpcNo": 458,
"vpcName": "vpc-sample",
"statusCode": "RUN",
"statusName": "Running"
}
]
Was this article helpful?