DeployTrafficControlTaskCode

Updated at:

Deploys Flink code for a traffic control task in a specified environment.

Operation description

Overview

  • This API deploys Flink code for a specific traffic control task.

  • TrafficControlTaskId is a path parameter and requires a valid task ID.

  • InstanceId and Environment are required request body parameters that specify the instance ID and the target deployment environment.

  • The optional RetryDeploy parameter specifies whether to automatically retry the deployment on failure. The default value is false.

  • The value for Environment must be one of the following: Daily, Pre, or Prod.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /api/v1/trafficcontroltasks/{TrafficControlTaskId}/action/deploycode HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

TrafficControlTaskId

string

No

The traffic control task ID.

3

Request parameters

Parameter

Type

Required

Description

Example

body

object

No

The request body.

InstanceId

string

No

The instance ID.

pairec-test1

Environment

string

No

The deployment environment. Valid values: Daily (daily environment), Pre (pre-production environment), and Prod (production environment).

Daily

RetryDeploy

boolean

No

Specifies whether to automatically retry a failed deployment.

Response elements

Element

Type

Description

Example

object

The returned data.

RequestId

string

The request ID.

728C5E01-ABF6-5AA8-B9FC-B3BA05DECC77

Examples

Success response

JSON format

{
  "RequestId": "728C5E01-ABF6-5AA8-B9FC-B3BA05DECC77"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.