All Products
Search
Document Center

Platform For AI:ListPipelineRuns

Last Updated:Sep 15, 2025

Queries a list of pipeline jobs. Filtering, sorting, and pagination are supported for this API operation.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
paiflow:ListPipelineRunslist
*All Resources
*
    none
none

Request syntax

GET /api/v1/pipelineruns HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
PageNumberintegerNo

The page number. Pages start from page 1. Default value: 1.

1
PageSizeintegerNo

The number of entries per page. Default value: 10.

10
SourceIdstringNo

The ID of the pipeline job source. You can view the ID of the pipeline job source on the pipeline details page. For more information, see Manage pipelines.

ybpy**********fb2z
NamestringNo

The name of the pipeline job.

testName
OrderstringNo

The sorting order. You must specify this parameter together with the SortBy parameter. Valid values:

  • ASC: ascending order.
  • DESC: descending order. This is the default value.
DESC
SourceTypestringNo

The type of the pipeline job source. Valid values:

  • UNKNOWN: If you do not specify this parameter, UNKNOWN is used as the default value.
  • SDK: The pipeline job is created by using an SDK.
  • DESIGNER: The pipeline job is created by using Machine Learning Designer.
  • M6: The pipeline job is created on other websites.
UNKNOWN
StatusstringNo

The status of the pipeline jobs to be filtered. Valid values:

  • Initialized
  • Running
  • Succeeded
  • Failed
  • Terminated
  • Unknown
  • Skipped
  • Terminating
Succeeded
WorkspaceIdstringNo

The workspace ID. You can call ListWorkspaces to obtain the workspace ID.

104623
UserIdstringNo

The user ID.

155**********904
PipelineIdsstringNo

The IDs of the pipelines. Multiple pipeline IDs are separated by commas (,). You can call ListPipelines to obtain the ID of the pipeline.

flow-rer7**********0otv, flow-hynm**********sfef
SortBystringNo

The field for sorting. Valid values:

  • PipelineId
  • UserId
  • ParentUserId
  • StartedAt
  • FinishedAt
  • WorkflowServiceId
  • Duration
  • GmtCreateTime
  • GmtModifiedTime
PipelineId
PipelineRunIdstringNo

The pipeline job ID. You can call ListPipelineRuns to obtain the ID of the pipeline job.

flow-14vioac3k1s07k****

Response parameters

ParameterTypeDescriptionExample
object

The returned data.

RequestIdstring

The request ID.

473469C7-****-****-****-A3DC0DE3C83E
TotalCountlong

The total amount of returned pipeline jobs.

15
PipelineRunsarray<object>

The queried pipeline jobs.

PipelineRunsobject

The details of the pipeline job.

PipelineRunIdstring

The ID of the pipeline job.

flow-j94y**********lf7a
Namestring

The name of the pipeline job.

testName
Statusstring

The status of the pipeline job. Valid values:

  • Initialized
  • Running
  • Succeeded
  • Failed
  • Suspended
  • Terminated
  • Unknown
  • Skipped
  • Terminating
Succeeded
UserIdstring

The user ID.

155**********904
ParentUserIdstring

The ID of the primary account of the user.

155**********904
StartedAtstring

The time when the pipeline job starts, in UTC. The time follows the ISO 8601 standard.

2021-01-30T12:51:33.028Z
FinishedAtstring

The time of the pipeline job ends, in UTC. The time follows the ISO 8601 standard.

2021-01-30T12:52:33.028Z
NodeIdstring

The ID of the node on which the pipeline job is executed.

node-n06d**********fc53
Durationinteger

The running duration of the pipeline job. Unit: seconds.

60
WorkspaceIdstring

The workspace ID.

15945
Messagestring

The failure message of the pipeline job.

error message
SourceTypestring

The type of the pipeline job source. Valid values:

  • UNKNOWN
  • SDK
  • DESIGNER
  • M6
UNKNOWN
SourceIdstring

The ID of the source for the pipeline job.

abcd*********hxfu
GmtCreateTimestring

The time when the pipeline job is created, in UTC. The time must follow the ISO 8601 standard.

2021-01-30T12:51:33.028Z
GmtModifiedTimestring

The time when the pipeline job is last modified, in UTC. The time must follow the ISO 8601 standard.

2021-01-30T12:51:33.028Z
PipelineIdstring

The pipeline ID.

pipeline-j94y**********lf7a
Accessibilitystring

The accessibility of the pipeline job. Valid values:

  • PUBLIC
  • PRIVATE
PUBLIC
PipelineRunUristring

The URL of the pipeline job.

https://pai.console.alibabacloud.com/?regionId=cn-shanghai&workspaceId=24****#/studio/task/detail/flow-dsfbjt4k07lvp1****

Examples

Sample success responses

JSONformat

{
  "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

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-07-24The internal configuration of the API is changed, but the call is not affectedView Change Details
2022-12-15The response structure of the API has changedView Change Details
2022-12-15The request parameters of the API has changedView Change Details
2022-07-06The response structure of the API has changedView Change Details
2022-06-14Add OperationView Change Details