Get Guest Customization
Returns the status of the customization operation that has been applied for the virtual machine in vm. if you do not have all of the privileges described as follows: - The resource VirtualMachine referenced by the parameter vm requires System.View.
Request
URLURL
Path Parameters
Path Parameters
The unique identifier of the virtual machine that needs to be queried. 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"
Authentication
Response
Response BodyResponse Body
The status of the customization operation applied for the virtual machine.
{
"end_time": "string",
"error": "string",
"start_time": "string",
"status": "IDLE"
}
The Customization.Info.Status enumerated type defines the status values that can be reported for the customization operation.
IDLE : No customization spec is applied to the guest operating system.
PENDING : The customization process has not yet started inside the guest operating system.
RUNNING : The customization process is currently running inside the guest operating system.
SUCCEEDED : The customization process has completed successfully inside the guest operating system.
FAILED : The customizatio process has failed inside the guest operating system.
Possible values are: IDLE , PENDING , RUNNING , SUCCEEDED , FAILED
Time when the customization process has completed inside the guest operating system. This field will be unset if the status is not SUCCEEDED or FAILED.
Description of the error if the Customization.Info.status of customization operation is FAILED. This field will be unset if the status is not FAILED or there is no information available for the error.
Time when the customization process has started inside the guest operating system. This field will be unset if the status is PENDING.
Errors
com.vmware.vapi.std.errors.unauthorized : if the user doesn’t have the required privileges.
com.vmware.vapi.std.errors.service_unavailable : if the system is unable to communicate with a service to complete the request.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-vmw-doc-operation: get