Edit Domain Blacklist - ModifyWafDomainBlackList
Overview
Edit Domain Blacklist
Definition
Public Parameters
| Parameter Name | Type | Description Information | Required |
|---|---|---|---|
| Action | string | Corresponding API command name, the current API is ModifyWafDomainBlackList. | 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 | Blacklist Record ID | Yes |
| Source | string | Blacklist source, User-defined(custom)/Machine behavior detection(bot)/ bot-rule/ auto (automatic blocking rules) | Yes |
| Type | string | Type: Domestic (internal), Overseas (oversea), Custom (custom) | Yes |
| ActionType | string | Action: captcha/forbidden | Yes |
| ExpireTime | int | Expiration time, that is, the effective duration, the unit is seconds, pass 0 for never expire. | Yes |
| FullDomain | string | The domain to which this record belongs | Yes |
| CIDRS.N | string | IP, subnet or IP range, pass array; Required when type is custom | No |
| RecordId | int | Domain Record ID | No |
| Remark | string | Note Information | No |
| Name | string | The name of this policy | 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 RetCode is non-zero. | No |
Example
Request Example
https://api.sigcalcloud.com/?Action=ModifyWafDomainBlackList
&ProjectId=org-xxx
FullDomain=www.test.com
&ID=252731
&Type=custom
ActionType=forbidden
&CIDRS.0=2.2.2.2
&ExpireTime=0
&Remark=test
&Source=gstrulLO
&Name=VAuukXKzResponse Example
{
"Action": "ModifyWafDomainBlackListResponse",
"RetCode": 0
}