Update Service Deprecated
Updates the properties of a service.
Request
URLURL
Path Parameters
Path Parameters
identifier of the service whose properties are being updated. The parameter must be an identifier for the resource type: com.vmware.vcenter.services.Service.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
This is a request body class for an operation.
{
"spec": {
"startup_type": "MANUAL"
}
}
Authentication
Errors
Errors
com.vmware.vapi.std.errors.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. if a request to set the Service.UpdateSpec.startup-type field of spec to DISABLED comes in for a service that is not in STOPPED state.
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
cURL Command
Vendor Extensions
x-vmw-doc-new-method: patch
x-vmw-doc-new-path: /api/vcenter/services/{service}
x-vmw-doc-operation: update