CreatePipelineRun

Updated at:

Creates a deployment process for an entity in Data Studio.

Operation description

Important This operation does not support batch operations. If you specify multiple entities to be deployed in the request parameters, only the first entity is processed and the rest are ignored.
Important This operation may not be available in earlier versions of the SDK. In this case, use the CreateDeployment operation, which uses 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:*

create

*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 Configuration page to obtain the workspace ID. This parameter specifies the DataWorks workspace on which the API operation is performed.

10000

Type

string

Yes

Specifies the type of the deployment process.

Valid values:

  • Online: Goes online.

  • Offline: Goes offline.

Online

ObjectIds

array

Yes

The list of entity IDs to be deployed in this deployment process.

Important Currently, only a single entity and its child entities can be deployed. Therefore, only the first entity and its child entities in the array are deployed. Make sure that the array contains only one element. Additional elements are ignored.

string

No

The ID of the entity to be deployed, such as the ID of a node or a workflow definition.

Important A workflow definition can only be deployed as a whole. Deploying a single node within a workflow separately is not supported.

476506242076571XXXX

Description

string

No

The description of the deployment process.

This is a OdpsSQL-node publishing process. The function is XXXX.

RunMode

string

No

The running mode of the deployment process. Default value: Normal. If you set this parameter to Auto, the deployment process automatically runs to the specified stage. This parameter must be used together with the AutoRunUntilStage parameter.

Valid values:

  • Normal

  • Auto

Valid values:

  • Auto :

    Automatic.

  • Normal :

    Normal.

Normal

AutoRunUntilStage

string

No

The code of the stage to which the deployment process runs. This parameter takes effect only when the RunMode parameter is set to Auto. After the deployment process is created, it automatically runs to the specified stage.

Important The specified stage is automatically completed. For example, if you set this parameter to DEV, the automatic running stops after the DEV stage reaches the desired state.

DEV

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

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

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

Id

string

The unique identifier of the deployment process.

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

Examples

Success response

JSON format

{
  "RequestId": "7C352CB7-CD88-50CF-9D0D-E81BDF02XXXX",
  "Id": "a7ef0634-20ec-4a7c-a214-54020f91XXXX\n"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.