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.

getCloudCacheTargetVpcList

Prev Next

VPC環境で利用できます。

Cloud DB for Cacheで使用可能な VPCリストを照会します。

参考

Cloud DB for Cache CLIは、対応する DBMSの範囲に応じて2つのバージョンを提供しています。

  • getCloudCacheTargetVpcList CLI: Valkey、Redis DBMSを利用可能
  • getCloudRedisTargetVpcList CLI: Redis DBMSを利用可能

getCloudCacheTargetVpcList CLI

getCloudCacheTargetVpcList CLIのコマンド構文とオプション、コマンドと出力の例について説明します。

構文

getCloudCacheTargetVpcList構文は次の通りです。

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

オプション

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

共通オプション

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

Cloud DB for Cache VPCリストの照会リクエストが成功すると、各 VPCの番号、名前、IPアドレス範囲情報が返されます。

コマンド

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

./ncloud vcache getCloudCacheTargetVpcList \
    --regionCode KR \
    --output json

出力

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

{
  "getCloudCacheTargetVpcListResponse": {
    "totalRows": 1,
    "targetVpcList": [
      {
        "vpcNo": "12345678",
        "vpcName": "vpc-01",
        "ipv4Cidr": "10.0.0.0/16",
        "regionCode": "KR",
        "createdDate": "2025-04-25T13:31:33+0900"
      }
    ],
    "requestId": "c3d4e5f6-a7b8-9012-cdef-345678901234",
    "returnCode": "0",
    "returnMessage": "success"
  }
}

getCloudRedisTargetVpcList CLI

getCloudRedisTargetVpcList CLIのコマンド構文とオプション、コマンドと出力の例について説明します。

構文

getCloudRedisTargetVpcList構文は次の通りです。

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

オプション

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

共通オプション

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

Cloud DB for Cache VPCリストの照会リクエストが成功すると、各 VPCの番号、名前、IPアドレス範囲情報が返されます。

コマンド

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

./ncloud vredis getCloudRedisTargetVpcList \
    --regionCode KR \
    --output json

出力

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

{
  "getCloudRedisTargetVpcListResponse": {
    "totalRows": 1,
    "targetVpcList": [
      {
        "vpcNo": "12345678",
        "vpcName": "vpc-01",
        "ipv4Cidr": "10.0.0.0/16",
        "regionCode": "KR",
        "createdDate": "2026-07-01T11:42:33+0900"
      }
    ],
    "requestId": "c3d4e5f6-a7b8-9012-cdef-345678901234",
    "returnCode": "0",
    "returnMessage": "success"
  }
}