Skip to main content

zones

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

Overview

Namezones
TypeResource
Idgoogle.compute.zones

Fields

NameDatatypeDescription
idstring[Output Only] The unique identifier for the resource. This identifier is defined by the server.
namestring[Output Only] Name of the resource.
descriptionstring[Output Only] Textual description of the resource.
availableCpuPlatformsarray[Output Only] Available cpu/platform selections for the zone.
creationTimestampstring[Output Only] Creation timestamp in RFC3339 text format.
deprecatedobjectDeprecation status for a public resource.
kindstring[Output Only] Type of the resource. Always compute#zone for zones.
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

NameAccessible byRequired ParamsDescription
getSELECTproject, zoneReturns the specified Zone resource.
listSELECTprojectRetrieves the list of Zone resources available to the specified project.

SELECT examples

Retrieves the list of Zone resources available to the specified project.

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