Create Guest Processes
Starts a program in the guest operating system. A process started this way can have its status queried with Processes.list or Processes.get. When the process completes, its exit code and end time will be available for 5 minutes after completion.
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.
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"
},
"spec": {
"path": "string"
}
}
The guest authentication data. See Credentials. The program will be run as the user associated with this data.
Authentication
Response
Response BodyResponse Body
The process id of the program started.
Errors
com.vmware.vapi.std.errors.invalid_argument : if the Processes.CreateSpec.start-minimized field is set and the guest is not a Windows operating system. if the program path is not a valid path. The value of com.vmware.vapi.std.errors.Error#data will contain all the fields defined in the FileErrorDetails providing additional information about the failure. if the working directory is not a valid directory. The value of com.vmware.vapi.std.errors.Error#data will contain all the fields defined in the FileErrorDetails providing additional information about the failure. | 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 the path field of spec cannot be accessed. if the path field of spec cannot be run because credentials will not allow the operation.
com.vmware.vapi.std.errors.not_found : if the virtual machine vm is not found. if the program path does not exist. The value of com.vmware.vapi.std.errors.Error#data will contain all the fields defined in the FileErrorDetails providing additional information about the failure.
com.vmware.vapi.std.errors.resource_busy : if the virtual machine is busy. | com.vmware.vapi.std.errors.unable_to_allocate_resource : if the program fails to start.
‘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: create