You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"vsphere_datastore_cluster_vm_anti_affinity_rule" {
source="./modules/vsphere/r/vsphere_datastore_cluster_vm_anti_affinity_rule"# datastore_cluster_id - (required) is a type of stringdatastore_cluster_id=null# enabled - (optional) is a type of boolenabled=null# mandatory - (optional) is a type of boolmandatory=null# name - (required) is a type of stringname=null# virtual_machine_ids - (required) is a type of set of stringvirtual_machine_ids=[]
}
variable"datastore_cluster_id" {
description="(required) - The managed object ID of the datastore cluster."type=string
}
variable"enabled" {
description="(optional) - Enable this rule in the cluster."type=booldefault=null
}
variable"mandatory" {
description="(optional) - When true, prevents any virtual machine operations that may violate this rule."type=booldefault=null
}
variable"name" {
description="(required) - The unique name of the virtual machine group in the cluster."type=string
}
variable"virtual_machine_ids" {
description="(required) - The UUIDs of the virtual machines to run on different datastores from each other."type=set(string)
}
resource"vsphere_datastore_cluster_vm_anti_affinity_rule""this" {
# datastore_cluster_id - (required) is a type of stringdatastore_cluster_id=var.datastore_cluster_id# enabled - (optional) is a type of boolenabled=var.enabled# mandatory - (optional) is a type of boolmandatory=var.mandatory# name - (required) is a type of stringname=var.name# virtual_machine_ids - (required) is a type of set of stringvirtual_machine_ids=var.virtual_machine_ids
}