Vcenter Compute Policies Capabilities VmVmAntiAffinity InfoV2

Vcenter Compute Policies Capabilities VmVmAntiAffinity InfoV2
Vcenter Compute Policies Capabilities VmVmAntiAffinity InfoV2

The Vcenter Compute Policies Capabilities VmVmAntiAffinity InfoV2 schema contains information about a VM-VM anti-affinity policy with enhanced object selection capabilities, see GET /vcenter/compute/policies/{policy}.

All virtual machines selected by Vcenter Compute Policies Capabilities VmVmAntiAffinity InfoV2.vm_selector are anti-affined to each other.

This schema was added in vSphere API 9.1.1.0.

AllOf
This class requires all of the following:
JSON Example
{
    "name": "string",
    "description": "string",
    "capability": "string",
    "managed_by": {
        "entity": "string"
    },
    "vm_selector": {
        "tag": {
            "tag_id": "string",
            "tag_name_spec": {
                "category_name": "string",
                "tag_name": "string"
            }
        }
    }
}
vm_selector
Required  

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.