获取基线项检测结果列表

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

1. 接口描述

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

获取基线项检测结果列表

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

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

接口既验签名又鉴权。

2. 输入参数

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

参数名称 必选 允许NULL 类型 描述
Action String 公共参数,本接口取值:DescribeBaselineItemList
Version String 公共参数,本接口取值:2018-02-28
Region String 公共参数,地域信息本接口不需要传递此参数。
By String 可选排序列
示例值: LastTime
Filters Array of Filter
  • PolicyId - int64 - 是否必填:否 - 策略Id
  • RuleId - int64 - 是否必填:否 - 规则Id
  • HostId - string - 是否必填:否 - 主机Id
  • HostName - string - 是否必填:否 - 主机名
  • HostIp - string - 是否必填:否 - 主机IP
  • ItemId - String - 是否必填:否 - 检测项Id
  • ItemName - String - 是否必填:否 - 项名称
  • DetectStatus - int - 是否必填:否 - 检测状态[0:未通过
  • Limit Int64 限制条数,默认10,最大100
    示例值: 10
    Offset Int64 偏移量,默认0
    示例值: 0
    Order String 排序方式: [ASC:升序

    3. 输出参数

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

    4. 错误码

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

    错误码 描述
    InternalError 内部错误。
    InvalidParameter 参数错误。

    5. 示例

    示例1 检测项结果

    输入示例

    POST / HTTP/1.1
    Host: cwp.api3.fincloud.tencent.cn
    Content-Type: application/json
    X-TC-Action: DescribeBaselineItemList
    <Public request parameters>
    
    {
        "Limit": "1",
        "Offset": "1"
    }
    

    输出示例

    {"Response ":{" List":[{"CanBeFixed ": 0," CategoryId ": 19," DetectResultDesc ":" idesc "," DetectStatus ": 3," FirstTime ":" 2022 - 08 - 06 09:43:07 "," FixMethod ":" Run the following command to disable named: \n #systemctl disable bind 9 "," HostId ":"044889 f8-d6a2 - 4fc3-a8a8-c114b6 f5266b","HostIp":"www.example.com","HostName":" Functional Test ubuntu 16 Bug Fix v_txmitan "," ItemDesc ":" Domain Name System DNS is a hierarchical naming system that maps names to IP addresses to connect to computers, services and other resources on the network.\ n "," ItemId ": 3077," ItemName ":" Ensure that DNS services are not enabled "," LastTime ":" 2022 - 08 - 22 09:48:42 "," Level ": 2," MachineExtraInfo ":{"HostName":"demo_***"," InstanceID ":" ins-bask ***"," NetworkName ":" vpc-3gov ***"," NetworkType ": 0," PrivateIP ":" www.example.com "," WanIP ":" 192.168.0.204 "}," RuleName ":" International Standards-Ubuntu 16 Security Baseline Check Level 1 "," Uuid ":"044889 f8-d6a2 - 4fc3-a8a8-c114b6 f5266b"," WanIp":" www.example.com "}]," RequestId":" 3a 2b 20bc-2e93 - 46b3 - 8bb7-b655 aa 249 c00"," Total": 8412}}