Delete Guest Processes
Terminates a process in the guest OS. On Posix guests, the process is sent a SIGTERM signal. If that doesn’t terminate the process, a SIGKILL signal is sent. A process may still be running if it’s stuck.
if you do not have all of the privileges described as follows: - The resource VirtualMachine referenced by the parameter vm requires VirtualMachine.GuestOperations.Execute.
Request
URLURL
Path Parameters
Path Parameters
Virtual machine to perform the operation on. The parameter must be an identifier for the resource type: VirtualMachine.
Process ID of the process to be terminated
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.
{
"credentials": {
"interactive_session": false,
"type": "USERNAME_PASSWORD"
}
}
Authentication
Errors
Errors
com.vmware.vapi.std.errors.not_allowed_in_current_state : if the virtual machine vm is not running. | com.vmware.vapi.std.errors.unsupported : if the operation is not supported by the VMware tools in the guest OS. if the operation is disabled by the VMware tools in the guest OS.
com.vmware.vapi.std.errors.unauthorized : if credentials does not have permission to terminate the process.
com.vmware.vapi.std.errors.not_found : if the virtual machine vm is not found. if the pid is not found. The value of com.vmware.vapi.std.errors.Error#data will contain all the fields defined in the Processes.ProcessErrorDetails providing additional information about the failure.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
PowerCLI Client SDK All Parameters Example
cURL Command
Vendor Extensions
x-vmw-doc-operation: delete