获取基线检测项的列表

最近更新时间: 2026-09-17 00:02:46

1. 接口描述

接口请求域名: cwp.api3.fincloud.tencent.cn。

获取基线检测项的列表

默认接口请求频率限制:20次/秒。

接口更新时间:2022-10-13 10:14:09。

接口既验签名又鉴权。

2. 输入参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数

参数名称 必选 允许NULL 类型 描述
Action String 公共参数,本接口取值:DescribeBaselineItemDetectList
Version String 公共参数,本接口取值:2018-02-28
Region String 公共参数,地域信息本接口不需要传递此参数。
By String 可选排序列: [HostCount
Filters Array of Filter
  • HostId - string - 是否必填:否 - 主机Id
  • RuleId - int64 - 是否必填:否 - 规则Id
  • PolicyId - int64 - 是否必填:否 - 规则Id
  • ItemName - string - 是否必填:否 - 项名称
  • DetectStatus - int - 是否必填:否 - 检测状态
  • Level - int - 是否必填:否 - 风险等级
  • StartTime - string - 是否必填:否 - 开始时间
  • EndTime - string - 是否必填:否 - 结束时间

  • 示例值:查看
    Limit Int64 限制条数,默认10,最大100
    示例值: 10
    Offset Int64 偏移量,默认0
    示例值: 0
    Order String 排序方式: [ASC:升序

    3. 输出参数

    参数名称 类型 描述
    List Array of BaselineItemDetect 数据列表
    示例值:查看
    Total Int64 总数
    示例值: 10
    RequestId String 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。

    4. 错误码

    以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码

    错误码 描述
    InternalError 内部错误。
    InvalidParameter 参数错误。
    FailedOperation 操作失败。

    5. 示例

    示例1 全部检测项视角结果

    输入示例

    POST / HTTP/1.1
    Host: cwp.api3.fincloud.tencent.cn
    Content-Type: application/json
    X-TC-Action: DescribeBaselineItemDetectList
    <Public request parameters>
    
    {}
    

    输出示例

    {"Response":{"List":[{"DetectResult":"result***","DetectStatus":3,"FirstTime":"2022-07-18 13:33:12","FixMethod":"Run the following command to set the permissions on/etc/shadow: \n# chown root:root /etc/shadow#chmod000/etc/shadow\n","HostCount":1,"ItemDesc":"/etc/shadow files are used to store information about user accounts that is critical to the security of these accounts, such as hash passwords and other security information. ","ItemId":2162,"ItemName":" Ensure permissions to configure/etc/shadow ","LastTime":"2022-07-21 21:25:01","Level":2,"NotPassedHostCount":0,"PassedHostCount":1,"RuleId":13,"RuleName":" International Standards-CentOS 7 Security Baseline Check Level1"},"RequestId":" d93119fb-5ea9 - 4dc4 - 8e1a-b 878dc67c ","Total":169}}