Skip to main content

storage_pools_disks

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

Overview

Namestorage_pools_disks
TypeResource
Idgoogle.compute.storage_pools_disks

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
idstring[Output Only] Unique identifier for the resource; defined by the server.
etagstring
itemsarrayA list of StoragePoolDisk resources.
kindstring[Output Only] Type of resource. Always compute#storagePoolListDisks for lists of disks in a storagePool. (default: compute#storagePoolListDisks)
nextPageTokenstring[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
selfLinkstring[Output Only] Server-defined URL for this resource.
unreachablesarray[Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder
warningobject[Output Only] Informational warning message.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_disksselectproject, zone, storagePoolfilter, maxResults, orderBy, pageToken, returnPartialSuccessLists the disks in a specified storage pool.

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
projectstring
storagePoolstring
zonestring
filterstring
maxResultsinteger (uint32)
orderBystring
pageTokenstring
returnPartialSuccessboolean

SELECT examples

Lists the disks in a specified storage pool.

SELECT
id,
etag,
items,
kind,
nextPageToken,
selfLink,
unreachables,
warning
FROM google.compute.storage_pools_disks
WHERE project = '{{ project }}' -- required
AND zone = '{{ zone }}' -- required
AND storagePool = '{{ storagePool }}' -- required
AND filter = '{{ filter }}'
AND maxResults = '{{ maxResults }}'
AND orderBy = '{{ orderBy }}'
AND pageToken = '{{ pageToken }}'
AND returnPartialSuccess = '{{ returnPartialSuccess }}';