- Resource: Volume
- State
- ExportPolicy
- SimpleExportPolicyRule
- AccessType
- Protocols
- SMBSettings
- MountOption
- SnapshotPolicy
- HourlySchedule
- DailySchedule
- WeeklySchedule
- MonthlySchedule
- SecurityStyle
- RestoreParameters
- BackupConfig
- RestrictedAction
- TieringPolicy
- TierAction
- Methods
Resource: Volume
Volume provides a filesystem that you can mount.
JSON representation |
---|
{ "name": string, "state": enum ( |
Fields | |
---|---|
name |
Identifier. Name of the volume |
state |
Output only. State of the volume |
stateDetails |
Output only. State details of the volume |
createTime |
Output only. Create time of the volume A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
shareName |
Required. Share name of the volume |
psaRange |
Output only. This field is not implemented. The values provided in this field are ignored. |
storagePool |
Required. StoragePool name of the volume |
network |
Output only. VPC Network name. Format: projects/{project}/global/networks/{network} |
serviceLevel |
Output only. Service level of the volume |
capacityGib |
Required. Capacity in GIB of the volume |
exportPolicy |
Optional. Export policy of the volume |
protocols[] |
Required. Protocols required for the volume |
smbSettings[] |
Optional. SMB share settings for the volume. |
mountOptions[] |
Output only. Mount options of this volume |
unixPermissions |
Optional. Default unix style permission (e.g. 777) the mount point will be created with. Applicable for NFS protocol types only. |
labels |
Optional. Labels as key value pairs An object containing a list of |
description |
Optional. Description of the volume |
snapshotPolicy |
Optional. SnapshotPolicy for a volume. |
snapReserve |
Optional. Snap_reserve specifies percentage of volume storage reserved for snapshot storage. Default is 0 percent. |
snapshotDirectory |
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. |
usedGib |
Output only. Used capacity in GIB of the volume. This is computed periodically and it does not represent the realtime usage. |
securityStyle |
Optional. Security Style of the Volume |
kerberosEnabled |
Optional. Flag indicating if the volume is a kerberos volume or not, export policy rules control kerberos security modes (krb5, krb5i, krb5p). |
ldapEnabled |
Output only. Flag indicating if the volume is NFS LDAP enabled or not. |
activeDirectory |
Output only. Specifies the ActiveDirectory name of a SMB volume. |
restoreParameters |
Optional. Specifies the source of the volume to be created from. |
kmsConfig |
Output only. Specifies the KMS config to be used for volume encryption. |
encryptionType |
Output only. Specified the current volume encryption key source. |
hasReplication |
Output only. Indicates whether the volume is part of a replication relationship. |
restrictedActions[] |
Optional. List of actions that are restricted on this volume. |
largeCapacity |
Optional. Flag indicating if the volume will be a large capacity volume or a regular volume. |
multipleEndpoints |
Optional. Flag indicating if the volume will have an IP address per node for volumes supporting multiple IP endpoints. Only the volume with largeCapacity will be allowed to have multiple endpoints. |
replicaZone |
Output only. Specifies the replica zone for regional volume. |
zone |
Output only. Specifies the active zone for regional volume. |
coldTierSizeGib |
Output only. Size of the volume cold tier data in GiB. |
backupConfig |
BackupConfig of the volume. |
tieringPolicy |
Tiering policy for the volume. |
State
The volume states
Enums | |
---|---|
STATE_UNSPECIFIED |
Unspecified Volume State |
READY |
Volume State is Ready |
CREATING |
Volume State is Creating |
DELETING |
Volume State is Deleting |
UPDATING |
Volume State is Updating |
RESTORING |
Volume State is Restoring |
DISABLED |
Volume State is Disabled |
ERROR |
Volume State is Error |
ExportPolicy
Defines the export policy for the volume.
JSON representation |
---|
{
"rules": [
{
object ( |
Fields | |
---|---|
rules[] |
Required. List of export policy rules |
SimpleExportPolicyRule
An export policy rule describing various export options.
JSON representation |
---|
{
"allowedClients": string,
"hasRootAccess": string,
"accessType": enum ( |
Fields | |
---|---|
allowedClients |
Comma separated list of allowed clients IP addresses |
hasRootAccess |
Whether Unix root access will be granted. |
accessType |
Access type (ReadWrite, ReadOnly, None) |
nfsv3 |
NFS V3 protocol. |
nfsv4 |
NFS V4 protocol. |
kerberos5ReadOnly |
If enabled (true) the rule defines a read only access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'authentication' kerberos security mode. |
kerberos5ReadWrite |
If enabled (true) the rule defines read and write access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'authentication' kerberos security mode. The 'kerberos5ReadOnly' value be ignored if this is enabled. |
kerberos5iReadOnly |
If enabled (true) the rule defines a read only access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'integrity' kerberos security mode. |
kerberos5iReadWrite |
If enabled (true) the rule defines read and write access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'integrity' kerberos security mode. The 'kerberos5iReadOnly' value be ignored if this is enabled. |
kerberos5pReadOnly |
If enabled (true) the rule defines a read only access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'privacy' kerberos security mode. |
kerberos5pReadWrite |
If enabled (true) the rule defines read and write access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'privacy' kerberos security mode. The 'kerberos5pReadOnly' value be ignored if this is enabled. |
AccessType
AccessType is an enum of all the supported access types for a volume.
Enums | |
---|---|
ACCESS_TYPE_UNSPECIFIED |
Unspecified Access Type |
READ_ONLY |
Read Only |
READ_WRITE |
Read Write |
READ_NONE |
None |
Protocols
Protocols is an enum of all the supported network protocols for a volume.
Enums | |
---|---|
PROTOCOLS_UNSPECIFIED |
Unspecified protocol |
NFSV3 |
NFS V3 protocol |
NFSV4 |
NFS V4 protocol |
SMB |
SMB protocol |
SMBSettings
SMBSettings Modifies the behaviour of a SMB volume.
Enums | |
---|---|
SMB_SETTINGS_UNSPECIFIED |
Unspecified default option |
ENCRYPT_DATA |
SMB setting encrypt data |
BROWSABLE |
SMB setting browsable |
CHANGE_NOTIFY |
SMB setting notify change |
NON_BROWSABLE |
SMB setting not to notify change |
OPLOCKS |
SMB setting oplocks |
SHOW_SNAPSHOT |
SMB setting to show snapshots |
SHOW_PREVIOUS_VERSIONS |
SMB setting to show previous versions |
ACCESS_BASED_ENUMERATION |
SMB setting to access volume based on enumerartion |
CONTINUOUSLY_AVAILABLE |
Continuously available enumeration |
MountOption
View only mount options for a volume.
JSON representation |
---|
{
"export": string,
"exportFull": string,
"protocol": enum ( |
Fields | |
---|---|
export |
Export string |
exportFull |
Full export string |
protocol |
Protocol to mount with. |
instructions |
Instructions for mounting |
SnapshotPolicy
Snapshot Policy for a volume.
JSON representation |
---|
{ "enabled": boolean, "hourlySchedule": { object ( |
Fields | |
---|---|
enabled |
If enabled, make snapshots automatically according to the schedules. Default is false. |
hourlySchedule |
Hourly schedule policy. |
dailySchedule |
Daily schedule policy. |
weeklySchedule |
Weekly schedule policy. |
monthlySchedule |
Monthly schedule policy. |
HourlySchedule
Make a snapshot every hour e.g. at 04:00, 05:00, 06:00.
JSON representation |
---|
{ "snapshotsToKeep": number, "minute": number } |
Fields | |
---|---|
snapshotsToKeep |
The maximum number of Snapshots to keep for the hourly schedule |
minute |
Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0). |
DailySchedule
Make a snapshot every day e.g. at 04:00, 05:20, 23:50
JSON representation |
---|
{ "snapshotsToKeep": number, "minute": number, "hour": number } |
Fields | |
---|---|
snapshotsToKeep |
The maximum number of Snapshots to keep for the hourly schedule |
minute |
Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0). |
hour |
Set the hour to start the snapshot (0-23), defaults to midnight (0). |
WeeklySchedule
Make a snapshot every week e.g. at Monday 04:00, Wednesday 05:20, Sunday 23:50
JSON representation |
---|
{ "snapshotsToKeep": number, "minute": number, "hour": number, "day": string } |
Fields | |
---|---|
snapshotsToKeep |
The maximum number of Snapshots to keep for the hourly schedule |
minute |
Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0). |
hour |
Set the hour to start the snapshot (0-23), defaults to midnight (0). |
day |
Set the day or days of the week to make a snapshot. Accepts a comma separated days of the week. Defaults to 'Sunday'. |
MonthlySchedule
Make a snapshot once a month e.g. at 2nd 04:00, 7th 05:20, 24th 23:50
JSON representation |
---|
{ "snapshotsToKeep": number, "minute": number, "hour": number, "daysOfMonth": string } |
Fields | |
---|---|
snapshotsToKeep |
The maximum number of Snapshots to keep for the hourly schedule |
minute |
Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0). |
hour |
Set the hour to start the snapshot (0-23), defaults to midnight (0). |
daysOfMonth |
Set the day or days of the month to make a snapshot (1-31). Accepts a comma separated number of days. Defaults to '1'. |
SecurityStyle
The security style of the volume, can be either UNIX or NTFS.
Enums | |
---|---|
SECURITY_STYLE_UNSPECIFIED |
SecurityStyle is unspecified |
NTFS |
SecurityStyle uses NTFS |
UNIX |
SecurityStyle uses UNIX |
RestoreParameters
The RestoreParameters if volume is created from a snapshot or backup.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field source . The source that the volume is created from. source can be only one of the following: |
|
sourceSnapshot |
Full name of the snapshot resource. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot} |
sourceBackup |
Full name of the backup resource. Format: projects/{project}/locations/{location}/backupVaults/{backupVaultId}/backups/{backupId} |
BackupConfig
BackupConfig contains backup related config on a volume.
JSON representation |
---|
{ "backupPolicies": [ string ], "backupVault": string, "scheduledBackupEnabled": boolean, "backupChainBytes": string } |
Fields | |
---|---|
backupPolicies[] |
Optional. When specified, schedule backups will be created based on the policy configuration. |
backupVault |
Optional. Name of backup vault. Format: projects/{projectId}/locations/{location}/backupVaults/{backupVaultId} |
scheduledBackupEnabled |
Optional. When set to true, scheduled backup is enabled on the volume. This field should be nil when there's no backup policy attached. |
backupChainBytes |
Output only. Total size of all backups in a chain in bytes = baseline backup size + sum(incremental backup size). |
RestrictedAction
Actions to be restricted for a volume.
Enums | |
---|---|
RESTRICTED_ACTION_UNSPECIFIED |
Unspecified restricted action |
DELETE |
Prevent volume from being deleted when mounted. |
TieringPolicy
Defines tiering policy for the volume.
JSON representation |
---|
{
"tierAction": enum ( |
Fields | |
---|---|
tierAction |
Optional. Flag indicating if the volume has tiering policy enable/pause. Default is PAUSED. |
coolingThresholdDays |
Optional. Time in days to mark the volume's data block as cold and make it eligible for tiering, can be range from 7-183. Default is 31. |
TierAction
Tier action for the volume.
Enums | |
---|---|
TIER_ACTION_UNSPECIFIED |
Unspecified. |
ENABLED |
When tiering is enabled, new cold data will be tiered. |
PAUSED |
When paused, tiering won't be performed on new data. Existing data stays tiered until accessed. |
Methods |
|
---|---|
|
Creates a new Volume in a given project and location. |
|
Deletes a single Volume. |
|
Gets details of a single Volume. |
|
Lists Volumes in a given project. |
|
Updates the parameters of a single Volume. |
|
Revert an existing volume to a specified snapshot. |