VMware {code} Community
JaydenLD
Contributor
Contributor

VCloud Rest API Obtain Thumbnail error

I'm trying to make a vcloud director restapi call to obtain the thumbnail (https://[vcd ip]/api/vApp/vm-[vmid]/screen) of a VM but no matter what I get an error.

If I leave the accept header at application/*+xml;version=30.0, I get the error that the request accept header is invalid, if I change it to image/gif or image/image/jpeg I get an error that No message body writer has been found for class javax.xml.bind.JAXBElement, ContentType: application/vnd.vmware.vcloud.error+null;version=32.0

I'm not quite sure what I am missing

Reply
0 Kudos
0 Replies