Skip to main content

machine_types

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

Overview

Namemachine_types
TypeResource
Idgoogle.compute.machine_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.
acceleratorsarray[Output Only] A list of accelerator configurations assigned to this machine type.
architecturestring[Output Only] The architecture of the machine 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 instance.
imageSpaceGbinteger[Deprecated] This property is deprecated and will never be populated with any relevant values.
isSharedCpuboolean[Output Only] Whether this machine type has a shared CPU. See Shared-core machine types for more information.
kindstring[Output Only] The type of the resource. Always compute#machineType for machine types.
maximumPersistentDisksinteger[Output Only] Maximum persistent disks allowed.
maximumPersistentDisksSizeGbstring[Output Only] Maximum total persistent disks size (GB) allowed.
memoryMbinteger[Output Only] The amount of physical memory available to the instance, defined in MB.
scratchDisksarray[Output Only] A list of extended scratch disks assigned to the instance.
selfLinkstring[Output Only] Server-defined URL for the resource.
zonestring[Output Only] The name of the zone where the machine type resides, such as us-central1-a.

Methods

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

SELECT examples

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

SELECT
id,
name,
description,
accelerators,
architecture,
creationTimestamp,
deprecated,
guestCpus,
imageSpaceGb,
isSharedCpu,
kind,
maximumPersistentDisks,
maximumPersistentDisksSizeGb,
memoryMb,
scratchDisks,
selfLink,
zone
FROM google.compute.machine_types
WHERE project = '{{ project }}';