Atualiza uma regra de firewall de aplicação web (WAF). Use esta operação para modificar a configuração e o status da regra.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
esa:UpdateWafRule |
update |
*Site
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| SiteId |
integer |
Sim |
O ID do site. Para obter o ID do site, chame a operação ListSites. |
1 |
| SiteVersion |
integer |
Não |
O número da versão da configuração do site. Para sites com o gerenciamento de versão de configuração ativado, use este parâmetro para especificar a versão de configuração efetiva. O valor padrão é a versão 0. |
0 |
| Id |
integer |
Sim |
O ID da regra do WAF. Para obter o ID da regra, chame a operação ListWafRules. |
20000001 |
| Position |
integer |
Não |
A posição da regra dentro do conjunto de regras. |
1 |
| Status |
string |
Não |
O status da regra. |
on |
| Config | WafRuleConfig |
Não |
A configuração da regra. |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Esquema da resposta. |
||
| RequestId |
string |
O ID da solicitação. |
36af3fcc-43d0-441c-86b1-428951dc8225 |
| Id |
integer |
O ID da regra do WAF. |
20000001 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225",
"Id": 20000001
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 400 | Rule.NotExist | The specified rule does not exist. | The specified rule does not exist in the current context or system configuration. Please verify the existence of the rule identifier and ensure it has been correctly defined or implemented. |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 400 | SpecifiedVersionReadOnly | The specified version number is read-only and cannot be modified. | The specified version number is read-only and cannot be modified. |
| 403 | %s.NotSupport | The specified resource type %s is not supported. | The specified resource type is not supported. To use this type of resource, please contact us. |
| 403 | %s.OverQuota | The quantity of %s exceeds the quota. | The amount of this resource exceeds the quota. If you need to apply for more quota, please contact us. |
| 403 | %s.WrongValueMatched | The value of specified parameter %s can not pass the matching check. | The value of the specified parameter can not pass the matching check. If you determine that you need to use this parameter value, please contact us. |
| 403 | Rule.Config.Malformed | The format of the rule configuration is invalid.Check the configuration for syntax errors or structural inconsistencies and correct them to meet the requirements. | The format of the rule configuration is invalid.Check the configuration for syntax errors or structural inconsistencies and correct them to meet the requirements. |
| 403 | Rule.Config.Noncompliance | The specified rule configuration does not meet the compliance requirements.Check and adjust your configurations. | The specified rule configuration does not meet the compliance requirements.Check and adjust your configurations. |
| 403 | Rule.Position.Invalid | The specified position for the rule is invalid.Check and adjust the configuration to make sure it meets the requirements. | The specified position for the rule is invalid.Check and adjust the configuration to make sure it meets the requirements. |
| 403 | Rule.Name.AlreadyExists | The specified rule name already exists.Try again with a unique name or modify the existing rule name. | The specified rule name already exists.Try again with a unique name or modify the existing rule name. |
| 403 | Expression.Invalid | The specified expression is invalid: %s. | The specified expression is invalid. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.