VMware Cloud Community
atuli
Contributor
Contributor

Destroy a vCAC VM through API

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!

0 Kudos
2 Replies
admin
Immortal
Immortal

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.

0 Kudos
d-fens
Enthusiast
Enthusiast

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).

Ronald Rink d-fens GmbH
0 Kudos