Hi, I'm trying to find a way to retrieve the DRS rules that have conflicts using the web services api. I've been able to get the DRS rules config in the ClusterComputeResource->configuration->ru...
See more...
Hi, I'm trying to find a way to retrieve the DRS rules that have conflicts using the web services api. I've been able to get the DRS rules config in the ClusterComputeResource->configuration->rule: rule = (vim.cluster.RuleInfo) [
(vim.cluster.AntiAffinityRuleSpec) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
key = 4,
status = <unset>,
enabled = true,
name = 'AFLSDKH',
mandatory = <unset>,
userCreated = true,
inCompliance = <unset>,
ruleUuid = '5224c444-3cd1-084b-54d5-2576b510d49a',
vm = (vim.VirtualMachine) [
'vim.VirtualMachine:vm-1040',
'vim.VirtualMachine:vm-1044'
]
},
(vim.cluster.AffinityRuleSpec) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
key = 5,
status = <unset>,
enabled = false,
name = 'asdfasg',
mandatory = <unset>,
userCreated = true,
inCompliance = <unset>,
ruleUuid = '523fee15-9eaf-0a51-3276-82046d4caaf0',
vm = (vim.VirtualMachine) [
'vim.VirtualMachine:vm-1044',
'vim.VirtualMachine:vm-1040'
]
}
] But I cannot find anywhere the info about the conflicts of each rule and the vms in conflict. Does anybody know how to retrieve this info? Thanks in advance.