GetMetaServer
    • PDF

    GetMetaServer

    • PDF

    Article Summary

    概要

    VPC環境で利用可能です。

    NTMで使用可能なサーバーを照会します。

    リクエスト

    API URL

    URL: https://vpc-ntm.apigw.ntruss.com/meta/v1/server
    Method: GET
    

    リクエストヘッダー

    共通設定に明示された要求ヘッダーが必要です。

    x-ncp-apigw-signature-v2: {generated signature}
    x-ncp-apigw-timestamp: {current timestamp}
    x-ncp-iam-access-key: {your iam access key}
    
    パラメータ名必須可否タイプ制約事項説明
    privateIpNStringprivate IP の文字列 Prefix
    publicIpNIntpublic IP の文字列Prefix
    regionCodeNStringregion code, default KR
    serverNameNIntserver 名 Prefix
    pageYIntpage number
    sizeYIntpage size

    例示

    リクエスト例

    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}
    

    応答例

    エラーなく照会が完了した場合は、HTTP code 200とサーバー情報が照会されます。

    {
      "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
        }
      ]
    }
    

    この記事は役に立ちましたか?

    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.