文档首页> 云运维中心 COC> API参考> API> 补丁管理> 查询合规性报告详情
更新时间:2024-05-31 GMT+08:00
分享

查询合规性报告详情

功能介绍

分页获取节点补丁详情

URI

GET /v1/patch/instance/compliant/{instance_compliant_id}

表1 路径参数

参数

是否必选

参数类型

描述

instance_compliant_id

String

合规性报告id

表2 Query参数

参数

是否必选

参数类型

描述

offset

Integer

偏移量

最小值:1

最大值:1000000

缺省值:1

limit

Integer

每页数量

最小值:1

最大值:100

缺省值:10

title

String

补丁名称

sort_dir

String

排序

  • asc:升序
  • desc:降序

sort_key

String

排序字段 -installed_time:补丁安装时间

patch_status

String

补丁状态 INSTALLED:已安装 INSTALLED_OTHER:已安装其他 MISSING:缺失 REJECT:拒绝 FAILED:失败 PENDING_REBOOT:已安装待重启

classification

String

分类

severity_level

String

严重性级别

compliance_level

String

合规性级别

请求参数

响应参数

状态码: 200

表3 响应Body参数

参数

参数类型

描述

count

Long

总条数

compliance_items

Array of ComplianceItem objects

补丁合规信息

数组长度:0 - 1000

表4 ComplianceItem

参数

参数类型

描述

instance_id

String

节点id

title

String

补丁名称

classification

String

分类

severity_level

String

严重性级别

compliance_level

String

合规性级别

patch_detail

PatchDetail object

补丁详情

表5 PatchDetail

参数

参数类型

描述

installed_time

Long

安装时间

patch_baseline_id

String

补丁基线id

patch_baseline_name

String

补丁基线名称

patch_status

String

补丁状态

状态码: 500

表6 响应Body参数

参数

参数类型

描述

error_code

String

错误码

最小长度:8

最大长度:64

error_msg

String

错误描述

最小长度:2

最大长度:512

请求示例

请求指定报告下的补丁信息

/v1/patch/instance/compliant/3f5f3c944f50da3a7038457c5ff76c66?offset=1&limit=10

响应示例

状态码: 200

节点补丁信息

{
  "count" : 1,
  "compliance_items" : [ {
    "classification" : "",
    "compliance_level" : "UNSPECIFIED",
    "instance_id" : "string",
    "patch_detail" : {
      "installed_time" : 1713864585000,
      "patch_baseline_id" : "JX-f2d85e2554f7385cbbf2c23a01f41",
      "patch_baseline_name" : "COC-EulerOSDefaultPatchBaseline",
      "patch_status" : "PENDING_REBOOT"
    },
    "severity_level" : "",
    "title" : "string"
  } ]
}

状态码: 500

错误信息返回

{
  "error_code" : "string",
  "error_msg" : "string"
}

状态码

状态码

描述

200

节点补丁信息

500

错误信息返回

分享:

    相关文档

    相关产品