Available in VPC
Overview
Get a ZONE list.
Request
Request parameters
| Parameter name | Required | Type | Restrictions | Description |
|---|---|---|---|---|
| regionCode | No | String | - Region code Determine the Region in which the zone list will be queried regionCode can be obtained through the getRegionList action Default: Select the first Region of the getRegionList search result |
|
| output | No | String | Response result's format type
|
Response
Response data type
- ZoneList type
| ZoneList extends CommonResponse |
|---|
| private Integer totalRows; |
| private List<Zone> zoneList = new ArrayList<>(); |
| Zone |
|---|
| private String zoneName; |
| private String zoneCode; |
| private String regionCode; |
| private String zoneDescription; |
Examples
Request example
ncloud vserver getZoneList --regionCode KR
Response example
<getZoneListResponse>
<requestId>9a3aefb2-4d35-4cfe-9152-e4c451cc7966</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>2</totalRows>
<zoneList>
<zone>
<zoneName>KR-2</zoneName>
<zoneCode>KR-2</zoneCode>
<regionCode>KR</regionCode>
<zoneDescription>Pyeongchon zone</zoneDescription>
</zone>
<zone>
<zoneName>KR-1</zoneName>
<zoneCode>KR-1</zoneCode>
<regionCode>KR</regionCode>
<zoneDescription>Gasan zone</zoneDescription>
</zone>
</zoneList>
</getZoneListResponse>