DeployTrafficControlTaskCode
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.
TrafficControlTaskIdis a path parameter and requires a valid task ID.InstanceIdandEnvironmentare required request body parameters that specify the instance ID and the target deployment environment.The optional
RetryDeployparameter specifies whether to automatically retry the deployment on failure. The default value isfalse.The value for
Environmentmust be one of the following: Daily, Pre, or Prod.
Try it now
Test
RAM authorization
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.