Set Placement Settings
To set host level placement constraints, VMware Cloud Foundation Operations will automatically create and manage DRS rules. All conflicting user-created DRS rules need to be DEACTIVATED. These include the following:
- VM-VM affinity / anti-affinity
- VM-Host affinity / anti-affinity
Identifier of the dataCenter
During HOST_BASED configuration, set this flag to true to deactivate all conflicting user-created DRS rules
Placement settings object
"{\n \"taggingScope\" : \"CLUSTER_BASED\",\n \"tagGroups\" : [ {\n \"name\" : \"Operating System\",\n \"prioritized\" : true,\n \"tags\" : [ ],\n \"resourceTags\" : [ {\n \"category\" : \"tag_category_1\",\n \"name\" : \"tag_name_1\"\n }, {\n \"category\" : \"tag_category_1\",\n \"name\" : \"tag_name_2\"\n } ]\n }, {\n \"name\" : \"Network\",\n \"prioritized\" : false,\n \"tags\" : [ ],\n \"resourceTags\" : [ ]\n } ],\n \"excludedClusterTagGroups\" : [ {\n \"name\" : \"Operating System\",\n \"tags\" : [ ],\n \"resourceTags\" : [ {\n \"category\" : \"tag_category_2\",\n \"name\" : \"tag_name_1\"\n }, {\n \"category\" : \"tag_category_2\",\n \"name\" : \"tag_name_2\"\n } ]\n } ],\n \"excludedVmTagGroups\" : [ ],\n \"placementSettingsEnabled\" : true,\n \"clusterExclusionEnabled\" : false,\n \"vmExclusionEnabled\" : false\n}"
Tagging Scope
All tag groups
Collection of cluster excluded tag groups
Collection of VM excluded tag groups
Turn off placement settings. Criteria defined in 'tagGroups' will no longer be considered for VM placement. By default 'true'.
Turn off exclusion settings for Cluster. By default 'false'.
Turn off exclusion settings for VM. By default 'false'.
Update placement settings
"{\n \"taggingScope\" : \"CLUSTER_BASED\",\n \"tagGroups\" : [ {\n \"name\" : \"Operating System\",\n \"prioritized\" : true,\n \"tags\" : [ ],\n \"resourceTags\" : [ {\n \"category\" : \"tag_category_1\",\n \"name\" : \"tag_name_1\"\n }, {\n \"category\" : \"tag_category_1\",\n \"name\" : \"tag_name_2\"\n } ]\n }, {\n \"name\" : \"Network\",\n \"prioritized\" : false,\n \"tags\" : [ ],\n \"resourceTags\" : [ ]\n } ],\n \"excludedClusterTagGroups\" : [ {\n \"name\" : \"Operating System\",\n \"tags\" : [ ],\n \"resourceTags\" : [ {\n \"category\" : \"tag_category_2\",\n \"name\" : \"tag_name_1\"\n }, {\n \"category\" : \"tag_category_2\",\n \"name\" : \"tag_name_2\"\n } ]\n } ],\n \"excludedVmTagGroups\" : [ ],\n \"placementSettingsEnabled\" : true,\n \"clusterExclusionEnabled\" : false,\n \"vmExclusionEnabled\" : false\n}"
Tagging Scope
All tag groups
Collection of cluster excluded tag groups
Collection of VM excluded tag groups
Turn off placement settings. Criteria defined in 'tagGroups' will no longer be considered for VM placement. By default 'true'.
Turn off exclusion settings for Cluster. By default 'false'.
Turn off exclusion settings for VM. By default 'false'.
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/suite-api/api/optimization/workloadplacement/{dataCenterId}/settings