Modifies the scheduling rule of an on-demand instance.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceId | string | Yes | The ID of the on-demand instance. Note
You can call the DescribeOnDemandInstance operation to query the IDs of all on-demand instances.
| ddosbgp-cn-z2q1qzxb**** |
RuleName | string | Yes | The name of the scheduling rule. The name can contain lowercase letters, digits, hyphens (-), and underscores (_). The name can be up to 32 characters in length. We recommend that you use the ID of the on-demand instance as the name. Example: | ddosbgp-cn-z2q1qzxb**** |
RuleConditionMbps | string | Yes | The threshold of inbound bandwidth. Unit: Mbit/s. Minimum value: 100. | 100 |
RuleConditionKpps | string | Yes | The threshold of inbound packets. Unit: Kpps. Minimum value: 10. | 10 |
RuleConditionCnt | string | Yes | If the inbound bandwidth or packets consecutively exceed the threshold for the specified number of times, the scheduling rule is triggered and traffic is rerouted to the on-demand instance. The specified number of times is the value of this parameter. Note
The threshold of inbound bandwidth is the value of RuleConditionMbps. The threshold of inbound packets is the value of RuleConditionKpps.
| 3 |
RuleAction | string | Yes | The scheduling action. Set the value to declare, which indicates that the route is advertised. | declare |
RuleSwitch | string | Yes | Specifies whether the scheduling rule is enabled. Valid values:
| on |
RuleUndoMode | string | Yes | The stop method of the scheduling rule. Valid values:
| manual |
RuleUndoBeginTime | string | Yes | The start time of the period during which the scheduling rule is automatically stopped. The time must be in the 24-hour clock and in the If the system detects that DDoS attacks stop, the system no longer reroutes traffic to the on-demand instance from the time you specified. We recommend that you set this parameter to a value that is defined as off-peak hours. Note
This parameter takes effect only when the RuleUndoMode parameter is set to auto.
| 03:00 |
RuleUndoEndTime | string | No | The end time of the period during which the scheduling rule is automatically stopped. The time must be in the 24-hour clock and in the | 03:05 |
TimeZone | string | Yes | The time zone of the time when the scheduling rule automatically stops. The time zone must be in the For example, the value Note
This parameter takes effect only when the RuleUndoMode parameter is set to auto.
| GMT-08:00 |
RegionId | string | No | The region ID of the on-demand instance. Note
You can call the DescribeRegions operation to query all regions supported by Anti-DDoS Origin.
| cn-zhangjiakou |
All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.
For more information about sample requests, see the "Examples" section of this topic.
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "BD06F539-2FBE-450D-9391-7EFF787128F5"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|