File: DrsVmConfigSpec.rst

package info (click to toggle)
python-pyvmomi 6.7.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 14,980 kB
  • sloc: python: 9,206; xml: 77; makefile: 9
file content (27 lines) | stat: -rw-r--r-- 1,643 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.. _ArrayUpdateSpec: ../../vim/option/ArrayUpdateSpec.rst

.. _ClusterConfigSpecEx: ../../vim/cluster/ConfigSpecEx.rst

.. _vim.option.ArrayUpdateSpec: ../../vim/option/ArrayUpdateSpec.rst

.. _vim.cluster.DrsVmConfigInfo: ../../vim/cluster/DrsVmConfigInfo.rst

.. _ReconfigureComputeResource_Task: ../../vim/ComputeResource.rst#reconfigureEx


vim.cluster.DrsVmConfigSpec
===========================
  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`_ .IfreconfigureExis used to incrementally update the cluster configuration (i.e., the parametermodifyis 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.
:extends: vim.option.ArrayUpdateSpec_

Attributes:
    info (`vim.cluster.DrsVmConfigInfo`_, optional):