Vcenter Compute Policies Capabilities VmVmAffinity CreateSpecV2
The Vcenter Compute Policies Capabilities VmVmAffinity CreateSpecV2 schema contains information used to create a new VM-VM affinity policy with enhanced object selection capabilities.
All virtual machines selected by Vcenter Compute Policies Capabilities VmVmAffinity CreateSpecV2.vm_selector will be 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 affinity policy applies to. All VMs selected by this selector will be affined to each other.
This property was added in vSphere API 9.1.1.0.