RuleViolation

RuleViolation
RuleViolation

The virtual machine if powered on, would violate an affinity/anti-affinity rule.

In this case, the VM can still be powered on manually by a user who knows what they are doing, but VirtualCenter will never automatically move or power on a VM such that it triggers the violation.

AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "faultCause": "MethodFault Object",
    "faultMessage": [
        {
            "_typeName": "string",
            "key": "string",
            "arg": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": {
                        "_typeName": "string"
                    }
                }
            ],
            "message": "string"
        }
    ],
    "host": {
        "_typeName": "string",
        "type": "string",
        "value": "string"
    },
    "rule": {
        "_typeName": "string",
        "key": 0,
        "status": "string",
        "enabled": false,
        "name": "string",
        "mandatory": false,
        "userCreated": false,
        "inCompliance": false,
        "ruleUuid": "string"
    }
}
host
Optional

The host that the virtual machine can not be powered on without violate a rule.

rule
Required

The rule that is violated.

It can be an affinity or anti-affinity rule.