disk_types
Creates, updates, deletes, gets or lists a disk_types
resource.
Overview
Name | disk_types |
Type | Resource |
Id | google.compute.disk_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 description of this resource. |
creationTimestamp | string | [Output Only] Creation timestamp in RFC3339 text format. |
defaultDiskSizeGb | string | [Output Only] Server-defined default disk size in GB. |
deprecated | object | Deprecation status for a public resource. |
kind | string | [Output Only] Type of the resource. Always compute#diskType for disk types. |
region | string | [Output Only] URL of the region where the disk type resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
selfLink | string | [Output Only] Server-defined URL for the resource. |
validDiskSize | string | [Output Only] An optional textual description of the valid disk size, such as "10GB-10TB". |
zone | string | [Output Only] URL of the zone where the disk type resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
aggregated_list | SELECT | project | Retrieves an aggregated list of disk types. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true . |
get | SELECT | diskType, project, zone | Returns the specified disk type. |
list | SELECT | project, zone | Retrieves a list of disk types available to the specified project. |
SELECT
examples
Retrieves an aggregated list of disk types. To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
.
SELECT
id,
name,
description,
creationTimestamp,
defaultDiskSizeGb,
deprecated,
kind,
region,
selfLink,
validDiskSize,
zone
FROM google.compute.disk_types
WHERE project = '{{ project }}';