GetPipelineJobStepLogUrl - Get the download URL for a pipeline job step log
Obtain the download URL for a pipeline job step log.
|
Applicable editions |
Central edition, Region edition |
Endpoint and authorization information
-
Get the endpoint: Replace {domain} in the API request syntax.
-
Get the organizationId: Required only for Central. Go to the Basic Information page in the Organization Management console to retrieve 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}/pipelineRuns/{pipelineRunId}/jobs/{jobId}/step/log/url
Region edition
GET https://{domain}/oapi/v1/flow/pipelines/{pipelineId}/pipelineRuns/{pipelineRunId}/jobs/{jobId}/step/log/url
Request headers
|
Parameter |
Type |
Required |
Description |
Example |
|
x-yunxiao-token |
string |
Yes |
Personal access token. |
pt-0fh3****0fbG_35af****0484 |
Request parameters
|
Parameter |
Type |
Position |
Required |
Description |
Example |
|
organizationId |
string |
path |
|
The ID of the organization. |
5ebbc0228123212b59xxxxx |
|
pipelineId |
string |
path |
Yes |
The ID of the pipeline. |
123 |
|
pipelineRunId |
string |
path |
Yes |
The ID of the pipeline run. Get this ID by calling the ListPipelineRuns operation. |
1 |
|
jobId |
string |
path |
Yes |
The ID of the pipeline run job. Get this ID by calling the GetPipelineRun operation. |
1 |
|
stepIndex |
integer |
query |
Yes |
The index of the step within the job. |
1 |
|
buildId |
integer |
query |
Yes |
The build ID. |
1 |
Request examples
Central edition
curl -X 'GET' \
'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/pipelines/123/pipelineRuns/1/jobs/1/step/log/url?stepIndex=1&buildId=1' \
-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/pipelineRuns/1/jobs/1/step/log/url?stepIndex=1&buildId=1' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
|
Parameter |
Type |
Description |
Example |
|
- |
string |
The download URL for the pipeline job step log. |
http://aliyun.com |
Response example
http://aliyun.com
Error codes
See Error Code Center for API-related error codes.