File Storage
Volume
Terraform reference for Volume.
Schema Properties
| Property | Type | Description |
|---|---|---|
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 | string | The 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 | integer | The size in GB. |
snapshot_directory_access_enabled Default | boolean | This 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 | string | Name of the snapshot policy to apply. Defaults to 'default' if omitted. |
space_used Computed | number | The amount of space used in GiB. |
storagevm_id Required | string | The 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" }}