Available in VPC
Get the zone list.
Syntax
The getZoneList syntax is as follows:
./ncloud vserver getZoneList \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running getZoneList.
Common options
For information about the options common to all vserver subcommands, see Server (VPC) options.
Examples
If the request to retrieve the list of zones is successful, the name, code, and Region of each zone are returned.
Command
The command example is as follows:
./ncloud vserver getZoneList \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"getZoneListResponse": {
"totalRows": 2,
"zoneList": [
{
"zoneName": "KR-2",
"zoneCode": "KR-2",
"regionCode": "KR",
"zoneDescription": "Pyeongchon zone"
},
{
"zoneName": "KR-1",
"zoneCode": "KR-1",
"regionCode": "KR",
"zoneDescription": "Gasan zone"
}
],
"requestId": "b8c9d0e1-f2a3-4567-bcde-890123456789",
"returnCode": "0",
"returnMessage": "success"
}
}