Domain name for API request: teo.tencentcloudapi.com.
This API is used to modify the web and bot security configurations.
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: ModifySecurityPolicy. |
Version | Yes | String | Common Params. The value used for this API: 2022-01-06. |
Region | No | String | Common Params. This parameter is not required for this API. |
ZoneId | Yes | String | Top-level domain name |
Entity | Yes | String | Subdomain name/layer-4 proxy |
Config | Yes | SecurityConfig | Security configuration |
Parameter Name | Type | Description |
---|---|---|
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: teo.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifySecurityPolicy
<Common request parameters>
{
"Entity": "xx",
"Config": {
"WafConfig": {
"Switch": "xx",
"WafRules": {
"Switch": "xx",
"BlockRuleIDs": [
0
]
},
"Mode": "xx",
"Level": "xx"
},
"DdosConfig": {
"Switch": "xx"
},
"RateLimitConfig": {
"Switch": "xx",
"UserRules": [
{
"UpdateTime": "2020-09-22T00:00:00+00:00",
"RuleID": 0,
"PunishTimeUnit": "xx",
"RulePriority": 0,
"FreqFields": [
"xx"
],
"Period": 0,
"PunishTime": 0,
"Action": "xx",
"RuleName": "xx",
"Threshold": 0,
"RuleStatus": "xx",
"Conditions": [
{
"MatchParam": "xx",
"Operator": "xx",
"MatchFrom": "xx",
"MatchContent": "xx"
}
]
}
]
},
"AclConfig": {
"Switch": "xx",
"UserRules": [
{
"UpdateTime": "2020-09-22T00:00:00+00:00",
"RuleID": 0,
"RulePriority": 0,
"RuleName": "xx",
"Action": "xx",
"RuleStatus": "xx",
"Conditions": [
{
"MatchParam": "xx",
"Operator": "xx",
"MatchFrom": "xx",
"MatchContent": "xx"
}
]
}
]
}
},
"ZoneId": "xx"
}
{
"Response": {
"RequestId": "08b32010-ab25-42a4-b923-2e6c481dae23"
}
}
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 |
---|---|
InternalError.RouteError | The backend routing address is incorrect. |
InvalidParameter.Security | Invalid parameter. |
OperationDenied | Operation denied. |
UnauthorizedOperation.CamUnauthorized | CAM is not authorized. |
本页内容是否解决了您的问题?