getSubnetDetail

Prev Next

Available in VPC

Get the details of a subnet by specifying the subnet number.

Syntax

The getSubnetDetail syntax is as follows:

./ncloud vpc getSubnetDetail \
    --subnetNo <subnet-no> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running getSubnetDetail.

Required options

The following options are required for getSubnetDetail.

Options Type Required Description
--subnetNo String Required Subnet number

Common options

For information about the options common to all vpc subcommands, see VPC options.

Examples

If the request to retrieve subnet details is successful, the subnet's configuration information is returned.

Command

The command example is as follows:

./ncloud vpc getSubnetDetail \
    --subnetNo 23456789 \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "getSubnetDetailResponse": {
    "totalRows": 1,
    "subnetList": [
      {
        "subnetNo": "23456789",
        "vpcNo": "12345678",
        "zoneCode": "KR-1",
        "subnetName": "test-subnet-01",
        "subnet": "10.0.1.0/24",
        "subnetStatus": {
          "code": "RUN",
          "codeName": "In operation"
        },
        "createDate": "2026-07-07T14:12:27+0900",
        "subnetType": {
          "code": "PUBLIC",
          "codeName": "Public"
        },
        "usageType": {
          "code": "GEN",
          "codeName": "General"
        },
        "networkAclNo": "34567890"
      }
    ],
    "requestId": "c3d4e5f6-a7b8-9012-cdef-345678901234",
    "returnCode": "0",
    "returnMessage": "success"
  }
}