Get Guest Processes
Returns the status of a process running in the guest operating system, including those started by Processes.create that may have recently completed.
if you do not have all of the privileges described as follows: - The resource VirtualMachine referenced by the parameter vm requires VirtualMachine.GuestOperations.Query.
Request
URLURL
Path Parameters
Path Parameters
Virtual machine to perform the operation on. The parameter must be an identifier for the resource type: VirtualMachine.
Specifies the process to query.
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
Response
Response BodyResponse Body
The #Info for the process with id pid.
{
"command": "string",
"exit_code": 0,
"finished": "string",
"name": "string",
"owner": "string",
"started": "string"
}
The full command line of the process.
The process name.
The process owner.
The start time of the process.
If the process was started using Processes.create then the process exit code will be available if queried within 5 minutes after it completes. Set if the process was started with Processes.create and has recently exited.
If the process was started using Processes.create then the process completion time will be available if queried within 5 minutes after it completes. Set if the process was started with Processes.create and has recently exited.
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.not_found : if the virtual machine vm is not found. if the process 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: get