Adds a vulnerability whitelist. Vulnerabilities added to the whitelist are no longer displayed in the alert list.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ModifyCreateVulWhitelist |
update |
*VulWhitelist
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Whitelist |
string |
Yes |
The information about the vulnerability to add to the whitelist. The value is a JSON string that contains the following fields:
Note
You can call the DescribeGroupedVul operation to obtain the vulnerability information to add to the whitelist. |
[{"Status":0,"GmtLast":1662281929000,"LaterCount":0,"AsapCount":1,"Name":"oval:com.redhat.rhsa:def:20172836","Type":"cve","Related":"CVE-2017-14491,CVE-2017-14492,CVE-2017-14493,CVE-2017-14494,CVE-2017-14495,CVE-2017-14496","HandledCount":1,"AliasName":"RHSA-2017:2836-Critical: dnsmasq security update","RuleModifyTime":1535542395000,"NntfCount":0,"TotalFixCount":196668,"Tags":"Exploit Exists,Code Execution"},{"Status":0,"GmtLast":1662281933000,"LaterCount":0,"AsapCount":1,"Name":"oval:com.redhat.rhsa:def:20173075","Type":"cve","Related":"CVE-2017-13089,CVE-2017-13090","HandledCount":1,"AliasName":"RHSA-2017:3075-Important: wget security update","RuleModifyTime":1551432867000,"NntfCount":0,"TotalFixCount":369136,"Tags":"Code Execution"}] |
| Reason |
string |
No |
The reason for adding the vulnerability whitelist. |
This vulnerability is not harmful |
| TargetInfo |
string |
No |
The scope in which the whitelist takes effect. The value is a JSON string that contains the following fields:
Note
If this parameter is left empty, the whitelist takes effect on all hosts. If type is set to GroupId, groupIds cannot be empty. If type is set to Uuid, uuids cannot be empty. |
{"type":"Uuid","uuids":["b31a708f-5fea-426e-bebe-a7b0893****","1f749687-3b5d-4e11-8140-d964673****"],"groupIds":[]} |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. Different requests must use different tokens. The token supports only ASCII characters and cannot exceed 64 characters in length. |
|
| ResourceDirectoryAccountId |
integer |
No |
The Alibaba Cloud account ID of the member accounts in the resource folder. Note
Invoke the DescribeMonitorAccounts operation to obtain this parameter. |
|
|
No |
Specifies whether to perform only a dry run. Valid values:
Default value: false. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID, which is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot issues. |
6B23A612-D997-5176-8C3B-D640DFD65772 |
| VulWhitelistList |
object |
The vulnerability whitelist information. Important This parameter is not returned when vulnerability whitelists are added or updated in batches. It is returned only when a single vulnerability whitelist entry is added or updated. |
|
| Id |
integer |
The vulnerability whitelist ID. |
1002 |
Examples
Success response
JSON format
{
"RequestId": "6B23A612-D997-5176-8C3B-D640DFD65772",
"VulWhitelistList": {
"Id": 1002
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InnerError | InnerError | |
| 400 | RdCheckNoPermission | Resource directory account verification has no permission. | |
| 400 | IdempotentParameterMismatch | 相同的 ClientToken 被用于不同的请求参数。 | |
| 500 | ServerError | ServerError | |
| 500 | RdCheckInnerError | Resource directory account service internal error. | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
| 409 | IdempotentRequestInProgress | 使用相同 ClientToken 的请求正在处理中。 |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.