ListPipelineRuns

Updated at:

Queries a paginated list of deployment pipelines and allows you to filter the pipelines by using filter conditions.

Operation description

Important This operation may not be available in earlier versions of the SDK. In this case, use the ListDeployments operation, which has the same parameters as described in this document.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dataworks:*

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ProjectId

integer

Yes

The ID of the DataWorks workspace. You can log on to the DataWorks console and go to the Workspace Management page to obtain the ID.

This parameter specifies the DataWorks workspace in which you invoke the current API.

10000

Creator

string

No

The creator of the deployment pipeline. This parameter is used as a filter condition.

110755000425****

Status

string

No

The current status of the deployment pipeline. This parameter is used as a filter condition.

Valid values:

  • Init: The pipeline is initialized.

  • Running: The pipeline is running.

  • Success: The pipeline succeeded.

  • Fail: The pipeline failed.

  • Termination: The pipeline is terminated.

  • Cancel: The pipeline is canceled.

Running

ObjectId

string

No

The ID of the deployment object.

860438872620113XXXX

PageNumber

integer

No

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

1

PageSize

integer

No

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

10

ModifyTimeFrom

integer

No

The lower bound of the last update time of the pipeline. The value is a UNIX timestamp in milliseconds and is inclusive. You can specify only the lower bound. If you do not specify this parameter, the lower bound is not limited. If you specify both this parameter and ModifyTimeTo, the value of this parameter must be less than or equal to the value of ModifyTimeTo. This parameter is used to filter the last update time of the pipeline and does not indicate the exact time of the production offline event.

1793548800000

ModifyTimeTo

integer

No

The upper bound of the last update time of the pipeline. The value is a UNIX timestamp in milliseconds and is inclusive. You can specify only the upper bound. If you do not specify this parameter, the upper bound is not limited. If you specify both this parameter and ModifyTimeFrom, the value of this parameter must be greater than or equal to the value of ModifyTimeFrom. This parameter is used to filter the last update time of the pipeline and does not indicate the exact time of the production offline event.

1793635200000

Response elements

Element

Type

Description

Example

object

The response schema.

RequestId

string

The ID of the request. You can use the ID to locate logs and troubleshoot issues.

7C352CB7-CD88-50CF-9D0D-E81BDF02XXXX

PagingInfo

object

The pagination information.

TotalCount

integer

The total number of entries that meet the filter conditions.

2524

PageSize

integer

The number of entries per page.

10

PageNumber

integer

The page number of the returned page.

1

PipelineRuns

array<object>

The list of deployment pipelines.

array<object>

The deployment pipeline.

Id

string

The ID of the deployment pipeline.

097c73fe-ed6e-4fb1-b109-a5d59e46cd58

ProjectId

integer

The ID of the project.

70199

CreateTime

integer

The timestamp when the deployment package was created.

1702736654000

ModifyTime

integer

The update time.

The value is a 13-digit number, such as 1702736654000.

1702736654000

Creator

string

The creator of the deployment pipeline.

110755000425XXXX

Status

string

The status of the deployment pipeline.

Valid values:

  • Init: The pipeline is initialized.

  • Running: The pipeline is running.

  • Success: The pipeline succeeded.

  • Fail: The pipeline failed.

  • Termination: The pipeline is terminated.

  • Cancel: The pipeline is canceled.

Valid values:

  • Init :

    Initialized.

  • Cancel :

    Canceled.

  • Running :

    Running.

  • Termination :

    Terminated.

  • Success :

    Succeeded.

  • Fail :

    Failed.

Running

Message

string

The error message returned when an error occurs in the deployment stage.

Error message

Stages

array<object>

The list of deployment stages.

array<object>

The deployment stage.

Code

string

The code of the deployment stage.

DEV_CHECK

Step

integer

The step number of the deployment stage.

1

Type

string

The type of the deployment stage. This parameter classifies the operation type of the deployment stage.

Valid values:

  • Deploy: The deployment operation.

  • Check: The check operation.

  • Offline: The offline operation.

  • Build: The build operation.

  • Delete: The delete operation.

Check

Name

string

The name of the stage.

Check before going online to development

Description

string

The description of the stage.

Check before going online to development

Message

string

The error message returned when an error occurs in the deployment stage.

Error message

Status

string

The status of the deployment stage.

Valid values:

  • Init: The stage is initialized.

  • Running: The stage is running.

  • Success: The stage succeeded.

  • Fail: The stage failed.

  • Termination: The stage is terminated.

  • Cancel: The stage is canceled.

Running

Detail

object

The additional supplementary information about the deployment stage.

{"checkerList": [{"code": "BuildPackageChecker", "name": "package check"}, {"code": "NodeParentDependency", "name": "downstream dependency check"}, {"code": "NodeInProcess", "name": "offline process check"}]}

any

The supplementary information.

{ "checkerList": [ { "code": "BuildPackageChecker", "name": "package check" }, { "code": "NodeParentDependency", "name": "downstream dependency check" }, { "code": "NodeInProcess", "name": "offline process check" } ] }

Description

string

The description of the deployment pipeline.

Deployment pipeline description

Examples

Success response

JSON format

{
  "RequestId": "7C352CB7-CD88-50CF-9D0D-E81BDF02XXXX\n",
  "PagingInfo": {
    "TotalCount": 2524,
    "PageSize": 10,
    "PageNumber": 1,
    "PipelineRuns": [
      {
        "Id": "097c73fe-ed6e-4fb1-b109-a5d59e46cd58",
        "ProjectId": 70199,
        "CreateTime": 1702736654000,
        "ModifyTime": 1702736654000,
        "Creator": "110755000425XXXX",
        "Status": "Running",
        "Message": "Error message",
        "Stages": [
          {
            "Code": "DEV_CHECK",
            "Step": 1,
            "Type": "Check",
            "Name": "Check before going online to development\n",
            "Description": "Check before going online to development\n",
            "Message": "Error message\n",
            "Status": "Running",
            "Detail": {
              "key": "{\n  \"checkerList\": [\n    {\n      \"code\": \"BuildPackageChecker\",\n      \"name\": \"package check\"\n    },\n    {\n      \"code\": \"NodeParentDependency\",\n      \"name\": \"downstream dependency check\"\n    },\n    {\n      \"code\": \"NodeInProcess\",\n      \"name\": \"offline process check\"\n    }\n  ]\n}"
            }
          }
        ],
        "Description": "Deployment pipeline description"
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.