VMware Cloud Community
pacharya46
Contributor
Contributor

Destroying VM of VRA (Items-->Machine)

Hi,

I want to destroy VM of a VRA showing under Items-->Machine using workflow or action script, Behavior should be similar to invoking Destroy action of VM from VRA. Also I would like know how can I invoke C a t a l o g R e s o u r c e A c t i o n  in action script. Any help with code snippet is much appreciated.

Thanks

Prakash

0 Kudos
5 Replies
daphnissov
Immortal
Immortal

Please read the documentation for the REST API and, if you wish to go the PowerShell route, check out PowervRA.

0 Kudos
pacharya46
Contributor
Contributor

Thanks for the details. However I would like use REST API in action script and not using PowerShell

0 Kudos
daphnissov
Immortal
Immortal

0 Kudos
pacharya46
Contributor
Contributor

I could get some idea from Change the Deployment owner in vRA 7.x using vRO  However failed with error code of 42000 Infrastructure service provider error: An error occurred while processing this request.]  Any help is appreciaated

0 Kudos
qc4vmware
Virtuoso
Virtuoso

You want to navigate to Library/vRealize Automation/Requests/Request  A Resource action.  This is analogous to selecting an action on an item such as a Destroy.

0 Kudos