GetMetaServer
    • PDF

    GetMetaServer

    • PDF

    Article Summary

    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 NameRequiredTypeConstraintsDescription
    private IpNStringString
    public IpNIntString Prefix
    regionCodeNStringregion code, default KR
    serverNameNIntserverNamePrefix
    pageYIntpage number
    sizeYIntpage 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?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.