GetPipelineJobRunLog - Query job run logs
Query the execution logs of a pipeline job run.
|
Applicable editions |
Central edition, Region edition |
Endpoints and authorization information
-
Get the endpoint and use it to replace {domain} in the request syntax.
-
Obtain the organizationId. Required only for the Central edition. Go to the Basic Information page in the Organization Management console to get the organization ID.
|
Product |
Resource |
Required permission |
|
Pipeline |
Pipeline run job |
Read-only |
Request syntax
Central edition
GET https://{domain}/oapi/v1/flow/organizations/{organizationId}/pipelines/{pipelineId}/runs/{pipelineRunId}/job/{jobId}/log
Region edition
GET https://{domain}/oapi/v1/flow/pipelines/{pipelineId}/runs/{pipelineRunId}/job/{jobId}/log
Request headers
|
Parameter |
Type |
Required |
Description |
Example value |
|
x-yunxiao-token |
string |
Yes |
Personal access token. |
pt-0fh3****0fbG_35af****0484 |
Request parameters
|
Parameter |
Type |
Location |
Required |
Description |
Example value |
|
organizationId |
string |
path |
|
The organization ID. |
5ebbc0228123212b59xxxxx |
|
pipelineId |
string |
path |
Yes |
The pipeline ID. |
123 |
|
pipelineRunId |
string |
path |
Yes |
The pipeline run ID. |
1 |
|
jobId |
string |
path |
Yes |
The job ID. |
1 |
Request examples
Central edition
curl -X 'GET' \
'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/pipelines/123/runs/1/job/1/log' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Region edition
curl -X 'GET' \
'https://{domain}/oapi/v1/flow/pipelines/123/runs/1/job/1/log' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
|
Parameter |
Type |
Description |
Example value |
| - |
object |
||
|
content |
string |
The log content. |
success |
|
last |
integer |
1 |
|
|
more |
boolean |
Whether more logs are available. |
true |
Response example
{
"content": "success",
"last": 1,
"more": true
}
Error codes
For more information, see Error Code Center.