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:

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 inRFC3339 text format.
deprecatedobject[Output Only] The deprecation status associated with this zone. (id: DeprecationStatus)
descriptionstring[Output Only] Textual description of the resource.
kindstringOutput only. [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.
resourceStatusobject (id: ZoneResourceStatus)
selfLinkstring[Output Only] Server-defined URL for the resource.
statusstring[Output Only] Status of the zone, either UP orDOWN. (DOWN, UP)
supportsPzsbooleanOutput only. [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.
listselectprojectfilter, maxResults, orderBy, pageToken, returnPartialSuccessRetrieves the list of Zone resources 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
zonestring
filterstring
maxResultsinteger (uint32)
orderBystring
pageTokenstring
returnPartialSuccessboolean

SELECT examples​

Returns the specified Zone resource.

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