GET /api/reports
List all reports

Params

Param Name Description
search
Optional

filter results


Value: Must be String
order
Optional

sort results


Value: Must be String
page
Optional

paginate results


Value: Must be String
per_page
Optional

number of entries per request


Value: Must be String

GET /api/reports/:id
Show a report

Params

Param Name Description
id
Required

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/reports
Create a report

Params

Param Name Description
report
Required

Value: Must be a Hash
report[host]
Required

Hostname or certname


Value: Must be String
report[reported_at]
Required

UTC time of report


Value: Must be String
report[status]
Required

Hash of status type totals


Value: Must be Hash
report[metrics]
Required

Hash of report metrics, can be just {}


Value: Must be Hash
report[logs]
Optional , <span class="translation_missing" title="translation missing: it.apipie.nil_allowed">Nil Allowed</span>

Optional array of log hashes


Value: Must be an array of any type

DELETE /api/reports/:id
Delete a report

Params

Param Name Description
id
Required

Value: Must be String

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

Params

Param Name Description
id
Required

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