Domain name for API request: teo.intl.tencentcloudapi.com.
This API is used to modify the priority of the rule list in the rule engine (https://www.tencentcloud.com/document/product/1552/70901?from_cn_redirect=1). It requires the input of the complete rule ID list under the site ID. The rule ID list can be obtained through the API for querying layer-7 acceleration rules (https://www.tencentcloud.com/document/product/1552/115820?from_cn_redirect=1). The final priority order will be adjusted to the order of the rule ID list, executed from front to back.
A maximum of 20 requests can be initiated per second for this API.
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 | Complete rule ID list under the site ID. The rule ID list can be obtained through Query Layer-7 Acceleration Rules. The final priority order will be adjusted to the order of the rule ID list, and rules will be executed in sequence from front to back. |
| 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. |
There are 3 rules under the site. The original execution order is rule-example1, rule-example2, rule-example3, and it needs to be modified to rule-example2, rule-example3, rule-example1.
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"
]
}
{
"Response": {
"RequestId": "example-310c-41f4-b5e7-abe407404sxsd"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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 | Invalid rule engine configuration. |
| InvalidParameter.InvalidRuleEngineNotFound | Rule does not exist. |
피드백