Global InfraGlobal Infra Cloud
File Storage

Volume

Terraform reference for Volume.

Schema Properties

PropertyTypeDescription
client_ro
list(string)List of hosts or CIDRs granted read-only NFS access.
client_rw
Required
list(string)List of hosts or CIDRs granted read-write NFS access.
name
RequiredForceNew
stringThe name of the volume. Must be fewer than 100 characters and contain only uppercase letters (A-Z), digits (0-9) and underscores (_). Is immutable after creation as it is used as NFS path.
size
Required
integerThe size in GB.
snapshot_directory_access_enabled
Default
booleanThis field, if true, enables the visible '.snapshot' directory from the client. The '.snapshot' directory will be available in every directory on the volume.
snapshot_policy
Default
stringName of the snapshot policy to apply. Defaults to 'default' if omitted.
space_used
Computed
numberThe amount of space used in GiB.
storagevm_id
Required
stringThe ID of the storage virtual machine (SVM) this volume belongs to. Is immutable after creation.
resource "gi_file_storage_volume" "example" {  attributes = {    client_rw    = ["value-1", "value-2"]    name         = "example-name"    size         = 1    storagevm_id = "example-storagevm_id"  }}

Usage Notes