When I change my post from:
instantiate=`curl -s -k --header "$authHeader" -H "Content-Type:application/vnd.vmware.vcloud.recomposeVAppParams+xml" -X POST https://xxx.xxx.xxx/api/vdc/80f0d15e-e9d9-4925-adb1-aed94df85482/action/recomposeVApp -d @deploy_request`
to:
instantiate=`curl -s -k --header "$authHeader" -H "Content-Type:application/vnd.vmware.vcloud.recomposeVAppParams+xml" -X POST https://xxx.xxx.xxx/api/vApp/vapp-04c65a1e-bba6-4b30-b376-4bab4bd613b7/action/recomposeVApp -d @deploy_request
I still get the same error.
When I display the VApp(vapp-04c65a1e-bba6-4b30-b376-4bab4bd613b7) in order to get the recompose link I can't find the recompose link:
<?xml version="1.0" encoding="UTF-8"?><VApp xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:ovfenv="http://schemas.dmtf.org/ovf/environment/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" deployed="true" status="10" name="Demo" id="urn:vcloud:vapp:04c65a1e-bba6-4b30-b376-4bab4bd613b7" type="application/vnd.vmware.vcloud.vApp+xml" href="https://xxx.xxx.xxx/api/vApp/vapp-04c65a1e-bba6-4b30-b376-4bab4bd613b7" xsi:schemaLocation="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingDatahttp://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_VirtualSystemSettingData.xsdhttp://schemas.dmtf.org/ovf/envelope/1http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsdhttp://schemas.dmtf.org/ovf/environment/1http://schemas.dmtf.org/ovf/envelope/1/dsp8027_1.1.0.xsdhttp://www.vmware.com/vcloud/v1.5http://xxx.xxx.xxx.xxx/api/v1.5/schema/master.xsdhttp://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingDatahttp://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_ResourceAllocationSettingData.xsd"> <Link rel="power:powerOn" href="https://xxx.xxx.xxx.xxx/api/vApp/vapp-04c65a1e-bba6-4b30-b376-4bab4bd613b7/power/action/powerOn"/> <Link rel="power:powerOff" href="https://xxx.xxx.xxx.xxx/api/vApp/vapp-04c65a1e-bba6-4b30-b376-4bab4bd613b7/power/action/powerOff"/> <Link rel="power:reboot" href="https://xxx.xxx.xxx.xxx/api/vApp/vapp-04c65a1e-bba6-4b30-b376-4bab4bd613b7/power/action/reboot"/> <Link rel="power:reset" href="https://xxx.xxx.xxx.xxx/api/vApp/vapp-04c65a1e-bba6-4b30-b376-4bab4bd613b7/power/action/reset"/> <Link rel="power:shutdown" href="https://xxx.xxx.xxx.xxx/api/vApp/vapp-04c65a1e-bba6-4b30-b376-4bab4bd613b7/power/action/shutdown"/> <Link rel="power:suspend" href="https://xxx.xxx.xxx.xxx/api/vApp/vapp-04c65a1e-bba6-4b30-b376-4bab4bd613b7/power/action/suspend"/> <Link rel="deploy" type="application/vnd.vmware.vcloud.deployVAppParams+xml" href="https://xxx.xxx.xxx.xxx/api/vApp/vapp-04c65a1e-bba6-4b30-b376-4bab4bd613b7/action/deploy"/> <Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="https://xxx.xxx.xxx.xxx/api/vApp/vapp-04c65a1e-bba6-4b30-b376-4bab4bd613b7/action/undeploy"/> <Link rel="down" type="application/vnd.vmware.vcloud.vAppNetwork+xml" name="Net-ext-routed" href="https://xxx.xxx.xxx.xxx/api/network/716e2563-a964-4d3d-a257-66e92c8cc222"/> <Link rel="down" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://xxx.xxx.xxx.xxx/api/vApp/vapp-04c65a1e-bba6-4b30-b376-4bab4bd613b7/controlAccess/"/> <Link rel="controlAccess" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://xxx.xxx.xxx.xxx/api/vApp/vapp-04c65a1e-bba6-4b30-b376-4bab4bd613b7/action/controlAccess"/> <Link rel="up" type="application/vnd.vmware.vcloud.vdc+xml" href="https://xxx.xxx.xxx.xxx/api/vdc/80f0d15e-e9d9-4925-adb1-aed94df85482"/> <Link rel="edit" type="application/vnd.vmware.vcloud.vApp+xml" href="https:///api/vApp/vapp-04c65a1e-bba6-4b30-b376-4bab4bd613b7"/> <Link rel="down" type="application/vnd.vmware.vcloud.owner+xml" href="https://xxx.xxx.xxx.xxx/api/vApp/vapp-04c65a1e-bba6-4b30-b376-4bab4bd613b7/owner"/> <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="https://xxx.xxx.xxx.xxx/api/vApp/vapp-04c65a1e-bba6-4b30-b376-4bab4bd613b7/metadata"/> <Description/>
Why can't I find a recompose link in the VApp in which I would like to add a VM?