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>"
}
}
]
}Retrieves execution logs for a task run. Permissions required: bb.taskRuns.list
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>"
}
}
]
}The project id.
The rollout id.
The stage id.
The task id.
The taskRun id.
Was this page helpful?