This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// vRA 8.7.0 | |
// input type: restHost [REST:RESTHost] | |
// return type: Any | |
function createRestOperation(method, urlTemplate) { | |
var op = new RESTOperation(urlTemplate); | |
op.name = urlTemplate; | |
op.method = method; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// vRA 8.8.0 | |
//It creates 2 nic one of them with static connection and the other nic is eth1 and it uses DHCP | |
//so therefore i am connecting the machine after this action has deployed and change its value inside. | |
//action input type: VM vc:virtual machine | |
guestNetInfoDNSServerList Array string | |
guestNetInfoDNSSuffixList Array string | |
guestNetInfoDomain string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// vRA 8.5.0 | |
//action input type: vm : VC:VirtualMachine | |
//action return type: void | |
var poweroffTask = vm.powerOffVM_Task(); | |
System.getModule("com.vmware.library.vc.basic").vim3WaitTaskEnd( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// vRA 8.5.0 | |
//action input type: vm : VC:VirtualMachine | |
//action return type: void | |
var poweronTask = vm.powerOnVM_Task(); | |
System.getModule("com.vmware.library.vc.basic").vim3WaitTaskEnd( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// vRA 8.4 | |
//workflow return type: (VC:HostSystem), | |
// input type: cluster(string, Enter the cluster entry so that the host can be selected) | |
// this code below gets all clusters | |
var clusters =VcPlugin.getAllClusterComputeResources(); | |
var hosts = VcPlugin.getAllHostSystems(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// vRA 8.4 | |
//workflow input type: time (number), | |
// date (string) | |
//workflow return type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// vRA 8.4 | |
//action input type: none | |
//action return type: Properties | |
var deployment = System.getModule("<your-path-name>").getConfigurationElementWhoseTypeIsProperties("Catalog Item Credentials","deployment"); | |
var catalogItems =System.getModule("<your-path-name>").getConfigurationElementWhoseTypeIsProperties("Catalog Item Credentials","catalogItems"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// vRA 8.4 | |
//action input type: vm (VC:VirtualMachine) | |
//action return type: VC:ClusterComputeResource | |
var parent = vm.runtime.host; | |
while (parent !== null && ! (parent instanceof VcClusterComputeResource)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// vRA 8.4 | |
//workflow input type: VM (VC:VirtualMachine) | |
// snapshotname (string) | |
// removeAllSnapshotsOfVM | |
//workflow output type: | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator workflow sample | |
// vRA 8.4 | |
//workflow input type: guestOSName (ARRAY/VC:VirtualMachineGuestOSIdentifier), | |
// guestOSDescription (ARRAY/string), | |
// OS (string), | |
// vmName (string) | |
//workflow return type: guestOSName (ARRAY/VC:VirtualMachineGuestOSIdentifier) |