Vcenter Compute Policies Capabilities VmVmAntiAffinity CreateSpecV2
The Vcenter Compute Policies Capabilities VmVmAntiAffinity CreateSpecV2 schema contains information used to create a new VM-VM anti-affinity policy with enhanced object selection capabilities, see POST /vcenter/compute/policies?action=create-tags-and-policies.
All virtual machines selected by Vcenter Compute Policies Capabilities VmVmAntiAffinity CreateSpecV2.vm_selector will be anti-affined to each other.
Note: This specification is only supported through the POST /vcenter/compute/policies?action=create-tags-and-policies batch operation and is not accepted by the single POST /vcenter/compute/policies method.
This schema was added in vSphere API 9.1.1.0.
{
"capability": "string",
"name": "string",
"description": "string",
"managed_by": {
"entity": "string"
},
"vm_selector": {
"tag": {
"tag_id": "string",
"tag_name_spec": {
"category_name": "string",
"tag_name": "string"
}
}
}
}
Selector that identifies which virtual machines this anti-affinity policy applies to. All VMs selected by this selector will be anti-affined to each other.
This property was added in vSphere API 9.1.1.0.