Retrieve all Task Run Targets
List a Task Run’s materialized per-Rack execution targets. Each target
references the Task the Task Run submitted for that Rack via taskId
(null until the target is submitted); drill into execution detail via
GET /task/{taskId}.
Filters compose with AND. Results are paginated; the X-Pagination
response header reports the total count over the post-filter set. Results
are ordered by phase index, then the unique sequence index.
Task Runs are site-scoped; siteId must be the Site that owns the
Task Run. Org must have an Infrastructure Provider entity. User must have
authorization role with PROVIDER_ADMIN suffix.
Authentication
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
Query parameters
Page number of results returned (1-indexed).
Response headers
Response
Zero-based index of the phase this target belongs to.
ID of the Task this target submitted. Null until the target is
submitted; drill into execution detail via GET /task/{taskId}.
Optional human-readable detail for the current target status.