Service Manager Query Service List

Service Manager Query Service List

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

Request
URI
POST
https://{vcenter-host}/sdk/vim25/{release}/ServiceManager/{moId}/QueryServiceList
COPY
Path Parameters
string
moId
Required

The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId, in this case ServiceManager/{moId}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.


Request Body
QueryServiceListRequestType of type(s) application/json
Required
{
    "serviceName": "string",
    "location": [
        "string"
    ]
}
string
serviceName
Optional

The name of the service to be located.

array of string
location
Optional

The list of location information that needs to match for a service to be considered a match.

Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns Array of ServiceManagerServiceInfo of type(s) application/json
[
    {
        "_typeName": "string",
        "serviceName": "string",
        "location": [
            "string"
        ],
        "service": {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        },
        "description": "string"
    }
]