Resources
zsphere_local_primary_storage
Local Primary Storage Resource
zsphere_local_primary_storage (Resource)
Local Primary Storage Resource
Example Usage
resource "zsphere_local_primary_storage" "local_storage" {
name = "local-storage-from-terraform"
description = "Add an example local primary storage from terraform"
datacenter_uuid = "datacenter-uuid-here"
cluster_uuid = "cluster-uuid-here"
url = "/vms_ds"
}
output "zsphere_local_primary_storage" {
value = zsphere_local_primary_storage.local_storage
}Schema
Required
datacenter_uuid(String) Datacenter UUID of the local primary storagename(String) Name of the local primary storageurl(String) Mount path of the local primary storage
Optional
cluster_uuid(String) Cluster UUID to attach the local primary storage todescription(String) Description of the local primary storage
Read-Only
attached_cluster_uuids(List of String) List of cluster UUIDs attached to the local primary storageavailable_capacity(Number) Available capacity of the local primary storagemount_path(String) Mount path of the local primary storagestate(String) State of the local primary storagestatus(String) Status of the local primary storagetotal_capacity(Number) Total capacity of the local primary storagetype(String) Type of the local primary storageuuid(String) The UUID of the local primary storage