# Managed Object - ServiceManager(vim.ServiceManager)

Property of
  ServiceContent
See also
  ServiceManagerServiceInfo
Since
  vSphere API 5.1

## Managed Object Description

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.

Properties

Name | Type | Description
--- | --- | ---
service* P | ServiceManagerServiceInfo[] | The full list of services available in this directory.

*May not be present P Required privilege: Global.ServiceManagers

Methods

Methods defined in this Managed Object
QueryServiceList

# QueryServiceList(queryServiceList)

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.

Required Privileges
  Global.ServiceManagers

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the ServiceManager used to make the method call.
serviceName* P | xsd:string | The name of the service to be located. Since VI API 2.5
location* P | xsd:string[] | The list of location information that needs to match for a service to be considered a match. Since VI API 2.5

*Need not be set P Required privilege - see tooltip for details

Return Value

Type | Description
--- | ---
ServiceManagerServiceInfo[] |

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="QueryServiceList" type="vsan:QueryServiceListRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="QueryServiceListResponse"> <complexType> <sequence> <element name="returnval" type="vsan:ServiceManagerServiceInfo" minOccurs="0" maxOccurs="unbounded"/> </sequence> </complexType> </element>