Data Sources
zsphere_nfs_primary_storages
List all NFS primary storages, or query NFS primary storages by exact name match, or query NFS primary storages by name pattern fuzzy match.
zsphere_nfs_primary_storages (Data Source)
List all NFS primary storages, or query NFS primary storages by exact name match, or query NFS primary storages by name pattern fuzzy match.
Example Usage
data "zsphere_nfs_primary_storages" "test" {
}
output "zsphere_nfs_storages" {
value = data.zsphere_nfs_primary_storages.test
}
# Example output:
# zsphere_nfs_storages = {
# "filter" = tolist([])
# "nfs_storages" = tolist([
# {
# "available_capacity" = 50000000000
# "available_physical_capacity" = 50000000000
# "mount_path" = "/share/nfs"
# "name" = "NFS-1"
# "state" = "Enabled"
# "status" = "Connected"
# "system_used_capacity" = 0
# "total_capacity" = 100000000000
# "total_physical_capacity" = 100000000000
# "type" = "NFS"
# "url" = "192.168.1.100:/share/nfs"
# "uuid" = "d1058cff5c864a84848e0ab896736578"
# "datacenter_uuid" = "86643f5442164890b8b71de5b582dc9f"
# },
# ])
# "name" = tostring(null)
# "name_pattern" = tostring(null)
# }Schema
Optional
filter(Block List) Filter resources based on any field in the schema. For example, to filter by status, usename = "status"andvalues = ["Ready"]. (see below for nested schema)name(String) Exact name for searching NFS primary storage.name_pattern(String) Pattern for fuzzy name search, similar to MySQL LIKE. Use % for multiple characters and _ for exactly one character.
Read-Only
nfs_storages(Attributes List) List of NFS primary storage entries (see below for nested schema)
Nested Schema for filter
Required:
name(String) Name of the field to filter by (e.g., status, state).values(Set of String) Values to filter by. Multiple values will be treated as an OR condition.
Nested Schema for nfs_storages
Read-Only:
available_capacity(Number) Available capacity of the NFS primary storage in bytesavailable_physical_capacity(Number) Available physical capacity of the NFS primary storage in bytesdatacenter_uuid(String) Datacenter UUID of the NFS primary storagemount_path(String) Mount path of the NFS primary storagename(String) Name of the NFS primary storagestate(String) State of the NFS primary storage (Enabled or Disabled)status(String) Readiness status of the NFS primary storagesystem_used_capacity(Number) System used capacity of the NFS primary storage in bytestotal_capacity(Number) Total capacity of the NFS primary storage in bytestotal_physical_capacity(Number) Total physical capacity of the NFS primary storage in bytestype(String) Type of the NFS primary storageurl(String) URL of the NFS primary storageuuid(String) UUID identifier of the NFS primary storage
zsphere_local_primary_storages
List all local primary storages, or query local primary storages by exact name match, or query local primary storages by name pattern fuzzy match.
zsphere_image_storages
List all Image storages, or query Image storages by exact name match, or query Image storages by name pattern fuzzy match.