--- title: "getCloudMysqlTargetSubnetList" slug: "cli-vmysql-getcloudmysqltargetsubnetlist" updated: 2026-09-17T10:08:39Z published: 2026-09-17T10:08:39Z canonical: "cli.ncloud-docs.com/cli-vmysql-getcloudmysqltargetsubnetlist" --- > ## 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. # getCloudMysqlTargetSubnetList Available in VPC Get the list of subnets available to use in Cloud DB for MySQL. ## Syntax The `getCloudMysqlTargetSubnetList` syntax is as follows: ``` ./ncloud vmysql getCloudMysqlTargetSubnetList \ --vpcNo \ --cloudMysqlImageProductCode \ [--isPublic ] \ [--regionCode ] \ [--output ] ``` ## Options This section describes the options available when running `getCloudMysqlTargetSubnetList`. ### Required options The following options are required for `getCloudMysqlTargetSubnetList`. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--vpcNo` | String | Required | VPC number - See [getCloudMysqlTargetVpcList](/docs/en/cli-vmysql-getcloudmysqltargetvpclist). | | `--cloudMysqlImageProductCode` | String | Required | Cloud DB for MySQL image product code - See [getCloudMysqlImageProductList](/docs/en/cli-vmysql-getcloudmysqlimageproductlist). | ### Optional options These are the optional options for `getCloudMysqlTargetSubnetList`. Options that are not specified will use their default values. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--isPublic` | Boolean | Optional | Whether it is a public subnet - `true` \| `false` - `true`: Public subnet - `false`: Private subnet | ### Common options For information about the options common to all `vmysql` subcommands, see [Cloud DB for MySQL (VPC) options](/docs/en/cli-vmysql#%EC%98%B5%EC%85%98). ## Examples If the request to retrieve the Cloud DB for MySQL subnet list is successful, the number, name, and IP range for each subnet are returned. ### Command The command example is as follows: ``` ./ncloud vmysql getCloudMysqlTargetSubnetList \ --vpcNo 12345678 \ --cloudMysqlImageProductCode SW.VMYSL.OS.LNX64.ROCKY.0810.MYSQL.B050 \ --isPublic false \ --regionCode KR \ --output json ``` ### Output The output example is as follows: ``` { "getCloudMysqlTargetSubnetListResponse": { "totalRows": 2, "targetSubnetList": [ { "subnetNo": "23456789", "subnetName": "private-subnet", "vpcNo": "12345678", "vpcName": "vpc-01", "zoneCode": "KR-1", "subnet": "10.0.0.0/24", "isPublic": false, "createdDate": "2026-04-28T13:00:34+0900" }, { "subnetNo": "23456790", "subnetName": "standby-subnet", "vpcNo": "12345678", "vpcName": "vpc-01", "zoneCode": "KR-2", "subnet": "10.0.1.0/24", "isPublic": false, "createdDate": "2026-06-04T16:49:30+0900" } ], "requestId": "d4e5f6a7-b8c9-0123-defa-456789012345", "returnCode": "0", "returnMessage": "success" } } ```