ListCheckItemWarningSummary - 获取基线检查项风险统计数据

更新时间:
复制 MD 格式

分页查询检查项产生风险的统计数据。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

yundun-sas:ListCheckItemWarningSummary

list

*全部资源

*

请求参数

名称

类型

必填

描述

示例值

RiskType

string

基线分类名称。

weak_password

CheckType

string

检查项分类名称。

hc.check.type.attack_defense

CheckWarningStatus

integer

风险状态。默认为 null,查询全部状态。取值:

  • 1:未通过

  • 3:已通过

  • 6:已加白

  • 8:已修复

3

CheckLevel

string

风险等级。默认为 null,查询所有等级。取值:

  • high:高危

  • medium:中危

  • low:低危

medium

CheckItemFuzzy

string

检查项名称模糊匹配。

password

ContainerFieldName

string

容器安全查询参数名称。

clusterId

ContainerFieldValue

string

容器安全查询参数值。

c471f0f61b9c04f8380556e922cf1****

Lang

string

请求和接收消息的语言类型。默认值为 zh。取值:

  • zh:中文

  • en:英文

zh

CurrentPage

integer

设置从返回结果的第几页开始显示查询结果。默认值为 1,表示从第 1 页开始显示。

1

PageSize

integer

分页查询时,每页显示的数据最大条数。每页默认显示的数据条数为 20 条,PageSize 参数值为空时,将默认返回 20 条数据。

说明

建议 PageSize 取值不要为空。

20

GroupId

integer

要查询的资产分组 ID。

说明

您可以调用 DescribeAllGroups 接口获取该参数。

1161****

Source

string

数据来源。默认值为 default。取值:

  • agentless:无代理检测

  • default:主机基线

agentless

UuidList

array

指定要查询的服务器 UUID 列表。

说明

您可以调用 DescribeCloudCenterInstances 接口获取服务器的 UUID。

string

指定要查询的服务器 UUID。

说明

您可以调用 DescribeCloudCenterInstances 接口获取服务器的 UUID。

4fe8e1cd-3c37-4851-b9de-124da32c****

CheckWarningStatusList

array

风险等级列表,当和参数 CheckWarningStatus 同时填充时,仅 CheckWarningStatus 参数生效。

integer

风险状态,取值:

  • 1:未通过

  • 3:已通过

  • 6:已加白

1

StartTime

integer

筛选告警的起始时间,仅在查询历史已处理告警场景时生效。采用 Unix 时间戳,单位为毫秒。

1732793158366

ResourceDirectoryAccountId

integer

资源目录成员账号 ID(阿里云账号)。

说明

调用 DescribeMonitorAccounts 接口可以获取该参数。

1232428423234****

返回参数

名称

类型

描述

示例值

object

检查项风险统计分页列表。

List

array<object>

检查项风险统计信息列表。

object

检查项风险统计信息。

RiskType deprecated

string

基线分类。

weak_password

Alias deprecated

string

基线分类名称。

week_pa****

CheckId

integer

检查项 id。

696

CheckItem

string

检查项描述。

Config the Event Audit policys

CheckLevel

string

检查项风险等级。取值:

  • high:高危

  • medium:中危

  • low:低危

high

CheckType

string

检查项类别。

Security audit

Advice

string

检查项建议。

In the Administrative Tools window, double-click Local Security Policy. In the Local Security Policy window that appears, choose Security Settings\\Local Policies\\Audit Policy, configure all audit policies as: `Success, Failure`.

Description

string

检查项详情描述。

Config the Event Audit policys

Status

integer

检查项风险状态。取值:

  • 1:未通过

  • 3:已通过

  • 6:已加白

  • 8:已修复

1

WarningMachineCount

integer

检查项风险影响的机器数量。

20

ContainerCheckItem

boolean

检查项是否属于容器运行时类别。取值:

  • true:是

  • false:否

true

AffiliatedRiskTypes

array

归属的基线分类列表。

string

归属的基线分类。

CIS Compliance checks

AffiliatedRisks

array

归属的基线列表。

string

归属的基线。

CIS Ubuntu Linux 14 LTS Benchmark

EnableRisks

array

检查项已开启的基线列表。

string

检查项已开启的基线。

CIS Ubuntu Linux 14 LTS Benchmark

PageInfo

object

查询结果的分页信息。

CurrentPage

integer

分页查询时,当前页的页码。

1

PageSize

integer

分页查询时,显示的每页数据的最大条数。

20

TotalCount

integer

查询到的检查项的总数量。

149

Count

integer

查询到的检查项的当前页显示数据条数。

4

RequestId

string

本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。

DC97C9EC-4B7D-5EFF-8A5E-A5CCC9ED****

示例

正常返回示例

JSON格式

{
  "List": [
    {
      "RiskType": "weak_password",
      "Alias": "week_pa****",
      "CheckId": 696,
      "CheckItem": "Config the Event Audit policys",
      "CheckLevel": "high",
      "CheckType": "Security audit",
      "Advice": "In the Administrative Tools window, double-click Local Security Policy. In the Local Security Policy window that appears, choose Security Settings\\\\Local Policies\\\\Audit Policy, configure all audit policies as: `Success, Failure`.",
      "Description": "Config the Event Audit policys",
      "Status": 1,
      "WarningMachineCount": 20,
      "ContainerCheckItem": true,
      "AffiliatedRiskTypes": [
        "CIS Compliance checks"
      ],
      "AffiliatedRisks": [
        "CIS Ubuntu Linux 14 LTS Benchmark"
      ],
      "EnableRisks": [
        "CIS Ubuntu Linux 14 LTS Benchmark\n"
      ]
    }
  ],
  "PageInfo": {
    "CurrentPage": 1,
    "PageSize": 20,
    "TotalCount": 149,
    "Count": 4
  },
  "RequestId": "DC97C9EC-4B7D-5EFF-8A5E-A5CCC9ED****"
}

错误码

HTTP status code

错误码

错误信息

描述

400 RdCheckNoPermission Resource directory account verification has no permission. 资源目录账号校验无权限。
500 ServerError ServerError 服务故障,请稍后重试!
500 RdCheckInnerError Resource directory account service internal error. 资源目录账号服务内部错误。
403 NoPermission caller has no permission 当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情