--- title: "getCloudHadoopTargetSubnetList" slug: "cli-vhadoop-getcloudhadooptargetsubnetlist" tags: ["Cloud Hadoop", "VPC"] updated: 2026-10-08T05:10:45Z published: 2026-10-08T05:10:45Z canonical: "cli.ncloud-docs.com/cli-vhadoop-getcloudhadooptargetsubnetlist" --- > ## 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. # getCloudHadoopTargetSubnetList Available in VPC Get the list of subnets being used in Cloud Hadoop. ## Syntax The `getCloudHadoopTargetSubnetList` syntax is as follows: ``` ./ncloud vhadoop getCloudHadoopTargetSubnetList \ --vpcNo \ --cloudHadoopImageProductCode \ [--isPublic ] \ [--regionCode ] \ [--output ] ``` ## Options This section describes the options available when running `getCloudHadoopTargetSubnetList`. ### Required options The following options are required for `getCloudHadoopTargetSubnetList`. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--vpcNo` | String | Required | VPC number - See [getCloudHadoopTargetVpcList](/docs/en/cli-vhadoop-getcloudhadooptargetvpclist). | | `--cloudHadoopImageProductCode` | String | Required | Cluster image code - See [getCloudHadoopImageProductList](/docs/en/cli-vhadoop-getcloudhadoopimageproductlist). | ### Optional options These are the optional options for `getCloudHadoopTargetSubnetList`. 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 `vhadoop` subcommands, see [Cloud Hadoop (VPC) options](/docs/en/cli-vhadoop#%EC%98%B5%EC%85%98). ## Examples If the request to retrieve the list of subnets in use in Cloud Hadoop is successful, the configuration information for each subnet is returned. ### Command The command example is as follows: ``` ./ncloud vhadoop getCloudHadoopTargetSubnetList \ --vpcNo 12345678 \ --cloudHadoopImageProductCode SW.VCHDP.OS.LNX64.ROCKY.0810.HDP.B050 \ --regionCode KR \ --output json ``` ### Output The output example is as follows: ``` { "getCloudHadoopTargetSubnetListResponse": { "totalRows": 2, "targetSubnetList": [ { "subnetNo": "23456790", "subnetName": "private-subnet", "vpcNo": "12345678", "vpcName": "vpc-01", "zoneCode": "KR-2", "subnet": "10.0.2.0/24", "isPublic": false, "createdDate": "2026-07-06T13:55:00+0900" }, { "subnetNo": "23456789", "subnetName": "public-subnet", "vpcNo": "12345678", "vpcName": "vpc-01", "zoneCode": "KR-2", "subnet": "10.0.1.0/24", "isPublic": true, "createdDate": "2026-07-06T13:55:00+0900" } ], "requestId": "293a4b5c-0d1e-f678-2345-9abcdef6789a", "returnCode": "0", "returnMessage": "success" } } ```