GetPipelineRun

Updated at:

Retrieves the details of a deployment process.

Operation description

Important This operation may not be available in earlier SDK versions. In this case, use the GetDeployment operation instead. The parameters are the same as those 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:*

get

*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 for this API call.

10000

Id

string

Yes

The unique identifier of the deployment process.

a7ef0634-20ec-4a7c-a214-54020f****

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID. Used to locate logs and troubleshoot issues.

08468352-032C-5262-AEDC-68C9FA05XXXX

Pipeline

object

The information about the deployment process.

Id

string

The ID of the deployment process.

a7ef0634-20ec-4a7c-a214-54020f91XXXX

ProjectId

integer

The ID of the DataWorks workspace.

56160

CreateTime

integer

The timestamp when the deployment package was created.

1724984066000

ModifyTime

integer

The modification time.

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

1724984066000

Creator

string

The creator of the deployment process.

137946317766XXXX

Status

string

The status of the deployment process.

Valid values:

  • Init: Initialization.

  • Running: Running.

  • Success: Succeeded.

  • Fail: Failed.

  • Termination: Terminated.

  • Cancel: Canceled.

Valid values:

  • Init :

    Initialization.

  • Cancel :

    Canceled.

  • Running :

    Running.

  • Termination :

    Terminated.

  • Success :

    Succeeded.

  • Fail :

    Failed.

Running

Message

string

The error message returned when the deployment fails.

Error message

Stages

array<object>

The stage details.

array<object>

The stage element.

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.

Valid values:

  • Deploy: deploy operation

  • Check: check operation

  • Offline: undeploy operation

  • Build: build operation

  • Delete: delete operation

Valid values:

  • Delete :

    Delete

  • Build :

    Build

  • Check :

    Check

  • Offline :

    Offline

  • Deploy :

    Deploy

Check

Name

string

The name of the stage.

Publish package build

Description

string

The description of the stage.

Phase description

Message

string

The exception message of the deployment stage.

Exception information XXX

Status

string

The status of the deployment stage.

Valid values:

  • Init: Initialization.

  • Running: Running.

  • Success: Succeeded.

  • Fail: Failed.

  • Termination: Terminated.

  • Cancel: Canceled.

Valid values:

  • Init :

    Init

  • Cancel :

    Cancel

  • Running :

    Running

  • Termination :

    Termination

  • Success :

    Success

  • Fail :

    Fail

Running

Detail

object

The detailed information about the stage.

any

The additional information about the stage.

"checkerList": [ { "code": "BuildPackageChecker", "name": "Build_Package_Checker" }, { "code": "NodeParentDependency", "name": "Downstream_Dependency_Checker" }, { "code": "NodeInProcess", "name": "Decommissioning_Process_Checker" } ]

Description

string

The description of the deployment process.

Deployment process description

Examples

Success response

JSON format

{
  "RequestId": "08468352-032C-5262-AEDC-68C9FA05XXXX",
  "Pipeline": {
    "Id": "a7ef0634-20ec-4a7c-a214-54020f91XXXX\n",
    "ProjectId": 56160,
    "CreateTime": 1724984066000,
    "ModifyTime": 1724984066000,
    "Creator": "137946317766XXXX",
    "Status": "Running",
    "Message": "Error message",
    "Stages": [
      {
        "Code": "DEV_CHECK",
        "Step": 1,
        "Type": "Check",
        "Name": "Publish package build",
        "Description": "Phase description",
        "Message": "Exception information XXX",
        "Status": "Running",
        "Detail": {
          "key": "\"checkerList\": [\n    {\n        \"code\": \"BuildPackageChecker\",\n        \"name\": \"Build_Package_Checker\"\n    },\n    {\n        \"code\": \"NodeParentDependency\",\n        \"name\": \"Downstream_Dependency_Checker\"\n    },\n    {\n        \"code\": \"NodeInProcess\",\n        \"name\": \"Decommissioning_Process_Checker\"\n    }\n]\n"
        }
      }
    ],
    "Description": "Deployment process description"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.