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

NameDatatypeDescription
namestring[Output Only] The name of the disk.
attachedInstancesarray[Output Only] Instances this disk is attached to.
creationTimestampstring[Output Only] Creation timestamp in RFC3339 text format.
diskstring[Output Only] The URL of the disk.
provisionedIopsstring[Output Only] The number of IOPS provisioned for the disk.
provisionedThroughputstring[Output Only] The throughput provisioned for the disk.
resourcePoliciesarray[Output Only] Resource policies applied to disk for automatic snapshot creations.
sizeGbstring[Output Only] The disk size, in GB.
statusstring[Output Only] The disk status.
typestring[Output Only] The disk type.
usedBytesstring[Output Only] Amount of disk space used.

Methods

NameAccessible byRequired ParamsDescription
list_disksSELECTproject, storagePool, zoneLists the disks in a specified storage pool.

SELECT examples

Lists the disks in a specified storage pool.

SELECT
name,
attachedInstances,
creationTimestamp,
disk,
provisionedIops,
provisionedThroughput,
resourcePolicies,
sizeGb,
status,
type,
usedBytes
FROM google.compute.storage_pools_disks
WHERE project = '{{ project }}'
AND storagePool = '{{ storagePool }}'
AND zone = '{{ zone }}';