Consulta as regras de controle de frequência geradas pelo Deep Learning e Proteção.
Experimente agora
Testar
Autorização RAM
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| SiteId |
integer |
Sim |
O ID do site. Obtenha-o chamando a operação ListSites. |
123456**** |
| PageNumber |
integer |
Sim |
O número da página atual. |
1 |
| PageSize |
integer |
Não |
O número de entradas por página. |
10 |
| RuleType |
string |
Não |
O tipo de regra. |
cc |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Esquema da resposta. |
||
| RequestId |
string |
O ID da solicitação. |
36af3fcc-43d0-441c-86b1-428951dc8225 |
| TotalCount |
integer |
O número total de regras. |
100 |
| PageNumber |
integer |
O número da página atual. |
1 |
| PageSize |
integer |
O número de entradas por página. |
10 |
| RuleInfos |
array<object> |
A lista de regras. |
|
|
object |
|||
| RuleName |
string |
O nome da regra. |
inner_cc_client_ip_ratelimit |
| RecordName |
string |
O nome do registro. |
test.example.com |
| Action |
string |
A ação a ser executada. |
js |
| RuleId |
integer |
O ID da regra. |
20110849 |
| RateLimit |
string |
As informações de limite de frequência. |
{"threshold":2000,"interval":5,"target":"ip","ttl":600} |
| Statistics |
string |
As estatísticas. |
{"field":"ip","mode":"count"} |
| Condition |
string |
As condições que acionam a regra. |
{"$and":[{"key":"URI","opValue":"prefix-match","values":"/"}]} |
| PunishTime |
integer |
A duração da penalidade em segundos. |
86400 |
| LogRuleId |
integer |
O ID da regra de proteção para registros de log. |
100030 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225",
"TotalCount": 100,
"PageNumber": 1,
"PageSize": 10,
"RuleInfos": [
{
"RuleName": "inner_cc_client_ip_ratelimit",
"RecordName": "test.example.com",
"Action": "js",
"RuleId": 20110849,
"RateLimit": "{\"threshold\":2000,\"interval\":5,\"target\":\"ip\",\"ttl\":600}",
"Statistics": "{\"field\":\"ip\",\"mode\":\"count\"}",
"Condition": "{\"$and\":[{\"key\":\"URI\",\"opValue\":\"prefix-match\",\"values\":\"/\"}]}",
"PunishTime": 86400,
"LogRuleId": 100030
}
]
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidParameter.SiteId | The specified SiteId is invalid. | The specified SiteId is invalid.Check parameter SiteId and try again. |
| 400 | ErrSiteIdNoteEnterprise | This feature is unavailable because your website is not associated with an Enterprise plan. Upgrade your plan to Enterprise. | This feature is unavailable because your website is not associated with an Enterprise plan. Upgrade your plan to Enterprise. |
| 500 | InternalError | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 403 | SiteIdDDoSVersionCheckFailed | SiteId DDoS version check failed. | Failed to check the DDoS version corresponding to the site. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.