File: ServiceManager.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 (60 lines) | stat: -rw-r--r-- 1,899 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
.. _str: https://docs.python.org/2/library/stdtypes.html

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

.. _VI API 2.5: ../vim/version.rst#vimversionversion2

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

.. _vim.ServiceManager.ServiceInfo: ../vim/ServiceManager/ServiceInfo.rst


vim.ServiceManager
==================
  The ServiceManager managed object is a singleton object that is used to present services that are optional and not necessarily formally defined. This directory makes available a list of such services and provides an easy way to locate them. The service being represented can take arbitrary form here and is thus represented by a generic ManagedObject. The expectation is that the client side is knowledgeable of the instance type of the specific service it is interested in using.


:since: `VI API 2.5`_


Attributes
----------
    service ([`vim.ServiceManager.ServiceInfo`_]):
      privilege: Global.ServiceManagers
       The full list of services available in this directory.


Methods
-------


QueryServiceList(serviceName, location):
   A query interface that returns a list of services that match certain criteria. Besides a basic service name entry, an arbitrary list of matching locations can also be specified. The location array is assumed to be a list of AND expressions, ie, all locations must match for an entry to be considered a match. Regular expressions are not allowed in the query service.


  Privilege:
               Global.ServiceManagers



  Args:
    serviceName (`str`_, optional):
       The name of the service to be located.


    location (`str`_, optional):
       The list of location information that needs to match for a service to be considered a match.




  Returns:
    [`vim.ServiceManager.ServiceInfo`_]:
         

  Raises:

    `vmodl.fault.InvalidArgument`_: 
       if both serviceName and location are not specified.