Method list

Retrieves the list of availability zones.

HTTP request

GET https://compute.api.cloud.yandex.net/compute/v1/zones

Query parameters

Parameter Description
pageSize The maximum number of results per page to return. If the number of available results is larger than pageSize, the service returns a nextPageToken that can be used to get the next page of results in subsequent list requests. The maximum value is 1000.
pageToken Page token. To get the next page of results, set pageToken to the nextPageToken returned by a previous list request. The maximum string length in characters is 100.

Response

HTTP Code: 200 - OK

{
  "zones": [
    {
      "id": "string",
      "regionId": "string",
      "status": "string"
    }
  ],
  "nextPageToken": "string"
}
Field Description
zones[] object

Availability zone. For more information, see Availability zones.

zones[].
id
string

ID of the zone.

zones[].
regionId
string

ID of the region.

zones[].
status
string

Status of the zone.

  • UP: Zone is available. You can access the resources allocated in this zone.
  • DOWN: Zone is not available.
nextPageToken string

This token allows you to get the next page of results for list requests. If the number of results is larger than pageSize, use the pageToken as the value for the pageToken query parameter in the next list request. Subsequent list requests will have their own pageToken to continue paging through the results.