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​

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. (pattern: [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)
cpuPlatformstring[Output Only] The CPU platform used by this node type.
creationTimestampstring[Output Only] Creation timestamp inRFC3339 text format.
deprecatedobject[Output Only] The deprecation status associated with this node type. (id: DeprecationStatus)
descriptionstring[Output Only] An optional textual description of the resource.
guestCpusinteger (int32)[Output Only] The number of virtual CPUs that are available to the node type.
kindstringOutput only. [Output Only] The type of the resource. Alwayscompute#nodeType for node types. (default: compute#nodeType)
localSsdGbinteger (int32)[Output Only] Local SSD available to the node type, defined in GB.
maxVmsinteger (int32)Output only. [Output Only] Maximum number of VMs that can be created for this node type.
memoryMbinteger (int32)[Output Only] The amount of physical memory available to the node type, defined in MB.
selfLinkstringOutput only. [Output Only] Server-defined URL for the resource.
zonestringOutput only. [Output Only] The name of the zone where the node type resides, such as us-central1-a.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject, zone, nodeTypeReturns the specified node type.
listselectproject, zonefilter, maxResults, orderBy, pageToken, returnPartialSuccessRetrieves a list of node types available to the specified
project.
aggregated_listselectprojectfilter, includeAllScopes, maxResults, orderBy, pageToken, returnPartialSuccess, serviceProjectNumberRetrieves an aggregated list of node types.

To prevent failure, Google recommends that you set the
returnPartialSuccess parameter to true.

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
nodeTypestring
projectstring
zonestring
filterstring
includeAllScopesboolean
maxResultsinteger (uint32)
orderBystring
pageTokenstring
returnPartialSuccessboolean
serviceProjectNumberstring (int64)

SELECT examples​

Returns the specified node type.

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