Resources

zsphere_nfs_primary_storage

NFS Primary Storage Resource

zsphere_nfs_primary_storage (Resource)

NFS Primary Storage Resource

Example Usage

resource "zsphere_nfs_primary_storage" "nfs_storage" {
  name            = "nfs-storage-from-terraform"
  description     = "Add an example NFS primary storage from terraform"
  datacenter_uuid = "datacenter-uuid-here"
  cluster_uuid    = "cluster-uuid-here"
  url             = "192.168.1.100:/share/nfs"
  cidr            = "192.168.1.0/24"
  mount_options   = "rw,sync"
}

output "zsphere_nfs_primary_storage" {
  value = zsphere_nfs_primary_storage.nfs_storage
}

Schema

Required

  • datacenter_uuid (String) Datacenter UUID of the NFS primary storage
  • name (String) Name of the NFS primary storage
  • url (String) Mount path of the NFS primary storage

Optional

  • cidr (String) CIDR for the NFS primary storage gateway
  • cluster_uuid (String) Cluster UUID to attach the NFS primary storage to
  • description (String) Description of the NFS primary storage
  • mount_options (String) Mount options for the NFS primary storage

Read-Only

  • attached_cluster_uuids (List of String) List of cluster UUIDs attached to the NFS primary storage
  • available_capacity (Number) Available capacity of the NFS primary storage
  • mount_path (String) Mount path of the NFS primary storage
  • state (String) State of the NFS primary storage
  • status (String) Status of the NFS primary storage
  • total_capacity (Number) Total capacity of the NFS primary storage
  • type (String) Type of the NFS primary storage
  • uuid (String) The UUID of the NFS primary storage

On this page