# Enum - RecommendationReasonCode(vim.cluster.Recommendation.ReasonCode)

Since
  VI API 2.5

## Enum Description

List of defined migration reason codes:

Enum Constants

Name | Description
--- | ---
antiAffin | Fulfill anti-affinity rule.
balanceDatastoreIOLoad | Balance datastore I/O workload. Since vSphere API 5.0
balanceDatastoreIOPSReservation | Balance datastore IOPS reservation Since vSphere API 6.0
balanceDatastoreSpaceUsage | Balance datastore space usage. Since vSphere API 5.0
balanceVsanUsage | Since vSphere API 7.0.2.0
checkResource | Sanity-check resource pool hierarchy Since vSphere API 4.0
datastoreMaint | Datastore entering maintenance mode. Since vSphere API 5.0
datastoreSpaceOutage | Fix the issue that a datastore run out of space. Since vSphere API 5.0
enterStandby | Host entering standby mode.
fairnessCpuAvg | Balance average CPU utilization.
fairnessMemAvg | Balance average memory utilization.
ftConstraints | Fix ft maxVMs and maxVcpus constraint violations Since vSphere API 6.5
hostExitDegradation | Host is not degraded. Since vSphere API 6.5
hostInDegradation | Host is partially degraded. Since vSphere API 6.5
hostMaint | Host entering maintenance mode.
increaseCapacity | Power on host to increase cluster capacity
iolbDisabledInternal | IO load balancing was disabled internally. Since vSphere API 5.0
jointAffin | Fulfill affinity rule.
maxVmsConstraint | Fix maxVms constraint violation Since vSphere API 6.5
networkBandwidthReservation | Fix network bandwidth reservation violation Since vSphere API 6.0
powerOnVm | Power on virtual machine
powerSaving | Power off host for power savings
reservationCpu | balance CPU reservations
reservationMem | balance memory reservations
storagePlacement | Satisfy storage initial placement requests. Since vSphere API 5.0
unreservedCapacity | Maintain unreserved capacity Since vSphere API 4.0
virtualDiskAntiAffin | Fix virtual disk anti-affinity rule violation. Since vSphere API 5.0
virtualDiskJointAffin | Fix virtual disk affinity rule violation. Since vSphere API 5.0
vmAntiAffinityPolicy | Fix VM-VM anti-affinity policy violations Since vSphere API 6.8.7
vmHostAffinityPolicy | Fix VM/host affinity policy violation Since vSphere API 6.8.7
vmHostAntiAffinityPolicy | Fix VM/host anti-affinity policy violation Since vSphere API 6.8.7
vmHostHardAffinity | Fix hard VM/host affinity rule violation Since vSphere API 4.1
vmHostSoftAffinity | Fix soft VM/host affinity rule violation Since vSphere API 4.1
xvmotionPlacement | Satisfy unified vmotion placement requests. Since vSphere API 6.0

Show WSDL type definition
<simpleType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="RecommendationReasonCode"> <restriction base="xsd:string"> <enumeration value="fairnessCpuAvg"/> <enumeration value="fairnessMemAvg"/> <enumeration value="jointAffin"/> <enumeration value="antiAffin"/> <enumeration value="hostMaint"/> <enumeration value="enterStandby"/> <enumeration value="reservationCpu"/> <enumeration value="reservationMem"/> <enumeration value="powerOnVm"/> <enumeration value="powerSaving"/> <enumeration value="increaseCapacity"/> <enumeration value="checkResource"/> <enumeration value="unreservedCapacity"/> <enumeration value="vmHostHardAffinity"/> <enumeration value="vmHostSoftAffinity"/> <enumeration value="balanceDatastoreSpaceUsage"/> <enumeration value="balanceDatastoreIOLoad"/> <enumeration value="balanceDatastoreIOPSReservation"/> <enumeration value="datastoreMaint"/> <enumeration value="virtualDiskJointAffin"/> <enumeration value="virtualDiskAntiAffin"/> <enumeration value="datastoreSpaceOutage"/> <enumeration value="storagePlacement"/> <enumeration value="iolbDisabledInternal"/> <enumeration value="xvmotionPlacement"/> <enumeration value="networkBandwidthReservation"/> <enumeration value="hostInDegradation"/> <enumeration value="hostExitDegradation"/> <enumeration value="maxVmsConstraint"/> <enumeration value="ftConstraints"/> <enumeration value="vmHostAffinityPolicy"/> <enumeration value="vmHostAntiAffinityPolicy"/> <enumeration value="vmAntiAffinityPolicy"/> <enumeration value="balanceVsanUsage"/> </restriction> </simpleType>