StartTrafficControlTask
Starts the traffic shaping task with the specified ID for instances in different environments.
Operation description
Request description
This API operation starts the traffic shaping task identified by the specified
TrafficControlTaskId.InstanceIdspecifies the target instance.The
Environmentparameter defines the target environment for this operation (daily, staging, or production).Ensure that all required parameters are correctly configured before you call this operation. Specifically, the
TrafficControlTaskIdmust exist in the system.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pairec:StartTrafficControlTask |
none |
*All Resource
|
None | None |
Request syntax
POST /api/v1/trafficcontroltasks/{TrafficControlTaskId}/action/start HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TrafficControlTaskId |
string |
Yes |
The ID of the traffic shaping task. |
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 environment. Valid values:
|
Pre |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| 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.