CreateCrossProjectPipelineRun

Updated at:

Creates a cross-workspace deployment pipeline run.

Operation description

Creates and finalizes a cross-workspace deployment pipeline run. ObjectIds must contain exactly one top-level object ID from the source workspace. Child objects of composite objects such as workflows are included automatically. Specifying more than one object causes parameter validation to fail. Call ListCrossProjectDeploymentCandidates to list candidate objects. After you create the run, call ExecCrossProjectPipelineRun to execute it and GetCrossProjectPipelineRun to check its status.

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:CreateCrossProjectPipelineRun

create

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ProjectId

integer

Yes

The ID of the DataWorks workspace.

10000

DeploymentEnvironmentId

integer

Yes

The ID of the cross-workspace deployment environment.

101

Type

string

Yes

The deployment type.

Valid values:

  • Offline :

    Offline deployment.

  • Online :

    Online deployment.

Online

ObjectIds

array

Yes

The list of top-level object IDs from the source workspace to be deployed. The list must contain exactly one object. Child objects of composite objects such as workflows are automatically included by the system.

["1"]

string

No

The top-level object ID from the source workspace to be deployed. The list must contain exactly one element. Providing more than one element causes parameter validation to fail.

1

Description

string

No

The deployment description.

This is a business process created by calling the API operation

Response elements

Element

Type

Description

Example

object

The API response.

{"RequestId":"735894D1-D5E5-50B8-8A6D-041C90A98B23","Success":true,"Data":{"RequestId":"735894D1-D5E5-50B8-8A6D-041C90A98B23","PipelineRunId":"fcfd4160-e2ff-4603-9719-09128fe733df"}}

RequestId

string

The request ID used to trace and troubleshoot the API call.

735894D1-D5E5-50B8-8A6D-041C90A98B23

Success

boolean

Indicates whether the request is successful.

true

Data

object

The business response.

{"RequestId":"735894D1-D5E5-50B8-8A6D-041C90A98B23","PipelineRunId":"fcfd4160-e2ff-4603-9719-09128fe733df"}

RequestId

string

The request ID.

735894D1-D5E5-50B8-8A6D-041C90A98B23

PipelineRunId

string

The ID of the cross-workspace deployment pipeline run.

fcfd4160-e2ff-4603-9719-09128fe733df

Examples

Success response

JSON format

{
  "RequestId": "735894D1-D5E5-50B8-8A6D-041C90A98B23",
  "Success": true,
  "Data": {
    "RequestId": "735894D1-D5E5-50B8-8A6D-041C90A98B23",
    "PipelineRunId": "fcfd4160-e2ff-4603-9719-09128fe733df"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.