ComputePoliciesCapabilitiesVmPlacementAntiAffinityWithVclsCreateSpec

The CreateSpec structure contains information used to create a new anti-affinity with vSphere Cluster Services (vCLS) VMs policy, see Policies.create. vSphere Cluster Services (vCLS) VMs are anti-affine with virtual machines that share the tag indicated by CreateSpec.vm-tag.


Properties

string
capability Required

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.


string
description Required

Description of the policy.


string
name Required

Name of the policy. The name needs to be unique within this vCenter server.


string
vm_tag Required

Identifier of a tag that can be associated with a virtual machine. vSphere Cluster Services (vCLS) VMs are anti-affine with virtual machines that share the tag indicated by CreateSpec.vm-tag. 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",
	"name": "string",
	"vm_tag": "string"
}

Feedback

Was this page helpful?