Examples

POST /api/config_reports
{
  "config_report": {}
}
403
{
  "error": {
    "message": "Access denied",
    "details": "Missing one of the required permissions: upload_config_reports"
  }
}

Params

Param Name Description
location_id
Optional

Abast per ubicacions

Validations:

  • Must be a Integer

organization_id
Optional

Abast per organitzacions

Validations:

  • Must be a Integer

config_report
Required

Validations:

  • Must be a Hash

config_report[host]
Required

Hostname or certname

Validations:

  • Must be a String

config_report[reported_at]
Required

Hora UTC de l’informe

Validations:

  • Must be a String

config_report[status]
Required

Hash of status type totals

Validations:

  • Must be a Hash

config_report[metrics]
Required

Hash of report metrics, can be just {}

Validations:

  • Must be a 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