Modifies an alert whitelist rule of sensitive files that are detected by using the agentless detection feature.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ConfigId | long | No | The ID of the whitelist rule. If you do not specify this parameter, a whitelist rule is created. | 1 |
EventName | string | No | The name of the alert.
| ALL |
Field | string | No | The field that you want to use in the whitelist rule. | fileMd5 |
Operator | string | No | The logical operator that you want to use in the whitelist rule.
| strEqual |
FieldValue | string | No | The value of the field that you want to use in the whitelist rule. | b2cf9747ee49d8d9b105cf16e078cc16 |
TargetType | string | No | The type of the assets on which you want the whitelist rule to take effect. Valid values:
| ALL |
TargetValue | string | No | The assets on which you want the whitelist rule to take effect. Valid values:
| ALL |
Source | string | No | The feature to which this operation belongs.
| agentless |
Response parameters
Examples
Sample success responses
JSON
format
{
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "A4EB8B1C-1DEC-5E18-BCD0-XXXXXXXXX",
"HttpStatusCode": 200
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | NoPermission | no permission | - |
400 | UnknownError | UnknownError | - |
400 | DuplicateRule | Duplicated rule, please check whether the same rule already exists. | - |
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history