Retrieve all Task Runs

View as Markdown

List Task Runs on a Site. Filters compose with AND; results are paginated and the X-Pagination response header reports the total count over the post-filter set.

Org must have an Infrastructure Provider entity. User must have authorization role with PROVIDER_ADMIN suffix.

Authentication

AuthorizationBearer
``` export JWT_BEARER_TOKEN="<jwt-bearer-token>" # Example org name: "acme-inc export ORG_NAME=<org-name> # Use the JWT bearer token in your API request auth header: curl -v -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $JWT_BEARER_TOKEN" https://nico-rest-api.nico.svc.cluster.local/v2/org/$ORG_NAME/nico/user/current ```

Path parameters

orgstringRequired
Name of the Org

Query parameters

siteIdstringRequiredformat: "uuid"

ID of the Site that owns the Task Runs (Task Runs are site-scoped).

statusenumOptional
Filter by Task Run status.
operationTypeenumOptional
Filter by operation type.
Allowed values:
pageNumberintegerOptional>=1

Page number of results returned (1-indexed).

pageSizeintegerOptional>=1
Number of results per page.

Response headers

X-Paginationstring
Pagination result in JSON format

Response

OK
idstringformat: "uuid"
Unique identifier of the Task Run.
namestring

Human-readable name of the Task Run.

operationTypeenum

Type of operation this Task Run executes. Currently always FirmwareControl.

statusenum
Current lifecycle state of the Task Run.
statusReasonenum

Why the Task Run is paused or terminal (e.g. PhaseGate, SafetyGate). None when there is no qualifying reason.

totalPhasesinteger
Total number of phases the selected targets were divided into.
createddatetime
Timestamp when the Task Run was created.
updateddatetime
Timestamp when the Task Run was last updated.
descriptionstring

Optional free-form description.

operationCodestring

Operation code within the operation type (e.g. upgrade).

statusMessagestring

Optional human-readable detail for the current status.

starteddatetime or null
Timestamp when the Task Run started execution. Null before it starts.
finisheddatetime or null
Timestamp when the Task Run reached a terminal state. Null while active.
statsobject

Derived per-phase outcome stats. Present only on the single-Task-Run GET when includeStats=true; omitted otherwise.

Errors

400
Bad Request Error
403
Forbidden Error