5.5

Table Of Contents
Procedure
1 Find the recomposeVApp link in the target vApp.
The XML representation of a vApp contains a recomposeVapp link, which has the following form:
<Link
rel="recompose"
type="application/vnd.vmware.vcloud.recomposeVAppParams+xml"
href="https://vcloud.example.com/api/vdc/5/action/recomposeVApp" />
2 Create a RecomposeVappParams element that specifies the details of the recomposition.
See “Example: Recompose a vApp,” on page 104.
3 POST the RecomposeVappParams element to the recomposeVapp link of the target vApp.
Example: Recompose a vApp
This example uses the recomposeVApp operation to modify this vApp, which contains three virtual machines.
Only a few of the elements in the vApp appear here.
<VApp
name="Example Corp’s CRM Appliance"
type="application/vnd.vmware.vcloud.vApp+xml"
status="8"
href="https://vcloud.example.com/api/vApp/vapp-33" ...>
<Link
rel="up"
type="application/vnd.vmware.vcloud.vdc+xml"
href="https://vcloud.example.com/api/vdc/5"/>
...
<Children>
<Vm
status="8"
name="CRM-DB"
href="https://vcloud.example.com/api/vApp/vm-7" ...>
...
</Vm>
<Vm
status="8"
name="CRM-CRM"
href="https://vcloud.example.com/api/vApp/vm-44" ...>
...
</Vm>
<Vm
status="8"
name="CRM-HTTP"
href="https://vcloud.example.com/api/vApp/vm-45" ...>
...
</Vm>
</Children>
...
</VApp>
The request removes one of the virtual machines from the vApp and creates a StartupSection that specifies
a startup order for the remaining virtual machines.
vCloud API Programming Guide
104 VMware, Inc.