GET /api/reports
Lister tous les rapports

Params

Param Name Description
search
Optional

filtrer les résultats


Value: Must be String
order
Optional

trier les resultats


Value: Must be String
page
Optional

paginer les resultats


Value: Must be String
per_page
Optional

nombre d’entier par requête


Value: Must be String

GET /api/reports/:id
Afficher un rapport

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
Créer un rapport

Params

Param Name Description
report
Required

Value: Must be a Hash
report[host]
Required

Nom d’hôte ou nom du certificat


Value: Must be String
report[reported_at]
Required

Date UTC du rapport


Value: Must be String
report[status]
Required

Hash des types de statut Puppet (Ex.: failed/skipped) et des nombres d’items


Value: Must be Hash
report[metrics]
Required

Hash des métriques de rapport, peut être simplement {}


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

Optionnel : tableau de hash des logs


Value: Must be an array of any type

DELETE /api/reports/:id
Supprimer un rapport

Params

Param Name Description
id
Required

Value: Must be String

GET /api/hosts/:host_id/reports/last
Afficher le dernier rapport d'un hôte

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.