GET /api/config_reports
Lista alla rapporter

Params

Param Name Description
search
Optional

filtrera resultat

Validations:

  • Must be String

order
Optional

sortera resultat

Validations:

  • Must be String

page
Optional

paginate results

Validations:

  • Must be String

per_page
Optional

antal poster per begäran

Validations:

  • Must be String


GET /api/config_reports/:id
Visa en rapport

Params

Param Name Description
id
Required

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
Skapa en rapport

Params

Param Name Description
config_report
Required

Validations:

  • Must be a Hash

config_report[host]
Required

Hostname or certname

Validations:

  • Must be String

config_report[reported_at]
Required

UTC time of report

Validations:

  • Must be String

config_report[status]
Required

Hash of status type totals

Validations:

  • Must be Hash

config_report[metrics]
Required

Hash of report metrics, can be just {}

Validations:

  • Must be Hash

config_report[logs]
Optional , <span class="translation_missing" title="translation missing: sv-SE.apipie.nil_allowed">Nil Allowed</span>

Optional array of log hashes

Validations:

  • Must be an array of any type


DELETE /api/config_reports/:id
Radera en rapport

Params

Param Name Description
id
Required

Validations:

  • Must be String


GET /api/hosts/:host_id/config_reports/last
Visa senaste rapporten för en värd

Params

Param Name Description
id
Required

Validations:

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