volumes
Creates, updates, deletes, gets or lists a volumes
resource.
Overview
Name | volumes |
Type | Resource |
Id | google.netapp.volumes |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. Name of the volume |
activeDirectory | string | Output only. Specifies the ActiveDirectory name of a SMB volume. |
backupConfig | object | BackupConfig of the volume. (id: BackupConfig) |
capacityGib | string (int64) | Required. Capacity in GIB of the volume |
coldTierSizeGib | string (int64) | Output only. Size of the volume cold tier data rounded down to the nearest GiB. |
createTime | string (google-datetime) | Output only. Create time of the volume |
description | string | Optional. Description of the volume |
encryptionType | string | Output only. Specified the current volume encryption key source. |
exportPolicy | object | Optional. Export policy of the volume (id: ExportPolicy) |
hasReplication | boolean | Output only. Indicates whether the volume is part of a replication relationship. |
hybridReplicationParameters | object | Optional. The Hybrid Replication parameters for the volume. (id: HybridReplicationParameters) |
kerberosEnabled | boolean | Optional. Flag indicating if the volume is a kerberos volume or not, export policy rules control kerberos security modes (krb5, krb5i, krb5p). |
kmsConfig | string | Output only. Specifies the KMS config to be used for volume encryption. |
labels | object | Optional. Labels as key value pairs |
largeCapacity | boolean | Optional. Flag indicating if the volume will be a large capacity volume or a regular volume. |
ldapEnabled | boolean | Output only. Flag indicating if the volume is NFS LDAP enabled or not. |
mountOptions | array | Output only. Mount options of this volume |
multipleEndpoints | boolean | Optional. Flag indicating if the volume will have an IP address per node for volumes supporting multiple IP endpoints. Only the volume with large_capacity will be allowed to have multiple endpoints. |
network | string | Output only. VPC Network name. Format: projects/{project}/global/networks/{network} |
protocols | array | Required. Protocols required for the volume |
psaRange | string | Output only. This field is not implemented. The values provided in this field are ignored. |
replicaZone | string | Output only. Specifies the replica zone for regional volume. |
restoreParameters | object | Optional. Specifies the source of the volume to be created from. (id: RestoreParameters) |
restrictedActions | array | Optional. List of actions that are restricted on this volume. |
securityStyle | string | Optional. Security Style of the Volume |
serviceLevel | string | Output only. Service level of the volume |
shareName | string | Required. Share name of the volume |
smbSettings | array | Optional. SMB share settings for the volume. |
snapReserve | number (double) | Optional. Snap_reserve specifies percentage of volume storage reserved for snapshot storage. Default is 0 percent. |
snapshotDirectory | boolean | Optional. Snapshot_directory if enabled (true) the volume will contain a read-only .snapshot directory which provides access to each of the volume's snapshots. |
snapshotPolicy | object | Optional. SnapshotPolicy for a volume. (id: SnapshotPolicy) |
state | string | Output only. State of the volume |
stateDetails | string | Output only. State details of the volume |
storagePool | string | Required. StoragePool name of the volume |
throughputMibps | number (double) | Optional. Throughput of the volume (in MiB/s) |
tieringPolicy | object | Tiering policy for the volume. (id: TieringPolicy) |
unixPermissions | string | Optional. Default unix style permission (e.g. 777) the mount point will be created with. Applicable for NFS protocol types only. |
usedGib | string (int64) | Output only. Used capacity in GIB of the volume. This is computed periodically and it does not represent the realtime usage. |
zone | string | Output only. Specifies the active zone for regional volume. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. Name of the volume |
activeDirectory | string | Output only. Specifies the ActiveDirectory name of a SMB volume. |
backupConfig | object | BackupConfig of the volume. (id: BackupConfig) |
capacityGib | string (int64) | Required. Capacity in GIB of the volume |
coldTierSizeGib | string (int64) | Output only. Size of the volume cold tier data rounded down to the nearest GiB. |
createTime | string (google-datetime) | Output only. Create time of the volume |
description | string | Optional. Description of the volume |
encryptionType | string | Output only. Specified the current volume encryption key source. |
exportPolicy | object | Optional. Export policy of the volume (id: ExportPolicy) |
hasReplication | boolean | Output only. Indicates whether the volume is part of a replication relationship. |
hybridReplicationParameters | object | Optional. The Hybrid Replication parameters for the volume. (id: HybridReplicationParameters) |
kerberosEnabled | boolean | Optional. Flag indicating if the volume is a kerberos volume or not, export policy rules control kerberos security modes (krb5, krb5i, krb5p). |
kmsConfig | string | Output only. Specifies the KMS config to be used for volume encryption. |
labels | object | Optional. Labels as key value pairs |
largeCapacity | boolean | Optional. Flag indicating if the volume will be a large capacity volume or a regular volume. |
ldapEnabled | boolean | Output only. Flag indicating if the volume is NFS LDAP enabled or not. |
mountOptions | array | Output only. Mount options of this volume |
multipleEndpoints | boolean | Optional. Flag indicating if the volume will have an IP address per node for volumes supporting multiple IP endpoints. Only the volume with large_capacity will be allowed to have multiple endpoints. |
network | string | Output only. VPC Network name. Format: projects/{project}/global/networks/{network} |
protocols | array | Required. Protocols required for the volume |
psaRange | string | Output only. This field is not implemented. The values provided in this field are ignored. |
replicaZone | string | Output only. Specifies the replica zone for regional volume. |
restoreParameters | object | Optional. Specifies the source of the volume to be created from. (id: RestoreParameters) |
restrictedActions | array | Optional. List of actions that are restricted on this volume. |
securityStyle | string | Optional. Security Style of the Volume |
serviceLevel | string | Output only. Service level of the volume |
shareName | string | Required. Share name of the volume |
smbSettings | array | Optional. SMB share settings for the volume. |
snapReserve | number (double) | Optional. Snap_reserve specifies percentage of volume storage reserved for snapshot storage. Default is 0 percent. |
snapshotDirectory | boolean | Optional. Snapshot_directory if enabled (true) the volume will contain a read-only .snapshot directory which provides access to each of the volume's snapshots. |
snapshotPolicy | object | Optional. SnapshotPolicy for a volume. (id: SnapshotPolicy) |
state | string | Output only. State of the volume |
stateDetails | string | Output only. State details of the volume |
storagePool | string | Required. StoragePool name of the volume |
throughputMibps | number (double) | Optional. Throughput of the volume (in MiB/s) |
tieringPolicy | object | Tiering policy for the volume. (id: TieringPolicy) |
unixPermissions | string | Optional. Default unix style permission (e.g. 777) the mount point will be created with. Applicable for NFS protocol types only. |
usedGib | string (int64) | Output only. Used capacity in GIB of the volume. This is computed periodically and it does not represent the realtime usage. |
zone | string | Output only. Specifies the active zone for regional volume. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , volumesId | Gets details of a single Volume. | |
list | select | projectsId , locationsId | pageSize , pageToken , filter , orderBy | Lists Volumes in a given project. |
create | insert | projectsId , locationsId | volumeId | Creates a new Volume in a given project and location. |
patch | update | projectsId , locationsId , volumesId | updateMask | Updates the parameters of a single Volume. |
delete | delete | projectsId , locationsId , volumesId | force | Deletes a single Volume. |
revert | exec | projectsId , locationsId , volumesId | Revert an existing volume to a specified snapshot. Warning! This operation will permanently revert all changes made after the snapshot was created. |
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.
Name | Datatype | Description |
---|---|---|
locationsId | string | |
projectsId | string | |
volumesId | string | |
filter | string | |
force | boolean | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
updateMask | string (google-fieldmask) | |
volumeId | string |
SELECT
examples
- get
- list
Gets details of a single Volume.
SELECT
name,
activeDirectory,
backupConfig,
capacityGib,
coldTierSizeGib,
createTime,
description,
encryptionType,
exportPolicy,
hasReplication,
hybridReplicationParameters,
kerberosEnabled,
kmsConfig,
labels,
largeCapacity,
ldapEnabled,
mountOptions,
multipleEndpoints,
network,
protocols,
psaRange,
replicaZone,
restoreParameters,
restrictedActions,
securityStyle,
serviceLevel,
shareName,
smbSettings,
snapReserve,
snapshotDirectory,
snapshotPolicy,
state,
stateDetails,
storagePool,
throughputMibps,
tieringPolicy,
unixPermissions,
usedGib,
zone
FROM google.netapp.volumes
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND volumesId = '{{ volumesId }}' -- required;
Lists Volumes in a given project.
SELECT
name,
activeDirectory,
backupConfig,
capacityGib,
coldTierSizeGib,
createTime,
description,
encryptionType,
exportPolicy,
hasReplication,
hybridReplicationParameters,
kerberosEnabled,
kmsConfig,
labels,
largeCapacity,
ldapEnabled,
mountOptions,
multipleEndpoints,
network,
protocols,
psaRange,
replicaZone,
restoreParameters,
restrictedActions,
securityStyle,
serviceLevel,
shareName,
smbSettings,
snapReserve,
snapshotDirectory,
snapshotPolicy,
state,
stateDetails,
storagePool,
throughputMibps,
tieringPolicy,
unixPermissions,
usedGib,
zone
FROM google.netapp.volumes
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}';
INSERT
examples
- create
- Manifest
Creates a new Volume in a given project and location.
INSERT INTO google.netapp.volumes (
data__name,
data__shareName,
data__storagePool,
data__capacityGib,
data__exportPolicy,
data__protocols,
data__smbSettings,
data__unixPermissions,
data__labels,
data__description,
data__snapshotPolicy,
data__snapReserve,
data__snapshotDirectory,
data__securityStyle,
data__kerberosEnabled,
data__restoreParameters,
data__backupConfig,
data__restrictedActions,
data__largeCapacity,
data__multipleEndpoints,
data__tieringPolicy,
data__hybridReplicationParameters,
data__throughputMibps,
projectsId,
locationsId,
volumeId
)
SELECT
'{{ name }}',
'{{ shareName }}',
'{{ storagePool }}',
'{{ capacityGib }}',
'{{ exportPolicy }}',
'{{ protocols }}',
'{{ smbSettings }}',
'{{ unixPermissions }}',
'{{ labels }}',
'{{ description }}',
'{{ snapshotPolicy }}',
{{ snapReserve }},
{{ snapshotDirectory }},
'{{ securityStyle }}',
{{ kerberosEnabled }},
'{{ restoreParameters }}',
'{{ backupConfig }}',
'{{ restrictedActions }}',
{{ largeCapacity }},
{{ multipleEndpoints }},
'{{ tieringPolicy }}',
'{{ hybridReplicationParameters }}',
{{ throughputMibps }},
'{{ projectsId }}',
'{{ locationsId }}',
'{{ volumeId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: volumes
props:
- name: projectsId
value: string
description: Required parameter for the volumes resource.
- name: locationsId
value: string
description: Required parameter for the volumes resource.
- name: name
value: string
description: >
Identifier. Name of the volume
- name: shareName
value: string
description: >
Required. Share name of the volume
- name: storagePool
value: string
description: >
Required. StoragePool name of the volume
- name: capacityGib
value: string
description: >
Required. Capacity in GIB of the volume
- name: exportPolicy
value: object
description: >
Optional. Export policy of the volume
- name: protocols
value: array
description: >
Required. Protocols required for the volume
- name: smbSettings
value: array
description: >
Optional. SMB share settings for the volume.
- name: unixPermissions
value: string
description: >
Optional. Default unix style permission (e.g. 777) the mount point will be created with. Applicable for NFS protocol types only.
- name: labels
value: object
description: >
Optional. Labels as key value pairs
- name: description
value: string
description: >
Optional. Description of the volume
- name: snapshotPolicy
value: object
description: >
Optional. SnapshotPolicy for a volume.
- name: snapReserve
value: number
description: >
Optional. Snap_reserve specifies percentage of volume storage reserved for snapshot storage. Default is 0 percent.
- name: snapshotDirectory
value: boolean
description: >
Optional. Snapshot_directory if enabled (true) the volume will contain a read-only .snapshot directory which provides access to each of the volume's snapshots.
- name: securityStyle
value: string
description: >
Optional. Security Style of the Volume
valid_values: ['SECURITY_STYLE_UNSPECIFIED', 'NTFS', 'UNIX']
- name: kerberosEnabled
value: boolean
description: >
Optional. Flag indicating if the volume is a kerberos volume or not, export policy rules control kerberos security modes (krb5, krb5i, krb5p).
- name: restoreParameters
value: object
description: >
Optional. Specifies the source of the volume to be created from.
- name: backupConfig
value: object
description: >
BackupConfig of the volume.
- name: restrictedActions
value: array
description: >
Optional. List of actions that are restricted on this volume.
- name: largeCapacity
value: boolean
description: >
Optional. Flag indicating if the volume will be a large capacity volume or a regular volume.
- name: multipleEndpoints
value: boolean
description: >
Optional. Flag indicating if the volume will have an IP address per node for volumes supporting multiple IP endpoints. Only the volume with large_capacity will be allowed to have multiple endpoints.
- name: tieringPolicy
value: object
description: >
Tiering policy for the volume.
- name: hybridReplicationParameters
value: object
description: >
Optional. The Hybrid Replication parameters for the volume.
- name: throughputMibps
value: number
description: >
Optional. Throughput of the volume (in MiB/s)
- name: volumeId
value: string
UPDATE
examples
- patch
Updates the parameters of a single Volume.
UPDATE google.netapp.volumes
SET
data__name = '{{ name }}',
data__shareName = '{{ shareName }}',
data__storagePool = '{{ storagePool }}',
data__capacityGib = '{{ capacityGib }}',
data__exportPolicy = '{{ exportPolicy }}',
data__protocols = '{{ protocols }}',
data__smbSettings = '{{ smbSettings }}',
data__unixPermissions = '{{ unixPermissions }}',
data__labels = '{{ labels }}',
data__description = '{{ description }}',
data__snapshotPolicy = '{{ snapshotPolicy }}',
data__snapReserve = {{ snapReserve }},
data__snapshotDirectory = {{ snapshotDirectory }},
data__securityStyle = '{{ securityStyle }}',
data__kerberosEnabled = {{ kerberosEnabled }},
data__restoreParameters = '{{ restoreParameters }}',
data__backupConfig = '{{ backupConfig }}',
data__restrictedActions = '{{ restrictedActions }}',
data__largeCapacity = {{ largeCapacity }},
data__multipleEndpoints = {{ multipleEndpoints }},
data__tieringPolicy = '{{ tieringPolicy }}',
data__hybridReplicationParameters = '{{ hybridReplicationParameters }}',
data__throughputMibps = {{ throughputMibps }}
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND volumesId = '{{ volumesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;
DELETE
examples
- delete
Deletes a single Volume.
DELETE FROM google.netapp.volumes
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND volumesId = '{{ volumesId }}' --required
AND force = '{{ force }}';
Lifecycle Methods
- revert
Revert an existing volume to a specified snapshot. Warning! This operation will permanently revert all changes made after the snapshot was created.
EXEC google.netapp.volumes.revert
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@volumesId='{{ volumesId }}' --required
@@json=
'{
"snapshotId": "{{ snapshotId }}"
}';