Skip to main content

zones

Creates, updates, deletes, gets or lists a zones resource.

Overview

Namezones
TypeResource
Idgoogle.compute.zones

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
idstring (uint64)[Output Only] The unique identifier for the resource. This identifier is defined by the server.
namestring[Output Only] Name of the resource.
availableCpuPlatformsarray[Output Only] Available cpu/platform selections for the zone.
creationTimestampstring[Output Only] Creation timestamp in RFC3339 text format.
deprecatedobject[Output Only] The deprecation status associated with this zone. (id: DeprecationStatus)
descriptionstring[Output Only] Textual description of the resource.
kindstring[Output Only] Type of the resource. Always compute#zone for zones. (default: compute#zone)
regionstring[Output Only] Full URL reference to the region which hosts the zone.
selfLinkstring[Output Only] Server-defined URL for the resource.
statusstring[Output Only] Status of the zone, either UP or DOWN.
supportsPzsboolean[Output Only] Reserved for future use.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject, zoneReturns the specified Zone resource.
listselectproject, regionfilter, maxResults, orderBy, pageToken, returnPartialSuccessRetrieves the list of Zone resources under the specific region available to the specified project.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
projectstring
regionstring
zonestring
filterstring
maxResultsinteger (uint32)
orderBystring
pageTokenstring
returnPartialSuccessboolean

SELECT examples

Returns the specified Zone resource.

SELECT
id,
name,
availableCpuPlatforms,
creationTimestamp,
deprecated,
description,
kind,
region,
selfLink,
status,
supportsPzs
FROM google.compute.zones
WHERE project = '{{ project }}' -- required
AND zone = '{{ zone }}' -- required;