VMware Cloud Community
rlangenfeld
Contributor
Contributor

How to consolidate a VApp using the Vcloud director 5.1 API for Java

How do I consolidate a VApp using the Vcloud director 5.1 API for Java? I can't seem to find the right documentation or the right direction. Any help would be greatly appreciated!

0 Kudos
3 Replies
IamTHEvilONE
Immortal
Immortal

Consolidate is done at the VM level, not the vApp level.  At least that's true in the GUI level.

In pure REST, consolidate is a POST command like

POST /api/vApp/vm-78c3771e-465e-496d-9bfe-c6ea6a1de79e/action/consolidate

Even in this example, I think it's only going to consolidate the single VM inside the vApp (not all VMs inside the vApp).

Maybe you're looking in the wrong place?

rkamal
VMware Employee
VMware Employee

Hi,

As said above it can be done only on a VM. The VM helper class contains a method to do it. VM -> consolidate()

Note: The operation cannot be executed on a deployed VM. The operation is supported only for Virtual Center version 5.0 and later.

Regards,

Rajesh Kamal.

rlangenfeld
Contributor
Contributor

Thanks for the guidance everyone. Eventually I found the correct calls to do it

0 Kudos