GetPipelineJobSteps - List pipeline job steps
Lists the steps of a pipeline job.
|
Applicable editions |
Central edition, Region edition |
Service endpoint and authorization information
-
Get the service endpoint. Replace {domain} in the API request syntax.
-
Obtain the organization ID. Required only for the Central edition. Go to the Basic Information page in the Organization Management console.
|
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}/steps
Region edition
GET https://{domain}/oapi/v1/flow/pipelines/{pipelineId}/pipelineRuns/{pipelineRunId}/jobs/{jobId}/steps
Request headers
|
Parameter |
Type |
Required |
Description |
Example value |
|
x-yunxiao-token |
string |
Yes |
The personal access token. |
pt-0fh3****0fbG_35af****0484 |
Request parameters
|
Parameter |
Type |
Location |
Required |
Description |
Example value |
|
organizationId |
string |
path |
|
The enterprise ID. |
5ebbc0228123212b59xxxxx |
|
pipelineId |
string |
path |
Yes |
The pipeline ID. |
123 |
|
pipelineRunId |
string |
path |
Yes |
The pipeline run ID. Obtained by calling the ListPipelineRuns API. |
1 |
|
jobId |
string |
path |
Yes |
The pipeline run job ID. Obtained by calling the GetPipelineRun API. |
1 |
Request examples
Central edition
curl -X 'GET' \
'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/pipelines/123/pipelineRuns/1/jobs/1/steps' \
-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/steps' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
|
Parameter |
Type |
Description |
Example value |
| - |
object |
||
|
actionCode |
string |
The action code. |
EXECUTION_COMPONENT_BUILD |
|
actionName |
string |
The action name. |
Build |
|
buildId |
integer |
1 |
|
|
jobId |
integer |
1 |
|
| steps |
array |
||
| - |
object |
||
|
finish |
boolean |
Indicates whether the step is complete. |
true |
|
nodeIndex |
integer |
The index of the step. |
true |
|
nodeName |
string |
The name of the step. |
Run command |
|
parentIndex |
integer |
The index of the parent node. |
0 |
|
running |
boolean |
Indicates whether the step is running. |
false |
|
status |
string |
The status of the step. |
success |
|
stepApiVersion |
string |
The API version of the step. |
v2 |
|
stepIndex |
integer |
The index of the step. |
true |
|
stepName |
string |
The name of the step. |
Run command |
|
supportDebug |
boolean |
Indicates whether the step supports debugging. |
true |
Response example
{
"actionCode": "EXECUTION_COMPONENT_BUILD",
"actionName": "Build",
"buildId": 1,
"jobId": 1,
"steps": [
{
"finish": true,
"nodeIndex": true,
"nodeName": "Run command",
"parentIndex": 0,
"running": false,
"status": "success",
"stepApiVersion": "v2",
"stepIndex": true,
"stepName": "Run command",
"supportDebug": true
}
]
}
Error codes
For more information, see Error code center.