Skip to main content

disk_types

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

Overview

Namedisk_types
TypeResource
Idgoogle.compute.disk_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])?)
creationTimestampstring[Output Only] Creation timestamp inRFC3339 text format.
defaultDiskSizeGbstring (int64)[Output Only] Server-defined default disk size in GB.
deprecatedobject[Output Only] The deprecation status associated with this disk type. (id: DeprecationStatus)
descriptionstring[Output Only] An optional description of this resource.
kindstringOutput only. [Output Only] Type of the resource. Always compute#diskType for disk types. (default: compute#diskType)
regionstring[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.
selfLinkstring[Output Only] Server-defined URL for the resource.
validDiskSizestring[Output Only] An optional textual description of the valid disk size, such as "10GB-10TB".
zonestring[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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject, zone, diskTypeReturns the specified disk type.
listselectproject, zonemaxResults, pageToken, filter, orderBy, returnPartialSuccessRetrieves a list of disk types available to the specified
project.
aggregated_listselectprojectreturnPartialSuccess, includeAllScopes, orderBy, filter, serviceProjectNumber, maxResults, pageTokenRetrieves an aggregated list of disk types.

To prevent failure, it is recommended 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
diskTypestring
projectstring
zonestring
filterstring
includeAllScopesboolean
maxResultsinteger (uint32)
orderBystring
pageTokenstring
returnPartialSuccessboolean
serviceProjectNumberstring (int64)

SELECT examples

Returns the specified disk type.

SELECT
id,
name,
creationTimestamp,
defaultDiskSizeGb,
deprecated,
description,
kind,
region,
selfLink,
validDiskSize,
zone
FROM google.compute.disk_types
WHERE project = '{{ project }}' -- required
AND zone = '{{ zone }}' -- required
AND diskType = '{{ diskType }}' -- required
;