StartTrafficControlTask
Starts a traffic control task with a specified ID for instances in different environments.
Operation description
Request details
This operation starts the traffic control task identified by
TrafficControlTaskId.InstanceIdspecifies the target instance.Environmentspecifies the target environment. Valid values: Daily, Pre, and Prod.Ensure that all required parameters are set correctly before you call this operation. The specified
TrafficControlTaskIdmust exist in the system.
Try it now
Test
RAM authorization
Request syntax
POST /api/v1/trafficcontroltasks/{TrafficControlTaskId}/action/start HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TrafficControlTaskId |
string |
Yes |
The traffic control task ID. |
1 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| InstanceId |
string |
No |
The instance ID. |
pairec-123*** |
| Environment |
string |
No |
The target environment. Valid values: |
Pre |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| 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.