EasyManua.ls Logo

VMware VCLOUD API 1.0 - API

VMware VCLOUD API 1.0 - API
212 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
vCloud API Programming Guide
88 VMware, Inc.
Get a Request for User Input
InExample 534,theclientusesthevmPendingQuestionlinkreturnedinExample 533togeta
VmPendingQuestiondocumentthatincludesthequestionandthesetofchoicesallowedintheresponse.
Example 5-34. Get a Vm Pending Question
Request:
GET http://vcloud.example.com/api/v1.0/vApp/vm-5/question
Response:
200 OK
Content-type: application/vnd.vmware.vcloud.vmPendingQuestion+xml ...
<VmPendingQuestion xmlns="http://www.vmware.com/vcloud/v1" ... >
<Link type="application/vnd.vmware.vcloud.vmPendingAnswer+xml"
href="http://vcloud.example.com/api/v1.0/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?
</Question>
<QuestionId>50</QuestionId>
<Choices>
<Id>0</Id>
<Text>Append</Text>
</Choices>
<Choices>
<Id>1</Id>
<Text>Replace</Text>
</Choices>
<Choices>
<Id>2</Id>
<Text>Cancel</Text>
</Choices>
</VmPendingQuestion>
Provide Requested User Input
Example 535showsthearesponse,deliveredbyaPOSTtothequestion/answerlinkoftheVm.
Example 5-35. Answer a Vm Pending Question
Request:
POST http://vcloud.example.com/api/v1.0/vApp/vm-5/question/action/answer
Content-type: application/vnd.vmware.vcloud.vmPendingAnswer+xml
...
<VmQuestionAnswer xmlns="http://www.vmware.com/vcloud/v1">
<ChoiceId>2</ChoiceId>
<QuestionId>50</QuestionId>
</VmQuestionAnswer>
Response:
204 No Content

Table of Contents

Related product manuals