Runs (Scans)
Create a New Scan
Execute a workflow against a target. Basic scan with flow workflow:
* One of
flow or module is required.
** One of target, targets, or target_file is required.
Response:
Multi-Target Scanning
Scan multiple targets with concurrency control:Scan from Uploaded Target File
Use an uploaded target file (from/osm/api/upload-file) for running:
-T flag: osmedeus run -m port-scan -T targets.txt
List Runs
Get a paginated list of all runs.
Response:
current_pid field shows the process ID of the currently running command. This can be used to identify and cancel the running process. When the run completes, this field is cleared (set to 0 or omitted).
Get Run Details
Get details of a specific run by ID.id or the run_uuid to fetch run details.
Cancel Run
Cancel a running workflow execution. This will terminate all running processes associated with the run.registry- Processes were tracked in memory and killed via the run registry (API-initiated runs)database_pid- Process was killed using the PID stored in the database (fallback method)
Get Run Steps
Get all step results for a specific run.Get Run Artifacts
Get all output artifacts for a specific run.report- Generated reports from the workflow’s reports sectionstate_file- State files like run-state.json, run-execution.logoutput- General output files from stepsscreenshot- Screenshots captured during the scan
json,jsonl,yaml,html,md,log,pdf,png,txt,zip,folder,unknown
Duplicate Run
Create a copy of an existing run with the same configuration.Start Run
Start a pending run that was created but not yet started.Get Job Status
Get the status of a job (a group of runs from the same request). This is useful for tracking multi-target scans.Priority Levels
Runs can be assigned a priority level to control execution order when multiple runs are queued.
Note: Priority defaults to
normal when not specified in the request