GenerateTrafficControlTaskCode

更新时间:
复制 MD 格式

Generates Flink code for a specified traffic control task ID and instance information.

Operation description

Description

  • This API generates Flink code for a specified traffic control task ID, instance ID, and environment type.

  • The Environment parameter accepts three values: Daily for the daily environment, Pre for the pre-release environment, and Prod for the production environment.

  • Check the PreNeedConfig field in the response. A true value indicates that necessary configuration information might be missing in the pre-release environment. If this occurs, add or adjust the required settings.

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/generatecode HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

TrafficControlTaskId

string

Yes

The traffic control task ID.

7

Request parameters

Parameter

Type

Required

Description

Example

body

object

No

The request body.

InstanceId

string

Yes

The instance ID.

pairec-test1

Environment

string

No

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

Daily

Response elements

Element

Type

Description

Example

object

The response schema.

RequestId

string

The request ID.

728C5E01-ABF6-5AA8-B9FC-B3BA05DECC77

Code

string

The generated Flink code.

Create Table xxx.......

PreNeedConfig

boolean

Indicates whether the engine configuration for the pre-release environment is incomplete.

False

Examples

Success response

JSON format

{
  "RequestId": "728C5E01-ABF6-5AA8-B9FC-B3BA05DECC77",
  "Code": "Create Table xxx.......",
  "PreNeedConfig": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.