v4

latestOpenAPI 3.0.1Apache 2.02026-07-312457525.9 MB
Target API

List recent executions for the target (most recent first).

get/workspaces/{workspace_domain}/targets/{id}/execs

Path parameters

workspace_domainstring required
Example:my-company

The human-readable ID of the workspace

idstring required
Example:tgt-1234567890abcdef

Target unique identifier (hash ID)

Query parameters

limitinteger
Example:50

Maximum number of executions to return (most recent first). Default: 50, max: 200.

Response

urlstring

API endpoint to GET this object

html_urlstring

Web URL to view this object in Buddy.works

execution_idstring

The ID of the execution

target_idstring

The ID of the target

target_type'FTP' | 'SSH' | 'MATCH' | 'MATCH_ID' | 'VULTR' | 'DIGITAL_OCEAN' | 'UPCLOUD' | 'GIT' | 'ARTIFACT_VERSION' | 'GKE' | 'EKS' | 'AKS' | 'DOKS' | 'K8S_CLUSTER' | 'EC2' | 'AGENT' | 'SANDBOX' | 'MYSQL' | 'PROJECT_REPO' | 'POSTGRESQL' | 'MONGO' | 'MSSQL' | 'RDS_MSSQL'

The type of the target

proxy_target_idstring

The ID of the proxy target used to tunnel the connection

commandstring

The executed command

started_atstring date-time

The date and time when the execution started

finished_atstring date-time

The date and time when the execution finished

statusstring

The status of the execution. One of: INPROGRESS, SUCCESSFUL, FAILED, CANCELLED

failure_reasonstring

Platform-level reason a FAILED execution failed (absent for an ordinary non-zero exit): TIMEOUT (hard time cap reached), SPAWN_FAILED (execution could not be started), BASTION_FAILED (SSH bastion tunnel failed)

exit_codeinteger

The exit code of the executed command

bytes_outinteger

The size of the execution output in bytes

truncatedboolean

Indicates if the execution output was truncated

error_messagestring

The error message if the execution failed

log_urlstring

The URL to fetch the execution log