VcenterSettingsV1ConfigComponentsInventoryClusterDrsRule

The Rule structure describes affinity and anti-affinity DRS rules that affect the placement of virtual machines in a cluster.


Properties

dependency_rule Optional

Cluster-wide VM-to-VM dependency rules.If this is set then AffinityRule, AntiAffinityRule, VmHostRule can not be set. If unset or empty, the value is skipped.


vm_affinity_rules Optional

Cluster-wide VM affinity rules.If this is set then AntiAffinityRule, DependencyRule, VmHostRule can not be set. If unset or empty, the value is skipped.


vm_anti_affinity_rules Optional

Cluster-wide VM anti affinity rules.If this is set then AntiAffinityRule, DependencyRule, VmHostRule can not be set. If unset or empty, the value is skipped.


vm_host_rule Optional

Cluster-wide VM-to-Host affinity rules.If this is set then AffinityRule, AntiAffinityRule, DependencyRule can not be set. If unset or empty, the value is skipped.

JSON Example

{
	"dependency_rule": [
		{
			"depends_on_vm_group": "string",
			"enabled": false,
			"in_compliance": false,
			"mandatory": false,
			"name": "string",
			"status": "GRAY",
			"user_created": false,
			"vm_group": "string"
		}
	],
	"vm_affinity_rules": [
		{
			"enabled": false,
			"in_compliance": false,
			"mandatory": false,
			"name": "string",
			"status": "GRAY",
			"user_created": false,
			"vms": [
				"string"
			]
		}
	],
	"vm_anti_affinity_rules": [
		{
			"enabled": false,
			"in_compliance": false,
			"mandatory": false,
			"name": "string",
			"status": "GRAY",
			"user_created": false,
			"vms": [
				"string"
			]
		}
	],
	"vm_host_rule": [
		{
			"affine_host_group_name": "string",
			"anti_affine_host_group_name": "string",
			"enabled": false,
			"in_compliance": false,
			"mandatory": false,
			"name": "string",
			"status": "GRAY",
			"user_created": false,
			"vm_group_name": "string"
		}
	]
}

Feedback

Was this page helpful?