vro_run_script
Execute temporary JavaScript snippets on Orchestrator for prototyping or quick checks. Runs the script, returns output and logs, then deletes the temp action.
Instructions
Run an ad-hoc JavaScript snippet on Orchestrator — for prototyping and quick checks. Creates a temporary action, executes it with the given inputs (available as variables), returns the 'return' value + System.log output, then deletes the action. Script must be plain ES5 (Rhino): var, function(){}, no arrow functions/let/const/template literals.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | Variables passed into the script | |
| script | Yes | Body of the function. Use `return x;` to return a value. | |
| inputTypes | No | Optional explicit types, e.g. {vm: 'VC:VirtualMachine'} | |
| keepAction | No | Don't delete the temp action afterwards (to inspect it) | |
| returnType | No | Default 'Any' |