GetMetaServer
- Print
- PDF
GetMetaServer
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Overview
Available in the VPC environment.
Inquire the available servers in NTM.
Request
API URL
URL: https://vpc-ntm.apigw.ntruss.com/meta/v1/server
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 |
---|---|---|---|---|
private Ip | N | String | String | |
public Ip | N | Int | String Prefix | |
regionCode | N | String | region code, default KR | |
serverName | N | Int | serverNamePrefix | |
page | Y | Int | page number | |
size | Y | Int | page size |
Example
Request example
GET /meta/v1/server?regionCode=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 server information are inquired when the inquiry is completed without errors.
{
"total": 7,
"serverList": [
{
"instanceNo": 1777948,
"serverName": "test-code003",
"regionNo": 1,
"regionCode": "KR",
"regionName": "Korea",
"privateIpList": [
"10.0.3.11"
],
"publicIp": null,
"instanceStatusCode": "NSTOP",
"instanceStatusName": "stopped",
"networkTrafficMonitoringInstanceNo": 2094117,
"subscribed": true
},
{
"instanceNo": 1777945,
"serverName": "test-code002",
"regionNo": 1,
"regionCode": "KR",
"regionName": "Korea",
"privateIpList": [
"10.0.3.10"
],
"publicIp": null,
"instanceStatusCode": "RUN",
"instanceStatusName": "running",
"networkTrafficMonitoringInstanceNo": 1808470,
"subscribed": true
}
]
}
Was this article helpful?