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 storagename(String) Name of the NFS primary storageurl(String) Mount path of the NFS primary storage
Optional
cidr(String) CIDR for the NFS primary storage gatewaycluster_uuid(String) Cluster UUID to attach the NFS primary storage todescription(String) Description of the NFS primary storagemount_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 storageavailable_capacity(Number) Available capacity of the NFS primary storagemount_path(String) Mount path of the NFS primary storagestate(String) State of the NFS primary storagestatus(String) Status of the NFS primary storagetotal_capacity(Number) Total capacity of the NFS primary storagetype(String) Type of the NFS primary storageuuid(String) The UUID of the NFS primary storage