Quantcast
Channel: VMware Communities : Blog List - All Communities
Viewing all articles
Browse latest Browse all 3135

vCO workflow to change the owner of a vCAC:VirtualMachine

$
0
0

Disclaimer : This workflow has been found to be working with vCAC version Build 6.2.2-2740150. There is no guarantee that it shall work with the other versions as well.

 

The owner of a vCAC:VirtualMachine can be changed using the out of box workflow "Request a resource action". The attached "Change vCAC VirtualMachine Owner.workflow" is a modification of this workflow.

 

The attached workflow has an attribute vCACCAFEHost of type vCACCAFE:VCACHost which needs to be set before the workflow is being run. The workflow also takes two other inputs : vmName and the userToChangeTo. Both these inputs are of type string. So the presentation appears as :

ppt.PNG

Following is the logic of finding the vCAC:VirtualMachine using vmName. This can be avoided if we the input vmName (type string), is replaced with vcacVM (type vCAC:VirtualMachine).

vmName.PNG

 

Using the vmName we get the corresponding IaaS Host, the corresponding catalog resource. The vCAC:VirtualMachine should have the "Reconfigure" Action

entitled to it. In earlier versions instead of "Reconfigure", there is an "Edit" action.image2.PNG

 

The following code snippet is the construction of the request. This is the same which is being followed in the workflow "Request a Resource Action".

request.PNG

This is just an example to show how vCO workflows can accomplish the tasks that can be done using requests in vCAC.


Viewing all articles
Browse latest Browse all 3135

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>