ModifyL7AccRulePriority
1. API Description
Domain name for API request: teo.intl.tencentcloudapi.com.
This interface is used to modify the priority of the rule list in the Rule Engine. This interface requires the complete rule ID list under the site ID to be passed in. The rule ID list can be obtained through the Query Seven-Layer Acceleration Rules interface. The final priority order will be adjusted to the order of the rule ID list, and will be executed from front to back.
A maximum of 20 requests can be initiated per second for this API.
2. Input Parameters
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: ModifyL7AccRulePriority. |
Version | Yes | String | Common Params. The value used for this API: 2022-09-01. |
Region | No | String | Common Params. This parameter is not required. |
ZoneId | Yes | String | Zone ID. |
RuleIds.N | Yes | Array of String | The complete rule ID list under the site ID can be obtained by Querying the seven-layer acceleration rules. The final priority order will be adjusted to the order of the rule ID list, and will be executed from the front to the back. |
3. Output Parameters
Parameter Name | Type | Description |
---|---|---|
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
4. Example
Example1 Modify the Priority of the Rule Engine
There are 3 rules under the site. The original order of execution is rule-example1, rule-example2, and rule-example3. It needs to be modified to the execution order of rule-example2, rule-example3, and rule-example1.
Input Example
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyL7AccRulePriority
<Common request parameters>
{
"ZoneId": "zone-example",
"RuleIds": [
"rule-example2",
"rule-example3",
"rule-example1"
]
}
Output Example
{
"Response": {
"RequestId": "example-310c-41f4-b5e7-abe407404sxsd"
}
}
5. Developer Resources
SDK
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
- Tencent Cloud SDK 3.0 for Python
- Tencent Cloud SDK 3.0 for Java
- Tencent Cloud SDK 3.0 for PHP
- Tencent Cloud SDK 3.0 for Go
- Tencent Cloud SDK 3.0 for Node.js
- Tencent Cloud SDK 3.0 for .NET
- Tencent Cloud SDK 3.0 for C++
Command Line Interface
6. Error Code
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
InvalidParameter.InvalidRuleEngine | The rule engine configuration is invalid. |
InvalidParameter.InvalidRuleEngineNotFound | The rule does not exist. |