Hi,
I am getting an error while trying to undeploy a vAPP after powering it off. The exact error I am getting is:
415-Unsupported Media Type
The details of the error message are:
<Error xmlns="http://www.vmware.com/vcloud/v1.5" minorErrorCode="UNSUPPORTED_MEDIA_TYPE" message="Unsupported Media Type" majorErrorCode="415" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5http://172.16.95.105/api/v1.5/schema/master.xsd"></Error>
To provide you some information about the vAPP, it is a simple vAPP with two VMs inside it. I am trying to delete the vAPP through REST API calls. According to the 1.5 documentation, in order to delete a vAPP, the operations involved are as follows:
Delete the vApp
To delete the vApp, power it off, undeploy it, and then use an HTTP DELETE request to delete the vApp
object.
So what I did is to do a power off operation on the vAPP to start with. This left the vAPP in a "Partially Running" state, which I understand is the expected state of the vAPP after power off operation.
Then now I am trying to do the "undeploy" operation as the next step, when I am encountering this error.
I would appreciate any insights into this issue and ideas on how I could get this resolved. I want to perform all these operations only though REST API calls and not by logging on to my VCD portal. The VCD version I am using is 1.5.
Thanks,
Raj