All Products
Search
Document Center

Security Center:ModifyCreateVulWhitelist

Last Updated:Feb 20, 2024

Adds vulnerabilities to the whitelist. After you add the vulnerabilities to the whitelist, Security Center no longer generates alerts for the vulnerabilities.

Debugging

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

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:ModifyCreateVulWhitelistWrite
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
WhiteliststringYes

The information about the vulnerability that you want to add to the whitelist. The value is a JSON string that contains the following fields:

  • Status: the status of the vulnerability.

  • GmtLast: the timestamp when the vulnerability was last detected. Unit: milliseconds.

  • LaterCount: the number of vulnerabilities that have the medium priority.

  • AsapCount: the number of vulnerabilities that have the high priority.

  • Name: the name of the vulnerability.

  • Type: the type of the vulnerability. Valid values:

    • cve: Linux software vulnerability
    • sys: Windows system vulnerability
    • cms: Web-CMS vulnerability
    • app: application vulnerability
    • emg: urgent vulnerability
  • Related: the Common Vulnerabilities and Exposures (CVE) ID of the vulnerability.

  • HandledCount: the number of handled vulnerabilities.

  • AliasName: the alias of the vulnerability.

  • RuleModifyTime: the time when the vulnerability was last disclosed.

  • NntfCount: the number of vulnerabilities that have the low priority.

  • TotalFixCount: the total number of fixed vulnerabilities.

  • Tags: the tag that is added to the vulnerability.

Note You can call the DescribeGroupedVul operation to query the information about the vulnerability that you want 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"}]
ReasonstringNo

The reason why you add the vulnerability to the whitelist.

This vulnerability is not harmful
TargetInfostringNo

The applicable scope of the whitelist. The value of this parameter is in the JSON format and contains the following fields:

  • type: the type of the applicable scope. Valid values:

    • GroupId: the ID of a server group
    • Uuid: the UUID of a server
  • uuids: the UUIDs of servers

  • groupIds: the IDs of server groups

Note If you leave this parameter empty, all servers are added to the whitelist. If you set the type field to GroupId, you must also specify the groupIds field. If you set type to Uuid, you must specify the uuids parameter.
{"type":"GroupId","uuids":[],"groupIds":[10782678]}

Response parameters

ParameterTypeDescriptionExample
object

The data returned.

RequestIdstring

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

6B23A612-D997-5176-8C3B-D640DFD65772
VulWhitelistListobject []

An array that consists of the information about the whitelist.

Idlong

The ID of the whitelist.

30376

Examples

Sample success responses

JSONformat

{
  "RequestId": "6B23A612-D997-5176-8C3B-D640DFD65772",
  "VulWhitelistList": [
    {
      "Id": 30376
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400InnerErrorInnerError-
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

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

Change history

Change timeSummary of changesOperation
2022-08-01The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
2022-08-01The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400