A request for a virtual machine to change state (power on, suspend, reconfigure, and so on) might cause the virtual machine to ask for additional user input before it can complete.

A vApp that contains a Vm awaiting a user response has status="5", and includes a link that you can GET to discover what input is needed.


Find the question link in the target vApp.

This link has the following form:

   href="http://vcloud.example.com/api/vApp/vm-5/question" />

Make a GET request to the URL in that link's href value.

The response is a VmPendingQuestion response that includes the question and the set of possible answers.


Create a VmQuestionAnswer element that supplies the answer.

See Example: Provide User Input Requested by a Virtual Machine.


POST the element to the question/action/answer link included in the VmPendingQuestion response.

In this series of examples, a virtual machine that was recently reconfigured in vCenter to add a new parallel port device and then powered on is requesting user input about where to send output from the device. The powerOn request cannot complete until this input is supplied.

The first step is to use the vmPendingQuestion link, shown in Step 1, to get a VmPendingQuestion response that includes the question and the set of possible answers.


GET https://vcloud.example.com/api/vApp/vm-5/question


200 OK
Content-type: application/vnd.vmware.vcloud.vmPendingQuestion+xml
      href="http://vcloud.example.com/api/vApp/vm-5/question/action/answer" />
   <Question>msg.parallel.file.open:Parallel port output file
      "/vmfs/volumes/d6162a46-58e50cab/linuxftp/vm-mgi.log" already
      exists. Do you want to replace it with any newly created content,
      or append new content to the end of the file?

To supply the answer, POST a VmQuestionAnswer element to the question/action/answer link of the Vm.


POST http://vcloud.example.com/api/vApp/vm-5/question/action/answer
Content-type: application/vnd.vmware.vcloud.vmPendingAnswer+xml
<?xml version="1.0" encoding="UTF-8"?>