Created
July 29, 2022 09:25
-
-
Save YagmurOzden/0a80f49483424e6f419cb3b7b37dc5fc to your computer and use it in GitHub Desktop.
Powering on the VM with vim3WaitTaskEnd. VMware vRealize Orchestrator vRO 8.5.0, JavaScprit
This file contains hidden or 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( | |
poweronTask, | |
true, | |
1 | |
); | |
// vim3WaitTaskEnd(task,progress,pollrate) is a vmware library it has 3 parameters task, progress, pollrate | |
// Wait for a VC Task to end. | |
// When task ended, return the task result if any. | |
//task: Task to wait for | |
//progress: Log progess while waiting for the task | |
//pollRate: Polling rate for the task state [seconds] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment