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.

getRegionList

Prev Next

VPC環境で利用できます。

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

構文

getRegionList構文は次の通りです。

./ncloud vserver getRegionList \
    [--output <json|xml>]

オプション

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

任意オプション

getRegionListの任意オプションです。指定しない場合、オプションにはデフォルト値が適用されます。

オプション タイプ 必須の有無 説明
--output String Optional 出力結果の形式
  • xml | json (デフォルト)

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

コマンド

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

./ncloud vserver getRegionList \
    --output json

出力

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

{
  "getRegionListResponse": {
    "totalRows": 3,
    "regionList": [
      {
        "regionCode": "KR",
        "regionName": "Korea"
      },
      {
        "regionCode": "SGN",
        "regionName": "Singapore(New)"
      },
      {
        "regionCode": "JPN",
        "regionName": "Japan(New)"
      }
    ],
    "requestId": "c3d4e5f6-a7b8-9012-cdef-345678901234",
    "returnCode": "0",
    "returnMessage": "success"
  }
}