Get Services
Returns the state of a service.
Request
URLURL
Path Parameters
Path Parameters
identifier of the service whose state is being queried. The parameter must be an identifier for the resource type: com.vmware.appliance.services.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Authentication
Response
Response BodyResponse Body
Service Info structure.
{
"description": "string",
"state": "STARTING"
}
Service description
The Services.State enumerated type defines valid Run State for services.
STARTING : Service Run State is Starting, it is still not functional
STOPPING : Service Run State is Stopping, it is not functional
STARTED : Service Run State is Started, it is fully functional
STOPPED : Service Run State is Stopped
Possible values are: STARTING , STOPPING , STARTED , STOPPED
Errors
com.vmware.vapi.std.errors.not_found : if the service associated with service does not exist.
com.vmware.vapi.std.errors.error : if any other error occurs during the execution of the operation.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-vmw-doc-deprecated-method: get
x-vmw-doc-deprecated-path: /rest/appliance/services/{service}
x-vmw-doc-operation: get