Queries a list of pipeline jobs. Filtering, sorting, and pagination are supported.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paiflow:ListPipelineRuns |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/pipelineruns HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
The page number. Pages start from page 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Default value: 10. |
10 |
| SourceId |
string |
No |
The pipeline job source ID. You can find this ID on the pipeline details page. For more information, see Manage pipelines. |
ybpy**********fb2z |
| Name |
string |
No |
The name of the pipeline job. |
testName |
| Order |
string |
No |
The sorting order. You must specify this parameter together with the SortBy parameter. Valid values:
|
DESC |
| SourceType |
string |
No |
The type of the pipeline job source. Valid values:
|
UNKNOWN |
| Status |
string |
No |
The status of the pipeline jobs to be filtered. Valid values:
|
Succeeded |
| WorkspaceId |
string |
No |
The workspace ID. You can call ListWorkspaces to obtain the workspace ID. |
104623 |
| UserId |
string |
No |
The user ID. |
155**********904 |
| PipelineIds |
string |
No |
The pipeline IDs, separated by commas (,). You can call ListPipelines to obtain pipeline IDs. |
flow-rer7**********0otv, flow-hynm**********sfef |
| SortBy |
string |
No |
The field for sorting. Valid values:
|
PipelineId |
| PipelineRunId |
string |
No |
The pipeline job ID. You can call ListPipelineRuns to obtain the ID of the pipeline job. |
flow-14vioac3k1s07k**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
473469C7-****-****-****-A3DC0DE3C83E |
| TotalCount |
integer |
The total number of returned pipeline jobs. |
15 |
| PipelineRuns |
array<object> |
The queried pipeline jobs. |
|
|
object |
The details of the pipeline job. |
||
| PipelineRunId |
string |
The ID of the pipeline job. |
flow-j94y**********lf7a |
| Name |
string |
The name of the pipeline job. |
testName |
| Status |
string |
The status of the pipeline job. Valid values:
|
Succeeded |
| UserId |
string |
The user ID. |
155**********904 |
| ParentUserId |
string |
The ID of the user's primary account. |
155**********904 |
| StartedAt |
string |
The time when the pipeline job starts, in UTC. The time follows the ISO 8601 standard. |
2021-01-30T12:51:33.028Z |
| FinishedAt |
string |
The time when the pipeline job ends, in UTC. The time follows the ISO 8601 standard. |
2021-01-30T12:52:33.028Z |
| NodeId |
string |
The node ID on which the pipeline job runs. |
node-n06d**********fc53 |
| Duration |
integer |
The running duration of the pipeline job. Unit: seconds. |
60 |
| WorkspaceId |
string |
The workspace ID. |
15945 |
| Message |
string |
The failure message of the pipeline job. |
error message |
| SourceType |
string |
The type of the pipeline job source. Valid values:
|
UNKNOWN |
| SourceId |
string |
The source ID of the pipeline job. |
abcd*********hxfu |
| GmtCreateTime |
string |
The time when the pipeline job is created, in UTC. The time follows the ISO 8601 standard. |
2021-01-30T12:51:33.028Z |
| GmtModifiedTime |
string |
The time when the pipeline job is last modified, in UTC. The time follows the ISO 8601 standard. |
2021-01-30T12:51:33.028Z |
| PipelineId |
string |
The pipeline ID. |
pipeline-j94y**********lf7a |
| Accessibility |
string |
The accessibility of the pipeline job. Valid values:
|
PUBLIC |
| PipelineRunUri |
string |
The URL of the pipeline job. |
https://pai.console.alibabacloud.com/?regionId=cn-shanghai&workspaceId=24****#/studio/task/detail/flow-dsfbjt4k07lvp1**** |
Examples
Success response
JSON format
{
"RequestId": "473469C7-****-****-****-A3DC0DE3C83E",
"TotalCount": 15,
"PipelineRuns": [
{
"PipelineRunId": "flow-j94y**********lf7a\n",
"Name": "testName\n",
"Status": "Succeeded",
"UserId": "155**********904",
"ParentUserId": "155**********904",
"StartedAt": "2021-01-30T12:51:33.028Z\n",
"FinishedAt": "2021-01-30T12:52:33.028Z\n",
"NodeId": "node-n06d**********fc53\n",
"Duration": 60,
"WorkspaceId": "15945",
"Message": "error message\n",
"SourceType": "UNKNOWN",
"SourceId": "abcd*********hxfu\n",
"GmtCreateTime": "2021-01-30T12:51:33.028Z\n",
"GmtModifiedTime": "2021-01-30T12:51:33.028Z\n",
"PipelineId": "pipeline-j94y**********lf7a\n",
"Accessibility": "PUBLIC",
"PipelineRunUri": "https://pai.console.alibabacloud.com/?regionId=cn-shanghai&workspaceId=24****#/studio/task/detail/flow-dsfbjt4k07lvp1****"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.