资源
zsphere_local_primary_storage
管理 ZSvirt 本地主存储,用于存放云主机磁盘数据。
zsphere_local_primary_storage(资源)
管理 ZSvirt 本地主存储,用于存放云主机磁盘数据。
示例用法
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
}参数说明
必填参数
datacenter_uuid(字符串)local所属数据中心 UUID primary storagename(字符串)local名称 primary storageurl(字符串)local挂载路径 primary storage
可选参数
cluster_uuid(字符串)Cluster UUID to attach the local primary storage todescription(字符串)本地主存储描述
只读属性
attached_cluster_uuids(字符串列表)List of cluster UUIDs attached to the local primary storageavailable_capacity(数字)Available capacity of the local primary storagemount_path(字符串)local挂载路径 primary storagestate(字符串)State of the local primary storagestatus(字符串)Status of the local primary storagetotal_capacity(数字)Total capacity of the local primary storagetype(字符串)local类型 primary storageuuid(字符串)本地主存储 UUID