machine_types
Creates, updates, deletes, gets or lists a machine_types
resource.
Overview
Name | machine_types |
Type | Resource |
Id | google.compute.machine_types |
Fields
Name | Datatype | Description |
---|---|---|
id | string | [Output Only] The unique identifier for the resource. This identifier is defined by the server. |
name | string | [Output Only] Name of the resource. |
description | string | [Output Only] An optional textual description of the resource. |
accelerators | array | [Output Only] A list of accelerator configurations assigned to this machine type. |
architecture | string | [Output Only] The architecture of the machine type. |
creationTimestamp | string | [Output Only] Creation timestamp in RFC3339 text format. |
deprecated | object | Deprecation status for a public resource. |
guestCpus | integer | [Output Only] The number of virtual CPUs that are available to the instance. |
imageSpaceGb | integer | [Deprecated] This property is deprecated and will never be populated with any relevant values. |
isSharedCpu | boolean | [Output Only] Whether this machine type has a shared CPU. See Shared-core machine types for more information. |
kind | string | [Output Only] The type of the resource. Always compute#machineType for machine types. |
maximumPersistentDisks | integer | [Output Only] Maximum persistent disks allowed. |
maximumPersistentDisksSizeGb | string | [Output Only] Maximum total persistent disks size (GB) allowed. |
memoryMb | integer | [Output Only] The amount of physical memory available to the instance, defined in MB. |
scratchDisks | array | [Output Only] A list of extended scratch disks assigned to the instance. |
selfLink | string | [Output Only] Server-defined URL for the resource. |
zone | string | [Output Only] The name of the zone where the machine type resides, such as us-central1-a. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
aggregated_list | SELECT | project | Retrieves an aggregated list of machine types. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true . |
get | SELECT | machineType, project, zone | Returns the specified machine type. |
list | SELECT | project, zone | Retrieves 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 }}';