Modify Information Security Filter Rules - ModifyWafResponseFilter
Overview
Modify Information Security Filter Rules
Definition
Public Parameters
| Parameter Name | Type | Description Information | Required | 
|---|---|---|---|
| Action | string | Corresponding API command name, the current API is ModifyWafResponseFilter. | Yes | 
| PublicKey | string | The user’s public key can be obtained from Console  | Yes | 
| Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes | 
Request Parameters
| Parameter Name | Type | Description Information | Required | 
|---|---|---|---|
| ProjectId | string | Project ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface. | No | 
| ID | int | The rule ID to be modified | Yes | 
| FullDomain | string | The domain to operate | Yes | 
| Name | string | Rule Name | Yes | 
| Type | string | Filter Type; Optional: Status (Status Code), Sensitive (Sensitive Content), Customize (Custom String) | Yes | 
| RuleAction | string | Discard response or disguise content; Optional: DROP (discard response), DISGUISE (disguise content) | Yes | 
| Content | string | Filter content. When the filter type is Sensitive, it is optional, with optional values: Identity (ID number), TelNum (mobile number), Email (email), BankNum (bank card number). | No | 
| DisguiseFile | string | Fake Response Content | No | 
| Operator | string | Operator | No | 
Response Field
| Field Name | Type | Description Information | Required | 
|---|---|---|---|
| RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes | 
| Action | string | Operation command name. | Yes | 
| Message | string | Returns an error message, providing detailed description when RetCodeis non-zero. | No | 
Example
Request Example
https://api.surfercloud.com/?Action=ModifyWafResponseFilter
&ProjectId=org-xxx
&ID=6
&FullDomain=www.test.com
&Name=test
&Type=Status
&RuleAction=DROP
&Content=404
&Operator=AUDDwBloResponse Example
{
  "Action": "ModifyWafResponseFilterResponse",
  "RetCode": 0
}