Available in VPC
Get the list of Regions.
Syntax
The getRegionList syntax is as follows:
./ncloud vserver getRegionList \
[--output <json|xml>]
Options
This section describes the options available when running getRegionList.
Optional options
These are the optional options for getRegionList. Options that are not specified will use their default values.
| Options | Type | Required | Description |
|---|---|---|---|
--output |
String | Optional | Format of the output result
|
Examples
If the request to retrieve the list of Regions is successful, the code and name of each Region are returned.
Command
The command example is as follows:
./ncloud vserver getRegionList \
--output json
Output
The output example is as follows:
{
"getRegionListResponse": {
"totalRows": 3,
"regionList": [
{
"regionCode": "KR",
"regionName": "Korea"
},
{
"regionCode": "SGN",
"regionName": "Singapore(New)"
},
{
"regionCode": "JPN",
"regionName": "Japan(New)"
}
],
"requestId": "c3d4e5f6-a7b8-9012-cdef-345678901234",
"returnCode": "0",
"returnMessage": "success"
}
}