All Products
Search
Document Center

Security Center:BatchUpdateMaliciousFileWhitelistConfig

Last Updated:Feb 20, 2024

Modifies multiple alert whitelist rules of sensitive files that are detected by using the agentless detection feature at a time.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ConfigListobject []No

The whitelist rules.

ConfigIdlongNo

The ID of the whitelist rule. If you do not specify this parameter, a whitelist rule is created.

1
EventNamestringNo

The name of the alert.

  • Set the value to ALL, which indicates all alert types.
ALL
FieldstringNo

The field that you want to use in the whitelist rule.

fileMd5
OperatorstringNo

The logical operator that you want to use in the whitelist rule.

  • Set the value to strEqual, which indicates the equality operator (=).
strEqual
FieldValuestringNo

The value of the field that you want to use in the whitelist rule.

b2cf9747ee49d8d9b105cf16e078cc16
TargetTypestringNo

The type of the assets on which you want the whitelist rule to take effect. Valid values:

  • ALL: all assets
  • SELECTION_KEY: selected assets
ALL
TargetValuestringNo

The assets on which you want the whitelist rule to take effect. Valid values:

  • ALL: all assets
  • Others: selected assets
ALL
SourcestringNo

The feature to which this operation belongs.

  • Set the value to agentless, which indicates the agentless detection feature.
agentless

Response parameters

ParameterTypeDescriptionExample
object

BaseResult

Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
Codestring

The response code. The status code 200 indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.

200
Messagestring

The returned message.

successful
RequestIdstring

The request ID.

7532B7EE-7CE7-5F4D-BF04-B12447DDCAE1
HttpStatusCodeinteger

The HTTP status code.

200

Examples

Sample success responses

JSONformat

{
  "Success": true,
  "Code": "200",
  "Message": "successful",
  "RequestId": "7532B7EE-7CE7-5F4D-BF04-B12447DDCAE1",
  "HttpStatusCode": 200
}

Error codes

HTTP status codeError codeError messageDescription
400NoPermissionno permission-
400UnknownErrorUnknownError-
400DuplicateRuleDuplicated rule, please check whether the same rule already exists.-
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.