ClusterDrsVmConfigSpec

ClusterDrsVmConfigSpec
ClusterDrsVmConfigSpec

Updates the per-virtual-machine DRS configuration.

To update the DRS configuration of a virtual machine, a copy of this object is included in the ClusterConfigSpecEx object passed to the method ReconfigureComputeResource_Task.

If reconfigureEx is used to incrementally update the cluster configuration (i.e., the parameter modify is true), then three operations are provided for updating the DRS configuration for a virtual machine. These operations are listed below (see ArrayUpdateSpec for more information on these operations).

  • add: add a configuration for the virtual machine, overwritting the existing configuration if one exists
  • edit: incrmentally update the existing configuration; an existing configuration must exist
  • remove: remove the existing configuration; an existing configuration must exist

If, instead, this method is used to overwrite the cluster configuration (i.e., the parameter modify is false) thereby creating a new configuration, only the add operation is allowed. In this case, add creates a DRS configuration for a virtual machine in the new cluster configuration.

AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "operation": "string",
    "removeKey": {
        "_typeName": "string"
    },
    "info": {
        "_typeName": "string",
        "key": {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        },
        "enabled": false,
        "behavior": "string"
    }
}
info
Optional

DRS configuration for a single virtual machine.

This makes it possible to override the default behavior for an individual virtual machine.