Available in VPC
Get VPC details by specifying the VPC number.
Syntax
The getVpcDetail syntax is as follows:
./ncloud vpc getVpcDetail \
--vpcNo <vpc-no> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running getVpcDetail.
Required options
The following options are required for getVpcDetail.
| Options | Type | Required | Description |
|---|---|---|---|
--vpcNo |
String | Required | VPC number
|
Common options
For information about the options common to all vpc subcommands, see VPC options.
Examples
If the request to retrieve VPC details is successful, the VPC's configuration information is returned.
Command
The command example is as follows:
./ncloud vpc getVpcDetail \
--vpcNo 12345678 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"getVpcDetailResponse": {
"totalRows": 1,
"vpcList": [
{
"vpcNo": "12345678",
"vpcName": "test-vpc-01",
"ipv4CidrBlock": "10.0.0.0/16",
"vpcStatus": {
"code": "RUN",
"codeName": "In operation"
},
"regionCode": "KR",
"vpcType": "NORMAL",
"createDate": "2026-07-07T14:07:27+0900"
}
],
"requestId": "c3d4e5f6-a7b8-9012-cdef-345678901234",
"returnCode": "0",
"returnMessage": "success"
}
}