Start Service
If vSphere APIs begin with /rest (vs /api), any maps are consumed/returned instead as arrays of objects, each containing a key and a value property field.
Starts a service
Request
URLURL
https://{api_host}/rest/appliance/vmon/service/{service}/start
Parameters
Parameters
string
service
Required
identifier of the service to start
The parameter must be an identifier for the resource type: com.vmware.appliance.vmon.Service.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, obtained by first calling Create Session API
Example: b00db39f948d13ea1e59b4d6fce56389
cURL Command
curl -X POST -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/rest/appliance/vmon/service/{service}/start
Errors
404
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.
409
com.vmware.vapi.std.errors.not_allowed_in_current_state : if the operation is denied in the current state of the service. If a stop or restart operation is in progress, the start operation will not be allowed.
if start operation is issued on a service which has startup type DISABLED.
504
com.vmware.vapi.std.errors.timed_out : if any timeout occurs during the execution of the start operation. Timeout occurs when the service takes longer than StartTimeout to start.
On This Page
Service Operations
get
patch
post
post
post