VPC環境で利用できます。
Cloud DB for MySQLで使用可能な VPCリストを照会します。
構文
getCloudMysqlTargetVpcList構文は次の通りです。
./ncloud vmysql getCloudMysqlTargetVpcList \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
オプション
getCloudMysqlTargetVpcListの実行時に指定できるオプションについて説明します。
共通オプション
vmysqlコマンドで共通して使用するオプションについては、Cloud DB for MySQL (VPC)のオプションを参照してください。
例
Cloud DB for MySQL VPCリストの照会リクエストが成功すると、各 VPCの番号と名前、IPアドレス範囲情報が返されます。
コマンド
コマンドの例は次の通りです。
./ncloud vmysql getCloudMysqlTargetVpcList \
--regionCode KR \
--output json
出力
出力の例は次の通りです。
{
"getCloudMysqlTargetVpcListResponse": {
"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"
}
}