appliance vmon service: update

Updates the properties of a service.

Request:

HTTP request

PATCH https://{server}/rest/appliance/vmon/service/{service}

Path Parameters

Name Type Description
Required
service string identifier of the service whose properties are being updated.

Request Body Structure:

{
    "spec"{
        "startup_type""MANUAL"
    }
}
<?xml version="1.0" ?>
<ns0:Update-Input xmlns:ns0="http://vmware.com/appliance/vmon/service" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <spec>
    <startup_type>MANUAL</startup_type>
  </spec>
</ns0:Update-Input>

Request Body Parameters:

Name Type Description
bold = required
spec update_spec Service Update specification.
spec.startup_type string Startup Type

Optional. If unspecified, leaves value unchanged.

Response:

HTTP Status Code: 200

None

Errors:

HTTP Status Code Type Description
404 not_found if the service associated with service does not exist.
500 error if any other error occurs during the execution of the operation.
400 not_allowed_in_current_state if the operation is denied in the current state of the service. If a start, stop or restart operation is in progress, update operation will fail with this error.