Stops a service
identifier of the service to stop The parameter must be an identifier for the resource type: com.vmware.vcenter.services.Service.
Required session ID, acquired from Create Session API under CIS product
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 operation is in progress, issuing another stop operation will lead to this error.
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.
PowerCLI Client SDK Example