curl --request GET \
--url https://api.example.com/v1/projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/log{
"type": "TYPE_UNSPECIFIED",
"deployId": "<string>",
"schemaDumpStart": {},
"schemaDumpEnd": {
"error": "<string>"
},
"commandExecute": {
"commandIndexes": [
123
],
"statement": "<string>"
},
"commandResponse": {
"error": "<string>",
"affectedRows": "<string>",
"allAffectedRows": [
"<string>"
]
},
"databaseSyncStart": {},
"databaseSyncEnd": {
"error": "<string>"
},
"taskRunStatusUpdate": {
"status": "STATUS_UNSPECIFIED"
},
"transactionControl": {
"type": "TYPE_UNSPECIFIED",
"error": "<string>"
},
"priorBackupStart": {},
"priorBackupEnd": {
"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
},
"computeDiffStart": {},
"computeDiffEnd": {
"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{
"type": "TYPE_UNSPECIFIED",
"deployId": "<string>",
"schemaDumpStart": {},
"schemaDumpEnd": {
"error": "<string>"
},
"commandExecute": {
"commandIndexes": [
123
],
"statement": "<string>"
},
"commandResponse": {
"error": "<string>",
"affectedRows": "<string>",
"allAffectedRows": [
"<string>"
]
},
"databaseSyncStart": {},
"databaseSyncEnd": {
"error": "<string>"
},
"taskRunStatusUpdate": {
"status": "STATUS_UNSPECIFIED"
},
"transactionControl": {
"type": "TYPE_UNSPECIFIED",
"error": "<string>"
},
"priorBackupStart": {},
"priorBackupEnd": {
"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
},
"computeDiffStart": {},
"computeDiffEnd": {
"error": "<string>"
}
}The project id.
The rollout id.
The stage id.
The task id.
The taskRun id.
OK
TYPE_UNSPECIFIED, SCHEMA_DUMP_START, SCHEMA_DUMP_END, COMMAND_EXECUTE, COMMAND_RESPONSE, DATABASE_SYNC_START, DATABASE_SYNC_END, TASK_RUN_STATUS_UPDATE, TRANSACTION_CONTROL, PRIOR_BACKUP_START, PRIOR_BACKUP_END, RETRY_INFO, COMPUTE_DIFF_START, COMPUTE_DIFF_END Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?