Hi All,
Is there a way to destroy/dispose off an existing VM (which was deployed through vCAC), using the vCAC API - REST or another way ?
My client wants to delete a given VM using an API call (called from external source), passing through a VM entity ID and other required parameters.
Thanks!
Hi, Unfortunately at 5.2 GA there isn't a documented way of doing this as the API is not fully exposed.
I believe 6.0 might be able to provide that kind of capability.
Hi, I see two following options for deleting a provisioned VM:
1. you delete it "manually" via a combination of vCAC REST API (with the MgmtContext) and PowerCLI for vCD (or its REST API).
2. you invoke the "vCloudDisposeVM" workflow via the vCAC REST API (again easiest with the MgmtContext or via the "InvokeRepositoryWorkflow" activity).