# 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:vim25="urn:vim25" name="ClusterAntiAffinityRuleSpec"> <complexContent> <extension base="vim25:ClusterRuleInfo"> <sequence> <element name="vm" type="vim25:ManagedObjectReference" maxOccurs="unbounded"/> </sequence> </extension> </complexContent> </complexType>