Skip to main content
GET
/
v1
/
projects
/
{project}
/
rollouts
/
{rollout}
/
stages
/
{stage}
/
tasks
/
{task}
/
taskRuns
/
{taskRun}
/
log
cURL
curl --request GET \
  --url https://api.example.com/v1/projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/log
{
  "name": "<string>",
  "entries": [
    {
      "type": "TYPE_UNSPECIFIED",
      "logTime": "2023-11-07T05:31:56Z",
      "deployId": "<string>",
      "schemaDump": {
        "startTime": "2023-11-07T05:31:56Z",
        "endTime": "2023-11-07T05:31:56Z",
        "error": "<string>"
      },
      "commandExecute": {
        "logTime": "2023-11-07T05:31:56Z",
        "commandIndexes": [
          123
        ],
        "statement": "<string>",
        "response": {
          "logTime": "2023-11-07T05:31:56Z",
          "error": "<string>",
          "affectedRows": "<string>",
          "allAffectedRows": [
            "<string>"
          ]
        }
      },
      "databaseSync": {
        "startTime": "2023-11-07T05:31:56Z",
        "endTime": "2023-11-07T05:31:56Z",
        "error": "<string>"
      },
      "taskRunStatusUpdate": {
        "status": "STATUS_UNSPECIFIED"
      },
      "transactionControl": {
        "type": "TYPE_UNSPECIFIED",
        "error": "<string>"
      },
      "priorBackup": {
        "startTime": "2023-11-07T05:31:56Z",
        "endTime": "2023-11-07T05:31:56Z",
        "priorBackupDetail": {
          "items": [
            {
              "sourceTable": {
                "database": "<string>",
                "schema": "<string>",
                "table": "<string>"
              },
              "targetTable": {
                "database": "<string>",
                "schema": "<string>",
                "table": "<string>"
              },
              "startPosition": {
                "line": 123,
                "column": 123
              },
              "endPosition": {
                "line": 123,
                "column": 123
              }
            }
          ]
        },
        "error": "<string>"
      },
      "retryInfo": {
        "error": "<string>",
        "retryCount": 123,
        "maximumRetries": 123
      },
      "computeDiff": {
        "startTime": "2023-11-07T05:31:56Z",
        "endTime": "2023-11-07T05:31:56Z",
        "error": "<string>"
      }
    }
  ]
}

Path Parameters

project
string
required

The project id.

rollout
string
required

The rollout id.

stage
string
required

The stage id.

task
string
required

The task id.

taskRun
string
required

The taskRun id.

Response

OK

name
string

Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/log

entries
object[]

The log entries for this task run.