Query runtime task events

Query the events recorded by a runtime task.

HTTP
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/agent-runtime-tasks/{task_id}/events

Before you call this API

Configure the regional API endpoint and authentication, and select the target workspace.

Set the operation-specific values used in the request: $TASK_ID.

Request

Shell
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/agent-runtime-tasks/$TASK_ID/events" -H "X-API-Key: $CLOUDSIGMA_API_KEY" -H "X-Workspace-ID: $WORKSPACE_ID"

Successful response

Returns 200 and the task event on success.

JSON
{"code":0,"data":{"items":[]}}

The response fields are as follows.

Field

Type

Description

data.items

array

Task events.

Error response

JSON
{"code":5,"message":"task not found"}
Last updated on