appliance techpreview services status: get

Get status of a service.

Request:

HTTP request

POST https://{server}/rest/appliance/techpreview/services/status/get

Request Body Structure:

{
    "name""string",
    "timeout"1
}
<?xml version="1.0" ?>
<ns0:Get-Input xmlns:ns0="http://vmware.com/appliance/techpreview/services/status" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <name>string</name>
  <timeout>1</timeout>
</ns0:Get-Input>

Request Body Parameters:

Name Type Description
bold = required
name string Name of a service.
timeout long Timeout in seconds. Zero (0) means no timeout.

Response:

HTTP Status Code: 200

Representations:

{
    "value""down"
}
<?xml version="1.0" ?>
<ns0:Get-Result xmlns:ns0="http://vmware.com/appliance/techpreview/services/status" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <value>down</value>
</ns0:Get-Result>

Response Type:

Name Type Description
bold = required
value string Defines service status Value is one of:
down: Service is not running.
up: Service is running.Status of the service.

Errors:

HTTP Status Code Type Description
500 error Generic error