Source
d_args = args.arguments ? JSON.parse(args.arguments) : {}; return executeCommand(args.commandName, d_args);
README
Runs a D2 built-in command on a D2 agent.
Script Data
| Name | Description |
|---|---|
| Script Type | javascript |
| Tags | endpoint, agent |
Inputs
| Argument Name | Description |
|---|---|
| arguments | The arguments to pass to the D2script. This is done in a Dictionary format “{arg1:val1,arg2:val2}”. |
| commandName | The D2 command to run. |
Outputs
There are no outputs for this script.