PlacementAffinityRule

PlacementAffinityRule
PlacementAffinityRule

The PlacementAffinityRule data object specifies affinity rules for placement

AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "ruleType": "string",
    "ruleScope": "string",
    "vms": [
        {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        }
    ],
    "keys": [
        "string"
    ]
}
string
ruleType
Required

Type of affinity rule.

The set of possible values are described in PlacementAffinityRuleRuleTypeEnum

string
ruleScope
Required

Scope of the affinity rule.

The set of possible values are described in PlacementAffinityRuleRuleScopeEnum

vms
Optional

List of virtual machines that are part of this rule.

array of string
keys
Optional

List of PlacementSpec keys that are part of this rule representing virtual machines yet to be placed.