GetPipelineRun
Retrieves a pipeline run.
Operation description
API name: GetPipelineRun.
Try it now
Test
RAM authorization
Request syntax
GET /organization/{organizationId}/pipelines/{pipelineId}/pipelineRuns/{pipelineRunId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| organizationId |
string |
Yes |
The organization ID. It is a string that can be obtained from the Yunxiao URL, such as https://devops.aliyun.com/organization/[OrganizationId]. |
5ebbc0228123212b59xxxxx |
| pipelineId |
integer |
Yes |
The pipeline ID. You can obtain it from the pipeline URL, such as https://flow.aliyun.com/pipelines/[PipelineId]/current. |
12222 |
| pipelineRunId |
integer |
Yes |
The pipeline run ID. |
1 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The request ID. This value is unique for each request and can be used for troubleshooting. |
ASSDS-ASSASX-XSAXSA-XSAXSAXS |
| errorMessage |
string |
The error message. |
"" |
| pipelineRun |
object |
The pipeline run instance. |
|
| creatorAccountId |
string |
The Alibaba Cloud account ID of the creator. |
1111111111 |
| createTime |
integer |
The creation time. The value is a UNIX timestamp in milliseconds. |
1586863220000 |
| updateTime |
integer |
The update time. The value is a UNIX timestamp in milliseconds. |
1586863220000 |
| modifierAccountId |
string |
The Alibaba Cloud account ID of the updater. |
11111111111 |
| pipelineId |
integer |
The pipeline ID. |
1234 |
| pipelineRunId |
integer |
The pipeline run ID. |
1 |
| status |
string |
The status. Valid values:
|
SUCCESS |
| triggerMode |
integer |
The trigger mode. Valid values:
|
1 |
| stageGroup |
array |
The stage topology information. |
|
|
array |
Group |
||
|
string |
The stage. |
Stage name |
|
| sources |
array<object> |
The code sources. |
|
|
array<object> |
The code sources. |
||
| sign |
string |
The unique identifier of the code source. |
assaaaaaasasasa |
| type |
string |
The code repository type. Valid values:
|
Codeup |
| data |
object |
The code source information. |
|
| branch |
string |
The code branch. |
master |
| commint |
string |
The commit information in JSON format. |
{} |
| repo |
string |
The code repository address. |
http://codeup.aliyun.com/a.git |
| stages |
array<object> |
The stage information. |
|
|
array<object> |
|||
| name |
string |
The stage name. |
Java build |
| stageInfo |
object |
The stage details. |
|
| endTime |
integer |
The end time. The value is a UNIX timestamp in milliseconds. |
1586863220000 |
| startTime |
integer |
The start time. The value is a UNIX timestamp in milliseconds. |
1586863220000 |
| name |
string |
The stage name. |
Java build |
| status |
string |
The status. Valid values:
|
RUNNING |
| jobs |
array<object> |
The jobs. |
|
|
array<object> |
|||
| endTime |
integer |
The end time. The value is a UNIX timestamp in milliseconds. |
1586863220000 |
| id |
integer |
The job ID. |
21212 |
| name |
string |
The job name. |
Java build |
| params |
string |
The trigger parameters. |
{} |
| status |
string |
The status. Valid values:
|
RUNNING |
| startTime |
integer |
The start time. The value is a UNIX timestamp in milliseconds. |
1586863220000 |
| actions |
array<object> |
What to do next. For References, see https://help.aliyun.com/document_detail/2360596.html. |
|
|
array<object> |
|||
| type |
string |
References: https://help.aliyun.com/document_detail/2360596.html. |
PassPipelineValidate |
| disable |
boolean |
References: https://help.aliyun.com/document_detail/2360596.html. |
true |
| params |
object |
References: https://help.aliyun.com/document_detail/2360596.html. |
{} |
|
any |
The parameter values for What to do next. The specific content depends on the action type. |
1111111 |
|
| success |
boolean |
Indicates whether the API call was successful. Valid values:
|
true |
| errorCode |
string |
The error code. |
"" |
Examples
Success response
JSON format
{
"requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
"errorMessage": "\"\"",
"pipelineRun": {
"creatorAccountId": "1111111111",
"createTime": 1586863220000,
"updateTime": 1586863220000,
"modifierAccountId": "11111111111",
"pipelineId": 1234,
"pipelineRunId": 1,
"status": "SUCCESS",
"triggerMode": 1,
"stageGroup": [
[
"阶段名称"
]
],
"sources": [
{
"sign": "assaaaaaasasasa",
"type": "Codeup",
"data": {
"branch": "master",
"commint": "{}",
"repo": "http://codeup.aliyun.com/a.git"
}
}
],
"stages": [
{
"name": "Java build",
"stageInfo": {
"endTime": 1586863220000,
"startTime": 1586863220000,
"name": "Java build",
"status": "RUNNING",
"jobs": [
{
"endTime": 1586863220000,
"id": 21212,
"name": "Java build",
"params": "{}",
"status": "RUNNING",
"startTime": 1586863220000,
"actions": [
{
"type": "PassPipelineValidate",
"disable": true,
"params": {
"key": "1111111"
}
}
]
}
]
}
}
]
},
"success": true,
"errorCode": "\"\""
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParam.ParamNotPresent | The parameter is invalid. | The parameter is invalid. |
| 400 | InvalidUser.NotFound | The user that is invoking the API service is not a registered user. | The user that is invoking the API service is not a registered user. |
| 403 | Forbidden.UserNotInCurrentOrganization | The user is not in the organization and is not authorized to perform the operation. | |
| 404 | InvalidOrganization.NotFound | The organization is not found. | The organization is not found. Please check the organization ID. |
| 404 | InvalidPipeline.NotFound | The pipeline is not found. | The pipeline does not exist. |
| 404 | InvalidPipelineRun.NotFound | The pipeline execution instance is not found. | The pipeline execution instance is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.