--- title: "getSubnetDetail" slug: "cli-vpc-subnetmanagement-getsubnetdetail" tags: ["VPC"] updated: 2026-10-08T05:04:49Z published: 2026-10-08T05:04:49Z canonical: "cli.ncloud-docs.com/cli-vpc-subnetmanagement-getsubnetdetail" --- > ## 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. # getSubnetDetail 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 \ [--regionCode ] \ [--output ] ``` ## 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 - See [getSubnetList](/docs/en/cli-vpc-subnetmanagement-getsubnetlist). | ### Common options For information about the options common to all `vpc` subcommands, see [VPC options](/docs/en/cli-vpc#%EC%98%B5%EC%85%98). ## 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" } } ```