All Products
Search
Document Center

Platform For AI:GetPipelineRun

Last Updated:Apr 15, 2025

Queries the information about a pipeline job.

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:GetPipelineRunget
*All Resources
*
    none
none

Request syntax

GET /api/v1/pipelineruns/{PipelineRunId} HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
PipelineRunIdstringYes

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

run-rbvg**********ks92
VerbosebooleanNo

Specifies whether to return detailed information. Valid values:

  • false: does not return detailed information.
  • true: returns detailed information that contains Manifest.
false
ManifestTypestringNo

The type of the manifest to be returned. Valid values:

  • Raw (default): the original manifest submitted by the user.
  • Frozen: generates a UUID for each pipeline and freeze the pipeline version. Even if you upgrade the pipeline when the three tuples defined on a node remain unchanged, the original UUID is still used. In this case, you can re-run the pipeline based on this manifest.
  • Rendered: injects related information to the pipeline and renders it, including completing runtime environment information and optimizing pipeline configurations.
  • Expanded: provides a complete definition for each pipeline.
  • Runtime: the pipeline to be run.
Raw
TokenIdstringNo

The ID of the shared pipeline job.

https://pai.console.aliyun.com/?regionId=cn-hangzhou&workspaceId=102******&mode=noSidebar#/paiflow/pipeline-runs/flow-6y7******?Token=eyJ0e******

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

DA869D1B-035A-43B2-ACC1-C56681BD9FAA
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
Manifeststring

The definition of the pipeline job.

{"ApiVersion":"core/v1","Metadata":{"NodeId":"node-n06d**********fc53","Provider":"155**********904","Name":"flow-j94y**********lf7a","Version":"v1","Identifier":"9fe11111-****-****-****-****ec811861","Namespace":null,"DisplayName":"name","NodeType":"Dag"},"Spec":{}}
Argumentsstring

The parameters for the pipeline job.

{"arguments":{"parameters":[{"name":"execution","value":{"endpoint":"http://service.******","odpsProject":"******","spec":{"endpoint":"http://service.******","odpsProject":"*****"},"resourceType":"MaxCompute"}}]}}
UserIdstring

The ID of the RAM user that is used to create the pipeline.

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

The ID of the Alibaba Cloud account that is used to create the pipeline.

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

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

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

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

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

The pipeline ID.

node-n06d**********fc53
Durationlong

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

60
WorkspaceIdstring

The ID of the workspace to which the pipeline job belongs.

15945
Messagestring

The failure message of the pipeline job.

error message
SourceTypestring

The type of the pipeline job source. Valid values:

  • UNKNOWN: If you leave this parameter empty, UNKNOWN is used as the default value.
  • SDK: The pipeline job is created by using an SDK.
  • DESIGNER: The pipeline job is created in Machine Learning Designer.
  • M6: The pipeline job is created on other websites.
UNKNOWN
SourceIdstring

The ID of the pipeline job source.

abcd*********hxfu
Optionsstring

The option for the pipeline job, which is in the JSON format.

{"mlflow":{"experimentId":"exp-**********"}}
GmtCreateTimestring

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

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

The time when the pipeline job was modified, in UTC. The time follows 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.aliyun.com/?regionId=cn-shanghai&workspaceId=24****#/studio/task/detail/flow-dsfbjt4k07lvp1****

Examples

Sample success responses

JSONformat

{
  "RequestId": "DA869D1B-035A-43B2-ACC1-C56681BD9FAA\n",
  "PipelineRunId": "flow-j94y**********lf7a\n",
  "Name": "testName",
  "Status": "Succeeded",
  "Manifest": "{\"ApiVersion\":\"core/v1\",\"Metadata\":{\"NodeId\":\"node-n06d**********fc53\",\"Provider\":\"155**********904\",\"Name\":\"flow-j94y**********lf7a\",\"Version\":\"v1\",\"Identifier\":\"9fe11111-****-****-****-****ec811861\",\"Namespace\":null,\"DisplayName\":\"name\",\"NodeType\":\"Dag\"},\"Spec\":{}}",
  "Arguments": "{\"arguments\":{\"parameters\":[{\"name\":\"execution\",\"value\":{\"endpoint\":\"http://service.******\",\"odpsProject\":\"******\",\"spec\":{\"endpoint\":\"http://service.******\",\"odpsProject\":\"*****\"},\"resourceType\":\"MaxCompute\"}}]}}",
  "UserId": "155**********904\n",
  "ParentUserId": "155**********904\n",
  "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",
  "Options": "{\"mlflow\":{\"experimentId\":\"exp-**********\"}}\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.aliyun.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
2023-12-21The request parameters of the API has changedView Change Details
2022-12-15The response structure of the API has changedView Change Details
2022-06-14Add OperationView Change Details