GET /api/config_reports
List all 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
Show a report

參數

參數名字 描述
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
Create a report

參數

參數名字 描述
config_report
必填

Value:

Must be a Hash

config_report[host]
必填

Hostname or certname


Value:

Must be String

config_report[reported_at]
必填

UTC time of report


Value:

Must be String

config_report[status]
必填

Hash of status type totals


Value:

Must be Hash

config_report[metrics]
必填

Hash of report metrics, can be just {}


Value:

Must be Hash

config_report[logs]
選填 , 允許空值

Optional array of log hashes


Value:

Must be an array of any type


DELETE /api/config_reports/:id
Delete a report

參數

參數名字 描述
id
必填

Value:

Must be String


GET /api/hosts/:host_id/config_reports/last
Show the last report for a host

參數

參數名字 描述
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.