Skip to content

Instantly share code, notes, and snippets.

@YagmurOzden
Created July 29, 2022 09:25
Show Gist options
  • Save YagmurOzden/0a80f49483424e6f419cb3b7b37dc5fc to your computer and use it in GitHub Desktop.
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
// 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