--- title: "getCloudMysqlTargetSubnetList" slug: "cli-vmysql-getcloudmysqltargetsubnetlist" tags: ["Cloud DB for MySQL", "VPC"] updated: 2026-09-17T09:16:03Z published: 2026-09-17T09:16:03Z 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 VPC 환경에서 이용 가능합니다. Cloud DB for MySQL에서 사용할 수 있는 Subnet 목록을 조회합니다. ## 구문 `getCloudMysqlTargetSubnetList` 구문은 다음과 같습니다. ``` ./ncloud vmysql getCloudMysqlTargetSubnetList \ --vpcNo \ --cloudMysqlImageProductCode \ [--isPublic ] \ [--regionCode ] \ [--output ] ``` ## 옵션 `getCloudMysqlTargetSubnetList` 실행 시 지정할 수 있는 옵션을 설명합니다. ### 필수 옵션 `getCloudMysqlTargetSubnetList`의 필수 옵션입니다. | 옵션 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `--vpcNo` | String | Required | VPC 번호 - [getCloudMysqlTargetVpcList](/docs/cli-vmysql-getcloudmysqltargetvpclist) 참조 | | `--cloudMysqlImageProductCode` | String | Required | Cloud DB for MySQL 이미지 상품 코드 - [getCloudMysqlImageProductList](/docs/cli-vmysql-getcloudmysqlimageproductlist) 참조 | ### 선택 옵션 `getCloudMysqlTargetSubnetList`의 선택 옵션입니다. 지정하지 않은 옵션에는 기본값이 적용됩니다. | 옵션 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `--isPublic` | Boolean | Optional | Public Subnet 여부 - `true` \| `false` - `true`: Public Subnet - `false`: Private Subnet | ### 공통 옵션 `vmysql` 명령에서 공통으로 사용하는 옵션에 대한 정보는 [Cloud DB for MySQL (VPC) 옵션](/docs/cli-vmysql#%EC%98%B5%EC%85%98)을 참조해 주십시오. ## 예시 Cloud DB for MySQL Subnet 목록 조회 요청이 성공하면 각 Subnet의 번호와 이름, IP 대역 정보가 반환됩니다. ### 명령 명령 예시는 다음과 같습니다. ``` ./ncloud vmysql getCloudMysqlTargetSubnetList \ --vpcNo 12345678 \ --cloudMysqlImageProductCode SW.VMYSL.OS.LNX64.ROCKY.0810.MYSQL.B050 \ --isPublic false \ --regionCode KR \ --output json ``` ### 출력 출력 예시는 다음과 같습니다. ``` { "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" } } ```