GET /api/config_reports
Elenca tutte le notifiche

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

search
opzionale

filtra i risultati

Validations:

  • Must be a String

order
opzionale

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
opzionale

Numero pagina, iniziando da 1

Validations:

  • Must be a number.

per_page
opzionale

Numero di risultati per pagina da ritornare

Validations:

  • Must be a number.

Search fields

Field name Tipo Possible values
applied
environment
eventful true, false
failed
failed_restarts
host
host_id
hostgroup
hostgroup_fullname
hostgroup_title
last_report
location
log
organization
origin
pending
reported
resource
restarted
skipped

GET /api/config_reports/:id
Mostra una notifica

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

id
richiesto

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 una notifica

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

config_report
richiesto

Validations:

  • Must be a Hash

config_report[host]
richiesto

Hostname o certname

Validations:

  • Must be a String

config_report[reported_at]
richiesto

Orario UTC della notifica

Validations:

  • Must be a String

config_report[status]
richiesto

Hash dei totali del tipo di stato

Validations:

  • Must be a Hash

config_report[metrics]
richiesto

Hash per le metriche della notifica, può essere solo {}

Validations:

  • Must be a Hash

config_report[logs]
opzionale , consentito nil

Insieme opzionale di log hash

Validations:

  • Must be an array of any type


DELETE /api/config_reports/:id
Cancella una notifica

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

id
richiesto

Validations:

  • Must be a String


GET /api/hosts/:host_id/config_reports/last
Mostra l'ultima notifica per un host

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

id
richiesto

Validations:

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