Creates a vulnerability whitelist. The vulnerabilities that are added to the whitelist no longer trigger alerts.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyCreateVulWhitelist

The operation that you want to perform. Set the value to ModifyCreateVulWhitelist.

Whitelist String No {"Status":1,"Type":"sys","GmtLast":1639365771000,"LaterCount":0,"HandledCount":0,"AliasName":"2019-09 security update for Windows Server 2008 for x86-based systems (KB4474419)","AsapCount":1,"NntfCount":0,"Name":"4474419"}

The information about the vulnerability that you want to add to the whitelist. The value of this parameter is a JSON string.

Reason String No The vulnerability does not pose threats

The reason for adding the vulnerability to the whitelist.

TargetInfo String No null

The condition based on which the vulnerability is added to the whitelist.

Response parameters

Parameter Type Example Description
RequestId String 6B23A612-D997-5176-8C3B-D640DFD65772

The ID of the request, which is used to locate and troubleshoot issues.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ModifyCreateVulWhitelist
&Whitelist={"Status":1,"Type":"sys","GmtLast":1639365771000,"LaterCount":0,"HandledCount":0,"AliasName":"2019-09 security update for Windows Server 2008 for x86-based systems (KB4474419)","AsapCount":1,"NntfCount":0,"Name":"4474419"}
&Reason=The vulnerability does not pose threats
&TargetInfo={"groupIds":[45111,23512],"uuids":['292dcc68-b60b-4bbd-a0be-beaa1622****','7e9d87c8-4e54-41d3-a028-9ebe4e83****'],"type":"GroupId"}
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifyCreateVulWhitelistResponse>
    <RequestId>6B23A612-D997-5176-8C3B-D640DFD65772</RequestId>
</ModifyCreateVulWhitelistResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "6B23A612-D997-5176-8C3B-D640DFD65772"
}

Error codes

For a list of error codes, visit the API Error Center.