--- title: "getSubnetDetail" slug: "cli-vpc-subnetmanagement-getsubnetdetail" updated: 2026-10-08T09:53:49Z published: 2026-10-08T09:53: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 VPC環境で利用できます。 Subnet番号を指定して Subnetの詳細情報を照会します。 ## 構文 `getSubnetDetail`構文は次の通りです。 ``` ./ncloud vpc getSubnetDetail \ --subnetNo \ [--regionCode ] \ [--output ] ``` ## オプション `getSubnetDetail`の実行時に指定できるオプションについて説明します。 ### 必須オプション `getSubnetDetail`の必須オプションです。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--subnetNo` | String | Required | Subnet番号 - [getSubnetList](/docs/ja/cli-vpc-subnetmanagement-getsubnetlist)を参照 | ### 共通オプション `vpc`コマンドで共通して使用するオプションについては、[VPCのオプション](/docs/ja/cli-vpc#%EC%98%B5%EC%85%98)をご参照ください。 ## 例 Subnetの詳細情報の照会リクエストが成功すると、Subnetの構成情報が返されます。 ### コマンド コマンドの例は次の通りです。 ``` ./ncloud vpc getSubnetDetail \ --subnetNo 23456789 \ --regionCode KR \ --output json ``` ### 出力 出力の例は次の通りです。 ``` { "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": "実行中" }, "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" } } ```