GET /api/config_reports
Llista tots els informes

Params

Param Name Description
search
Optional

filtra els resultats

Validations:

  • Must be String

order
Optional

ordena els resultats

Validations:

  • Must be String

page
Optional

pagina els resultats

Validations:

  • Must be String

per_page
Optional

Nombre d'entrades per petició

Validations:

  • Must be String


GET /api/config_reports/:id
Mostra un informe

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
Crea un informe

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

Hora UTC de l'informe

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: ca.apipie.nil_allowed">Nil Allowed</span>

Optional array of log hashes

Validations:

  • Must be an array of any type


DELETE /api/config_reports/:id
Suprimeix un informe

Params

Param Name Description
id
Required

Validations:

  • Must be String


GET /api/hosts/:host_id/config_reports/last
Mostra l'últim informe per un amfitrió

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.