Eject Media From A Virtual Machine; Get A Screen Thumbnail For A Virtual Machine - VMware VCLOUD API 1.0 - API Programming Manual

Table of Contents

Advertisement

vCloud API Programming Guide
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ...>
...
</Task>

Eject Media from a Virtual Machine

An ejectMedia request reverses a specific insertMedia request. The request must specify the ejectMedia 
URL of a Vm that was previously the target of an insertMedia request. The Media element in the request body 
must specify the href of the media image that was inserted by that request.
Example 5-30. Eject Media from a Virtual Machine
Request:
POST http://vcloud.example.com/api/v1.0/vapp/vm-5/media/action/ejectMedia
Content-Type: application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml
<MediaInsertOrEjectParams xmlns="http://www.vmware.com/vcloud/v1">
<Media href="http://vcloud.example.com/api/v1.0/media/3"/>
</MediaInsertOrEjectParams>
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ...>
...
</Task>

Get a Screen Thumbnail for a Virtual Machine

A screen request returns a thumbnail view of a virtual machine's console encoded in png format.
Example 5-31. Get a Screen Thumbnail for a Virtual Machine
Request:
GET http://vcloud.example.com/api/v1.0/vApp/vm-4/screen
Response:
200 OK
Content-type image/png
...
...serialized contents of thumbnail in png format...
EOF
86
VMware, Inc.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VCLOUD API 1.0 - API and is the answer not in the manual?

Questions and answers

Table of Contents