Skip to main content

storage_pools

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

Overview

Namestorage_pools
TypeResource
Idgoogle.netapp.storage_pools

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. Name of the storage pool
activeDirectorystringOptional. Specifies the Active Directory to be used for creating a SMB volume.
allowAutoTieringbooleanOptional. True if the storage pool supports Auto Tiering enabled volumes. Default is false. Auto-tiering can be enabled after storage pool creation but it can't be disabled once enabled.
availableThroughputMibpsnumber (double)Output only. Available throughput of the storage pool (in MiB/s).
capacityGibstring (int64)Required. Capacity in GIB of the pool
createTimestring (google-datetime)Output only. Create time of the storage pool
customPerformanceEnabledbooleanOptional. True if using Independent Scaling of capacity and performance (Hyperdisk) By default set to false
descriptionstringOptional. Description of the storage pool
enableHotTierAutoResizebooleanOptional. Flag indicating that the hot-tier threshold will be auto-increased by 10% of the hot-tier when it hits 100%. Default is true. The increment will kick in only if the new size after increment is still less than or equal to storage pool size.
encryptionTypestringOutput only. Specifies the current pool encryption key source.
globalAccessAllowedbooleanDeprecated. Used to allow SO pool to access AD or DNS server from other regions.
hotTierSizeGibstring (int64)Optional. Total hot tier capacity for the Storage Pool. It is applicable only to Flex service level. It should be less than the minimum storage pool size and cannot be more than the current storage pool size. It cannot be decreased once set.
kmsConfigstringOptional. Specifies the KMS config to be used for volume encryption.
labelsobjectOptional. Labels as key value pairs
ldapEnabledbooleanOptional. Flag indicating if the pool is NFS LDAP enabled or not.
networkstringRequired. VPC Network name. Format: projects/{project}/global/networks/{network}
psaRangestringOptional. This field is not implemented. The values provided in this field are ignored.
qosTypestringOptional. QoS (Quality of Service) Type of the storage pool
replicaZonestringOptional. Specifies the replica zone for regional storagePool.
satisfiesPzibooleanOutput only. Reserved for future use
satisfiesPzsbooleanOutput only. Reserved for future use
serviceLevelstringRequired. Service level of the storage pool
statestringOutput only. State of the storage pool
stateDetailsstringOutput only. State details of the storage pool
totalIopsstring (int64)Optional. Custom Performance Total IOPS of the pool if not provided, it will be calculated based on the total_throughput_mibps
totalThroughputMibpsstring (int64)Optional. Custom Performance Total Throughput of the pool (in MiBps)
volumeCapacityGibstring (int64)Output only. Allocated size of all volumes in GIB in the storage pool
volumeCountinteger (int32)Output only. Volume count of the storage pool
zonestringOptional. Specifies the active zone for regional storagePool.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, storagePoolsIdReturns the description of the specified storage pool by poolId.
listselectprojectsId, locationsIdpageSize, pageToken, orderBy, filterReturns descriptions of all storage pools owned by the caller.
createinsertprojectsId, locationsIdstoragePoolIdCreates a new storage pool.
patchupdateprojectsId, locationsId, storagePoolsIdupdateMaskUpdates the storage pool properties with the full spec
deletedeleteprojectsId, locationsId, storagePoolsIdWarning! This operation will permanently delete the storage pool.
validate_directory_serviceexecprojectsId, locationsId, storagePoolsIdValidateDirectoryService does a connectivity check for a directory service policy attached to the storage pool.
switchexecprojectsId, locationsId, storagePoolsIdThis operation will switch the active/replica zone for a regional storagePool.

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
locationsIdstring
projectsIdstring
storagePoolsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
storagePoolIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Returns the description of the specified storage pool by poolId.

SELECT
name,
activeDirectory,
allowAutoTiering,
availableThroughputMibps,
capacityGib,
createTime,
customPerformanceEnabled,
description,
enableHotTierAutoResize,
encryptionType,
globalAccessAllowed,
hotTierSizeGib,
kmsConfig,
labels,
ldapEnabled,
network,
psaRange,
qosType,
replicaZone,
satisfiesPzi,
satisfiesPzs,
serviceLevel,
state,
stateDetails,
totalIops,
totalThroughputMibps,
volumeCapacityGib,
volumeCount,
zone
FROM google.netapp.storage_pools
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND storagePoolsId = '{{ storagePoolsId }}' -- required;

INSERT examples

Creates a new storage pool.

INSERT INTO google.netapp.storage_pools (
data__name,
data__serviceLevel,
data__capacityGib,
data__description,
data__labels,
data__network,
data__activeDirectory,
data__kmsConfig,
data__ldapEnabled,
data__psaRange,
data__globalAccessAllowed,
data__allowAutoTiering,
data__replicaZone,
data__zone,
data__customPerformanceEnabled,
data__totalThroughputMibps,
data__totalIops,
data__hotTierSizeGib,
data__enableHotTierAutoResize,
data__qosType,
projectsId,
locationsId,
storagePoolId
)
SELECT
'{{ name }}',
'{{ serviceLevel }}',
'{{ capacityGib }}',
'{{ description }}',
'{{ labels }}',
'{{ network }}',
'{{ activeDirectory }}',
'{{ kmsConfig }}',
{{ ldapEnabled }},
'{{ psaRange }}',
{{ globalAccessAllowed }},
{{ allowAutoTiering }},
'{{ replicaZone }}',
'{{ zone }}',
{{ customPerformanceEnabled }},
'{{ totalThroughputMibps }}',
'{{ totalIops }}',
'{{ hotTierSizeGib }}',
{{ enableHotTierAutoResize }},
'{{ qosType }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ storagePoolId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the storage pool properties with the full spec

UPDATE google.netapp.storage_pools
SET
data__name = '{{ name }}',
data__serviceLevel = '{{ serviceLevel }}',
data__capacityGib = '{{ capacityGib }}',
data__description = '{{ description }}',
data__labels = '{{ labels }}',
data__network = '{{ network }}',
data__activeDirectory = '{{ activeDirectory }}',
data__kmsConfig = '{{ kmsConfig }}',
data__ldapEnabled = {{ ldapEnabled }},
data__psaRange = '{{ psaRange }}',
data__globalAccessAllowed = {{ globalAccessAllowed }},
data__allowAutoTiering = {{ allowAutoTiering }},
data__replicaZone = '{{ replicaZone }}',
data__zone = '{{ zone }}',
data__customPerformanceEnabled = {{ customPerformanceEnabled }},
data__totalThroughputMibps = '{{ totalThroughputMibps }}',
data__totalIops = '{{ totalIops }}',
data__hotTierSizeGib = '{{ hotTierSizeGib }}',
data__enableHotTierAutoResize = {{ enableHotTierAutoResize }},
data__qosType = '{{ qosType }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND storagePoolsId = '{{ storagePoolsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Warning! This operation will permanently delete the storage pool.

DELETE FROM google.netapp.storage_pools
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND storagePoolsId = '{{ storagePoolsId }}' --required;

Lifecycle Methods

ValidateDirectoryService does a connectivity check for a directory service policy attached to the storage pool.

EXEC google.netapp.storage_pools.validate_directory_service 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@storagePoolsId='{{ storagePoolsId }}' --required
@@json=
'{
"directoryServiceType": "{{ directoryServiceType }}"
}';