Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

vro to call vra to scale in a deployment

$
0
0

I am using code for all day 2 operations on a vm. Destroy/Power on etc.  However, the scale-in function does not seem to work for me.

 

I i get the operations for the deployment like this .. but it does not execute a scale in. any ideas ?

 

var form = vCACCAFERequestsHelper.getRequestFormForResourceAction(operation);

 

System.log("Expected inputs:");

var fields = vCACCAFERequestsHelper.getFormKeys(form);

System.log(fields.length);

for each (var field in fields) {

    System.log( " - " + field);

}

 

 

System.log("Creating scale in request...");

var request = vCACCAFERequestsHelper.requestResourceAction(operation, form);

System.log("Scale in request submitted.");

System.log("request.stateName: " + request.stateName);

System.log("request.executionStatus: " + request.executionStatus.value());


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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