- Resource: Volume
- State
- ExportPolicy
- SimpleExportPolicyRule
- AccessType
- Protocols
- SMBSettings
- MountOption
- SnapshotPolicy
- HourlySchedule
- DailySchedule
- WeeklySchedule
- MonthlySchedule
- SecurityStyle
- RestoreParameters
- BackupConfig
- RestrictedAction
- HybridReplicationParameters
- 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 |
state |
Output only. State details of the volume |
create |
Output only. Create time of the volume A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
share |
Required. Share name of the volume |
psa |
Output only. This field is not implemented. The values provided in this field are ignored. |
storage |
Required. StoragePool name of the volume |
network |
Output only. VPC Network name. Format: projects/{project}/global/networks/{network} |
service |
Output only. Service level of the volume |
capacity |
Required. Capacity in GIB of the volume |
export |
Optional. Export policy of the volume |
protocols[] |
Required. Protocols required for the volume |
smb |
Optional. SMB share settings for the volume. |
mount |
Output only. Mount options of this volume |
unix |
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 |
snapshot |
Optional. SnapshotPolicy for a volume. |
snap |
Optional. Snap_reserve specifies percentage of volume storage reserved for snapshot storage. Default is 0 percent. |
snapshot |
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. |
used |
Output only. Used capacity in GIB of the volume. This is computed periodically and it does not represent the realtime usage. |
security |
Optional. Security Style of the Volume |
kerberos |
Optional. Flag indicating if the volume is a kerberos volume or not, export policy rules control kerberos security modes (krb5, krb5i, krb5p). |
ldap |
Output only. Flag indicating if the volume is NFS LDAP enabled or not. |
active |
Output only. Specifies the ActiveDirectory name of a SMB volume. |
restore |
Optional. Specifies the source of the volume to be created from. |
kms |
Output only. Specifies the KMS config to be used for volume encryption. |
encryption |
Output only. Specified the current volume encryption key source. |
has |
Output only. Indicates whether the volume is part of a replication relationship. |
restricted |
Optional. List of actions that are restricted on this volume. |
large |
Optional. Flag indicating if the volume will be a large capacity volume or a regular volume. |
multiple |
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. |
replica |
Output only. Specifies the replica zone for regional volume. |
zone |
Output only. Specifies the active zone for regional volume. |
cold |
Output only. Size of the volume cold tier data in GiB. |
hybrid |
Optional. The Hybrid Replication parameters for the volume. |
backup |
BackupConfig of the volume. |
tiering |
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 |
PREPARING |
Volume State is Preparing. Note that this is different from CREATING where CREATING means the volume is being created, while PREPARING means the volume is created and now being prepared for the replication. |
READ_ONLY |
Volume State is Read Only |
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 | |
---|---|
allowed |
Comma separated list of allowed clients IP addresses |
has |
Whether Unix root access will be granted. |
access |
Access type (ReadWrite, ReadOnly, None) |
nfsv3 |
NFS V3 protocol. |
nfsv4 |
NFS V4 protocol. |
kerberos5 |
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. |
kerberos5 |
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. |
kerberos5i |
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. |
kerberos5i |
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. |
kerberos5p |
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. |
kerberos5p |
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 |
export |
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. |
hourly |
Hourly schedule policy. |
daily |
Daily schedule policy. |
weekly |
Weekly schedule policy. |
monthly |
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 | |
---|---|
snapshots |
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 | |
---|---|
snapshots |
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 | |
---|---|
snapshots |
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 | |
---|---|
snapshots |
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). |
days |
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: |
|
source |
Full name of the snapshot resource. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot} |
source |
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 | |
---|---|
backup |
Optional. When specified, schedule backups will be created based on the policy configuration. |
backup |
Optional. Name of backup vault. Format: projects/{projectId}/locations/{location}/backupVaults/{backupVaultId} |
scheduled |
Optional. When set to true, scheduled backup is enabled on the volume. This field should be nil when there's no backup policy attached. |
backup |
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. |
HybridReplicationParameters
The Hybrid Replication parameters for the volume.
JSON representation |
---|
{ "replication": string, "peerVolumeName": string, "peerClusterName": string, "peerSvmName": string, "peerIpAddresses": [ string ], "clusterLocation": string, "description": string, "labels": { string: string, ... } } |
Fields | |
---|---|
replication |
Required. Desired name for the replication of this volume. |
peer |
Required. Name of the user's local source volume to be peered with the destination volume. |
peer |
Required. Name of the user's local source cluster to be peered with the destination cluster. |
peer |
Required. Name of the user's local source vserver svm to be peered with the destination vserver svm. |
peer |
Required. List of node ip addresses to be peered with. |
cluster |
Optional. Name of source cluster location associated with the Hybrid replication. This is a free-form field for the display purpose only. |
description |
Optional. Description of the replication. |
labels |
Optional. Labels to be added to the replication as the key value pairs. An object containing a list of |
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. |