Available in VPC
Get the list of subnets being used in Cloud Hadoop.
Syntax
The getCloudHadoopTargetSubnetList syntax is as follows:
./ncloud vhadoop getCloudHadoopTargetSubnetList \
--vpcNo <vpc-no> \
--cloudHadoopImageProductCode <image-product-code> \
[--isPublic <true|false>] \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
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 |
--cloudHadoopImageProductCode |
String | Required | Cluster image code |
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
|
Common options
For information about the options common to all vhadoop subcommands, see Cloud Hadoop (VPC) options.
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"
}
}