Retrieves the deployment status and related information for a specified traffic control task in a specific environment.
Operation description
Description
Queries the deployment result of a traffic control task for a specific TrafficControlTaskId in a given instance and environment. Ensure the provided InstanceId is associated with your account and the Environment is one of the following: Daily (daily environment), Pre (pre-release environment), or Prod (production environment).
Try it now
Test
RAM authorization
Request syntax
GET /api/v1/trafficcontroltasks/{TrafficControlTaskId}/action/queryresult HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TrafficControlTaskId |
string |
No |
The traffic control task ID. |
1 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
The instance ID. |
pairec_123**** |
| Environment |
string |
No |
The environment where the task is deployed. Valid values: |
Daily |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
728C5E01-ABF6-5AA8-B9FC-B3BA05DECC77 |
| TrafficControlTaskId |
string |
The traffic control task ID. |
3 |
| DraftStatus |
string |
The status of pushing the draft to Flink. Valid values:
|
Success |
| DraftMessage |
string |
The message returned from pushing the draft to Flink. |
push draft success |
| DeployStatus |
string |
The deployment status of the draft. Valid values:
|
Success |
| DeployMessage |
string |
The message returned from the deployment operation. |
deploy job draft success |
| StartStatus |
string |
The startup status of the Flink task. Valid values:
|
Success |
| StartMessage |
string |
The message returned from the Flink task startup. |
start job success |
| PrepareStatus |
string |
The status of the preparation phase. Valid values:
|
Success |
| PrepareMessage |
string |
The message returned from the preparation phase. |
success |
Examples
Success response
JSON format
{
"RequestId": "728C5E01-ABF6-5AA8-B9FC-B3BA05DECC77",
"TrafficControlTaskId": "3",
"DraftStatus": "Success",
"DraftMessage": "push draft success",
"DeployStatus": "Success",
"DeployMessage": "deploy job draft success",
"StartStatus": "Success",
"StartMessage": "start job success",
"PrepareStatus": "Success",
"PrepareMessage": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.