GET /api/config_reports
List all reports

參數

參數名字 描述
search
選填

篩選結果

Validations:

  • Must be String

order
選填

排序結果

Validations:

  • Must be String

page
選填

編頁結果

Validations:

  • Must be String

per_page
選填

每個請求的項目數量

Validations:

  • Must be String


GET /api/config_reports/:id
Show a report

參數

參數名字 描述
id
必填

Validations:

  • 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
必填

Validations:

  • Must be a Hash

config_report[host]
必填

Hostname or certname

Validations:

  • Must be String

config_report[reported_at]
必填

UTC time of report

Validations:

  • Must be String

config_report[status]
必填

Hash of status type totals

Validations:

  • Must be Hash

config_report[metrics]
必填

Hash of report metrics, can be just {}

Validations:

  • Must be Hash

config_report[logs]
選填 , 允許空值

Optional array of log hashes

Validations:

  • Must be an array of any type


DELETE /api/config_reports/:id
Delete a report

參數

參數名字 描述
id
必填

Validations:

  • Must be String


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

參數

參數名字 描述
id
必填

Validations:

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