Documentation Index

Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

getPublicIpTargetServerInstanceList

Prev Next

VPC環境で利用できます。

パブリック IPアドレスを割り当て可能なサーバインスタンスリストを照会します。

構文

getPublicIpTargetServerInstanceList構文は次の通りです。

./ncloud vserver getPublicIpTargetServerInstanceList \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

オプション

getPublicIpTargetServerInstanceListの実行時に指定できるオプションについて説明します。

共通オプション

vserverコマンドで共通して使用するオプションについては、Server (VPC)のオプションをご参照ください。

パブリック IPアドレスの割り当て対象サーバリストの照会リクエストが成功すると、各サーバの識別情報および構成情報が返されます。

コマンド

コマンドの例は次の通りです。

./ncloud vserver getPublicIpTargetServerInstanceList \
    --regionCode KR \
    --output json

出力

出力の例は次の通りです。

{
  "getPublicIpTargetServerInstanceListResponse": {
    "totalRows": 1,
    "serverInstanceList": [
      {
        "serverInstanceNo": "34567892",
        "serverName": "public-test-server",
        "serverDescription": "",
        "cpuCount": 2,
        "memorySize": 8589934592,
        "platformType": {
          "code": "LNX64",
          "codeName": "Linux 64 Bit"
        },
        "loginKeyName": "test-login-key-01",
        "publicIpInstanceNo": "",
        "publicIp": "",
        "serverInstanceStatus": {
          "code": "RUN",
          "codeName": "サーバ RUN状態"
        },
        "serverInstanceOperation": {
          "code": "NULL",
          "codeName": "サーバ NULL OP"
        },
        "serverInstanceStatusName": "running",
        "createDate": "2026-05-14T20:01:28+0900",
        "uptime": "2026-05-14T20:03:41+0900",
        "serverImageProductCode": "SW.VSVR.OS.LNX64.NAVIX.09.G003",
        "serverProductCode": "SVR.VSVR.AMD.STAND.C002.M008.G003",
        "isProtectServerTermination": false,
        "zoneCode": "KR-1",
        "regionCode": "KR",
        "vpcNo": "12345678",
        "subnetNo": "23456790",
        "networkInterfaceNoList": [
          "56789017"
        ],
        "initScriptNo": "",
        "serverInstanceType": {
          "code": "STAND",
          "codeName": "Standard"
        },
        "baseBlockStorageDiskType": {
          "code": "NET",
          "codeName": "ネットワークストレージ"
        },
        "baseBlockStorageDiskDetailType": {
          "code": "SSD",
          "codeName": "SSD"
        },
        "placementGroupNo": "",
        "placementGroupName": "",
        "memberServerImageInstanceNo": "",
        "hypervisorType": {
          "code": "KVM",
          "codeName": "KVM"
        },
        "serverImageNo": "109093105",
        "serverSpecCode": "s2-g3a",
        "eventList": [],
        "fabricClusterPoolNo": "",
        "fabricClusterPoolName": "",
        "fabricClusterMode": "",
        "fabricClusterNo": "",
        "fabricClusterName": "",
        "isPreInstallGpuDriver": false
      }
    ],
    "requestId": "c3d4e5f6-7890-1234-cdef-345678901234",
    "returnCode": "0",
    "returnMessage": "success"
  }
}