GetMetaSubnet
- Print
- PDF
GetMetaSubnet
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in VPC
Get available subnet information from the Network Traffic Monitoring service.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | /meta/v1/subnet |
Request headers
For information about the headers common to all Network Traffic Monitoring APIs, see Network Traffic Monitoring request headers.
Request query parameters
You can use the following query parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
regionCode | String | Required | Region code
|
subnetName | String | Optional | Subnet name |
Request example
The request example is as follows:
curl --location --request GET 'https://vpc-ntm.apigw.ntruss.com/meta/v1/subnet?subnetName=subne®ionCode=KR' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'x-ncp-dmn_cd: PUB' \
Response
This section describes the response format.
Response body
See Subnet for more information about the fields related to subnet information.
Response status codes
For information about the HTTP status codes common to all Network Traffic Monitoring APIs, see Network Traffic Monitoring response status codes.
Response example
The response example is as follows:
[
{
"subnetNo": 1925,
"subnetName": "subnet01",
"subnet": "***.***.***.***/24",
"gateway": "***.***.***.***",
"zoneNo": 2,
"zoneName": "KR-1",
"vpcNo": 458,
"vpcName": "vpc-sample",
"statusCode": "RUN",
"statusName": "Running"
}
]
Was this article helpful?