Executing Scripts
Last updated
This guide covers running deployment scripts from the Rumi Admin web interface.
Rumi Admin provides a visual interface for executing deployment scripts defined in a system's XAR. Scripts are executed through the connected Rumi Agent's REST API.
When you select a system in the Admin UI, the available scripts are retrieved from the Agent via GET /system/scripts?systemName=<systemName>. Each script includes:
Script name.
Parameter definitions (names, types, descriptions).
Script description.
To execute a script:
Select the target system.
Select the target agent (if connected to multiple agents).
Choose the script to execute.
Fill in any required parameters.
Submit the execution request.
The Admin UI invokes the Agent's POST /invoke/script endpoint with the script details and parameters.
After submitting a script execution:
The UI displays the execution status (Pending, Running, Success, or Aborted).
Execution output is displayed as the script progresses.
The execution UUID is shown for tracking purposes.
To cancel a running script:
Click the cancel action in the execution status view.
The Admin UI sends a POST /invoke/cancel?uuid=<executionUUID> request to the Agent.
Script execution is serialized by the Agent — only one script or command runs at a time. Subsequent submissions are queued until the current execution completes.
In addition to deployment scripts, the Admin UI supports invoking application commands:
Select a system and application.
Choose from the available application commands (discovered dynamically from the deployed application).
Provide any required parameters.
Submit the command invocation.
Application commands are executed via the Agent's POST /app/command/invoke endpoint.
Last updated