POST /api/reports { "report": { "host": "rhel6n01.corp.com", "reported_at": "2010-11-19 02:39:04 UTC", "metrics": {}, "status": { "applied": 0, "failed": 0, "failed_restarts": 0, "pending": 0, "restarted": 0, "skipped": 0 }, "logs": [ { "log": { "sources": { "source": "Puppet" }, "messages": { "message": "Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find node 'rhel6n01.corp.com'; cannot compile" }, "level": "err" } }, { "log": { "sources": { "source": "Puppet" }, "messages": { "message": "Using cached catalog" }, "level": "notice" } }, { "log": { "sources": { "source": "Puppet" }, "messages": { "message": "Could not retrieve catalog; skipping run" }, "level": "err" } } ] } } 403 { "error": { "message": "Access denied", "details": "Missing one of the required permissions: upload_config_reports", "missing_permissions": [ "upload_config_reports" ] } }
Param Name | Description |
---|---|
location_id Optional |
Set the current location context for the request Validations:
|
organization_id Optional |
Set the current organization context for the request Validations:
|
report Required |
Validations:
|
report[host] Required |
Hostname or certname Validations:
|
report[reported_at] Required |
Hora UTC de l’informe Validations:
|
report[status] Required |
Hash of status type totals Validations:
|
report[metrics] Required |
Hash of report metrics, can be just {} Validations:
|
report[logs] Optional , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span> |
Optional array of log hashes Validations:
|