GET /api/config_reports
List all reports

Params

Param name Description
search
optional

filter results

Validations:

  • String

order
optional

sort results

Validations:

  • String

page
optional

paginate results

Validations:

  • String

per_page
optional

number of entries per request

Validations:

  • String


GET /api/config_reports/:id
Show a report

Params

Param name Description
id
required

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, ‘‘, ‘-’ with no leading or trailing space..


POST /api/config_reports
Create a report

Params

Param name Description
config_report
required

Validations:

  • Hash

config_report[host]
required

Hostname or certname

Validations:

  • String

config_report[reported_at]
required

UTC time of report

Validations:

  • String

config_report[status]
required

Hash of status type totals

Validations:

  • Hash

config_report[metrics]
required

Hash of report metrics, can be just {}

Validations:

  • Hash

config_report[logs]
optional , nil allowed

Optional array of log hashes

Validations:

  • Must be an array of any type


DELETE /api/config_reports/:id
Delete a report

Params

Param name Description
id
required

Validations:

  • String


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

Params

Param name Description
id
required

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, ‘‘, ‘-’ with no leading or trailing space..