Skip to main content

node_types

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

Overview

Namenode_types
TypeResource
Idgoogle.compute.node_types

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] An optional textual description of the resource.
cpuPlatformstring[Output Only] The CPU platform used by this node type.
creationTimestampstring[Output Only] Creation timestamp in RFC3339 text format.
deprecatedobjectDeprecation status for a public resource.
guestCpusinteger[Output Only] The number of virtual CPUs that are available to the node type.
kindstring[Output Only] The type of the resource. Always compute#nodeType for node types.
localSsdGbinteger[Output Only] Local SSD available to the node type, defined in GB.
memoryMbinteger[Output Only] The amount of physical memory available to the node type, defined in MB.
selfLinkstring[Output Only] Server-defined URL for the resource.
zonestring[Output Only] The name of the zone where the node type resides, such as us-central1-a.

Methods

NameAccessible byRequired ParamsDescription
aggregated_listSELECTprojectRetrieves an aggregated list of node types. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.
getSELECTnodeType, project, zoneReturns the specified node type.
listSELECTproject, zoneRetrieves a list of node types available to the specified project.

SELECT examples

Retrieves an aggregated list of node types. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

SELECT
id,
name,
description,
cpuPlatform,
creationTimestamp,
deprecated,
guestCpus,
kind,
localSsdGb,
memoryMb,
selfLink,
zone
FROM google.compute.node_types
WHERE project = '{{ project }}';