# Data Object - ClusterAntiAffinityRuleSpec(vim.cluster.AntiAffinityRuleSpec)

Extends
  ClusterRuleInfo
See also
  VirtualMachine

## Data Object Description

The ClusterAntiAffinityRuleSpec data object defines a set of virtual machines. DRS will attempt to schedule the virtual machines to run on different hosts.

Properties

Name | Type | Description
--- | --- | ---
vm | ManagedObjectReference[] to a VirtualMachine[] | List of virtual machine references.
Properties inherited from ClusterRuleInfo
enabled, inCompliance, key, mandatory, name, ruleUuid, status, userCreated
Properties inherited from DynamicData
None

Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="ClusterAntiAffinityRuleSpec"> <complexContent> <extension base="vsan:ClusterRuleInfo"> <sequence> <element name="vm" type="vsan:ManagedObjectReference" maxOccurs="unbounded"/> </sequence> </extension> </complexContent> </complexType>