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.

getZoneList

Prev Next

VPC環境で利用できます。

ゾーンリストを照会します。

構文

getZoneList構文は次の通りです。

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

オプション

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

共通オプション

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

ゾーンリストの照会リクエストが成功すると、各ゾーンの名前とコード、所属リージョンが返されます。

コマンド

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

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

出力

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

{
  "getZoneListResponse": {
    "totalRows": 2,
    "zoneList": [
      {
        "zoneName": "KR-2",
        "zoneCode": "KR-2",
        "regionCode": "KR",
        "zoneDescription": "坪村ゾーン"
      },
      {
        "zoneName": "KR-1",
        "zoneCode": "KR-1",
        "regionCode": "KR",
        "zoneDescription": "加山ゾーン"
      }
    ],
    "requestId": "b8c9d0e1-f2a3-4567-bcde-890123456789",
    "returnCode": "0",
    "returnMessage": "success"
  }
}