ComputePoliciesCapabilitiesVmHostAntiAffinityCreateSpec
The CreateSpec structure contains information used to create a new virtual machine to host anti-affinity policy, see Policies.create. Virtual machines that have the tag indicated by CreateSpec.vm-tag will be anti-affine to hosts that have the tag indicated by CreateSpec.host-tag in VMware Cloud on AWS. Usage beyond VMware Cloud on AWS is not supported. Warning: This structure is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.
Properties
Identifier of the capability this policy is based on. if unset, then the name of capability structure will be used to distinguish the policy type. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.vcenter.compute.policies.Capability. When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.vcenter.compute.policies.Capability.
Description of the policy.
Identifier of a tag that can be associated with a host. Virtual machines indicated by CreateSpec.vm-tag will be anti-affine to hosts with this tag. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.cis.tagging.Tag:HostSystem. When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.cis.tagging.Tag:HostSystem.
Name of the policy. The name needs to be unique within this vCenter server.
Identifier of a tag that can be associated with a virtual machine. Virtual machines with this tag will be anti-affine to the hosts indicated by CreateSpec.host-tag. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.cis.tagging.Tag:VirtualMachine. When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.cis.tagging.Tag:VirtualMachine.
JSON Example
{
"capability": "string",
"description": "string",
"host_tag": "string",
"name": "string",
"vm_tag": "string"
}