GET /api/config_reports
列出所有报告

参数

参数名字 描述
search
选填

过滤结果


Value:

Must be String

order
选填

结果排序


Value:

Must be String

page
选填

页数


Value:

Must be String

per_page
选填

每个请求中的条目数


Value:

Must be String


GET /api/config_reports/:id
显示报告

参数

参数名字 描述
id
必填

Value:

Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/config_reports
生成报告

参数

参数名字 描述
config_report
必填

Value:

Must be a Hash

config_report[host]
必填

主机名或证书名称


Value:

Must be String

config_report[reported_at]
必填

报告的 UTC 时间


Value:

Must be String

config_report[status]
必填

状态类型总计哈希


Value:

Must be Hash

config_report[metrics]
必填

报告指标散列,可只为 {}。


Value:

Must be Hash

config_report[logs]
选填 , 允许空值

日志散列的自选阵列


Value:

Must be an array of any type


DELETE /api/config_reports/:id
删除报告

参数

参数名字 描述
id
必填

Value:

Must be String


GET /api/hosts/:host_id/config_reports/last
显示主机的最新报告

参数

参数名字 描述
id
必填

Value:

Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.