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
Environmentparameter accepts three values:Dailyfor the daily environment,Prefor the pre-release environment, andProdfor the production environment.Check the
PreNeedConfigfield in the response. Atruevalue 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
Test
RAM authorization
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 |
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.