Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

Request resource action- reconfigure

$
0
0

Hey guys,

 

I'm trying to reconfigure an existing virtual machine in vRA.

I'm following the same method for provisioning a catalog item, unfortunately nothing happens when I sent the request bellow.

I can the in the requests the reconfigure request with status successful with some of the parameters I specified, but then when I go to the virtual machine itself I see that nothing changed.


var vmResourceActionRequest = vCACCAFERequestsHelper.getRequestForResourceAction(operation);

var vmResourceRequestData = vCACCAFERequestsHelper.getResourceActionRequestData(vmResourceActionRequest);

var json = JSON.parse(vmResourceRequestData);

 

json.cpu = "3";

json.disks[1].data.size = "57";

vCACCAFERequestsHelper.setResourceActionRequestData(vmResourceActionRequest , JSON.stringify(json));

 

System.log(JSON.stringify(json));

 

vCACCAFERequestsHelper.requestResourceActionWithRequest(operation, vmResourceActionRequest);

 

 

Any idea?


Viewing all articles
Browse latest Browse all 9859

Trending Articles



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