VMware Cloud Community
Enter123
Enthusiast
Enthusiast

Project change for all Deployments or user change for all Deployments in a Project

Hi,

has anyone found a nice way to move all Deployments from one Project to another, besides clicking on each individual Deployment? Any code to share?

The same for changing owner for all Deployements in a Project. Is there a way to trigger built-in workflow for change owner and change deployment via API? 

I couldnt find it, but maybe I should be looking under Deployments. my vRA is 8.16.

0 Kudos
1 Reply
xian_
Expert
Expert

POST https://vra8.cloud.corp/deployment/api/deployments/f3749974-f72a-45aa-b136-9b7671e29453/requests

{"actionId":"Deployment.ChangeProject","inputs":{"targetProjectId":"8e82d5ef-0cfe-4139-b7e2-caee10446ff1"}}

or

{"actionId":"Deployment.ChangeOwner","inputs":{"Owner Type":"USER","New Owner":"user2"}}

Workflow to use:

/Library/vRealize Automation 8.x and Cloud Services/Sample Rest Operations/Post operation