File: PowerSystem.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 (66 lines) | stat: -rw-r--r-- 1,288 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
.. _int: https://docs.python.org/2/library/stdtypes.html

.. _vim.Task: ../../vim/Task.rst

.. _vSphere API 4.1: ../../vim/version.rst#vimversionversion6

.. _vim.fault.HostConfigFault: ../../vim/fault/HostConfigFault.rst

.. _vim.host.PowerSystem.Info: ../../vim/host/PowerSystem/Info.rst

.. _vmodl.fault.InvalidArgument: ../../vmodl/fault/InvalidArgument.rst

.. _vim.host.PowerSystem.Capability: ../../vim/host/PowerSystem/Capability.rst


vim.host.PowerSystem
====================
  Managed object responsible for getting and setting host power management policies.


:since: `vSphere API 4.1`_


Attributes
----------
    capability (`vim.host.PowerSystem.Capability`_):
      privilege: Host.Config.Power
       Power system capabilities object.
    info (`vim.host.PowerSystem.Info`_):
      privilege: Host.Config.Power
       Power system state info object.


Methods
-------


ConfigurePowerPolicy(key):
   Configure host power policy.


  Privilege:
               Host.Config.Power



  Args:
    key (`int`_):
       A key from one of the policies in `availablePolicy`_ .




  Returns:
    None
         

  Raises:

    `vim.fault.HostConfigFault`_: 
       for any other failure.

    `vmodl.fault.InvalidArgument`_: 
       if an invalid power policy key is provided.