getPublicIpTargetServerInstanceList

Prev Next

VPC 환경에서 이용 가능합니다.

공인 IP를 할당할 수 있는 서버 인스턴스 목록을 조회합니다.

구문

getPublicIpTargetServerInstanceList 구문은 다음과 같습니다.

./ncloud vserver getPublicIpTargetServerInstanceList \
    [--regionCode <KR|KRS>] \
    [--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",
        "cpuCount": 2,
        "memorySize": 8589934592,
        "platformType": {
          "code": "LNX64",
          "codeName": "Linux 64 Bit"
        },
        "loginKeyName": "test-login-key-01",
        "serverInstanceStatus": {
          "code": "RUN",
          "codeName": "서버 RUN 상태"
        },
        "serverInstanceOperation": {
          "code": "NULL",
          "codeName": "서버 NULL OP"
        },
        "serverInstanceStatusName": "running",
        "createDate": "2026-06-02T16:08:23+0900",
        "uptime": "2026-06-02T16:09:59+0900",
        "serverImageProductCode": "SW.VSVR.OS.LNX64.ROCKY.08.G003",
        "serverProductCode": "SVR.VSVR.AMD.STAND.C002.M008.G003",
        "isProtectServerTermination": false,
        "zoneCode": "KR-1",
        "regionCode": "KR",
        "vpcNo": "12345678",
        "subnetNo": "23456790",
        "networkInterfaceNoList": [
          "56789017"
        ],
        "serverInstanceType": {
          "code": "STAND",
          "codeName": "Standard"
        },
        "baseBlockStorageDiskType": {
          "code": "NET",
          "codeName": "네트웍 스토리지"
        },
        "baseBlockStorageDiskDetailType": {
          "code": "SSD",
          "codeName": "SSD"
        },
        "hypervisorType": {
          "code": "KVM",
          "codeName": "KVM"
        },
        "serverImageNo": "45678901",
        "serverSpecCode": "s2-g3a",
        "eventList": [],
        "isPreInstallGpuDriver": false
      }
    ],
    "requestId": "5bb505f2-1e83-4b78-99a8-0f36e24723d5",
    "returnCode": "0",
    "returnMessage": "success"
  }
}