GET /api/v2/discovery_rules
Alle Entdeckungsregeln auflisten

Parameter

Parametername Beschreibung
search
optional

Ergebnisse filtern

Validations:

  • Must be String

order
optional

Ergebnisse sortieren

Validations:

  • Must be String

page
optional

Ergebnisse nummerieren

Validations:

  • Must be String

per_page
optional

Anzahl der Einträge pro Anfrage

Validations:

  • Must be String


GET /api/v2/discovery_rules/:id
Entdeckungsregel anzeigen

Parameter

Parametername Beschreibung
id
verpflichtend

Validations:

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


POST /api/v2/discovery_rules
Entdeckungsregel erstellen

Parameter

Parametername Beschreibung
discovery_rule
optional , nil erlaubt

Validations:

  • Must be a Hash

discovery_rule[name]
verpflichtend

represents rule name shown to the users

Validations:

  • Must be String

discovery_rule[search]
verpflichtend

query to match discovered hosts for the particular rule

Validations:

  • Must be String

discovery_rule[hostgroup_id]
verpflichtend

the hostgroup that is used to auto provision a host

Validations:

  • Must be Integer

discovery_rule[hostname]
optional , nil erlaubt

defines a pattern to assign human-readable hostnames to the matching hosts

Validations:

  • Must be String

discovery_rule[max_count]
optional , nil erlaubt

enables to limit maximum amount of provisioned hosts per rule

Validations:

  • Must be Integer

discovery_rule[priority]
optional , nil erlaubt

puts the rules in order, low numbers go first. Must be greater then zero

Validations:

  • Must be Integer

discovery_rule[enabled]
optional , nil erlaubt

flag is used for temporary shutdown of rules

Validations:

  • Must be 'true' or 'false' or '1' or '0'


PUT /api/v2/discovery_rules/:id
Regel aktualisieren

Parameter

Parametername Beschreibung
id
verpflichtend

Validations:

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

discovery_rule
optional , nil erlaubt

Validations:

  • Must be a Hash

discovery_rule[name]
optional

represents rule name shown to the users

Validations:

  • Must be String

discovery_rule[search]
optional

query to match discovered hosts for the particular rule

Validations:

  • Must be String

discovery_rule[hostgroup_id]
optional

the hostgroup that is used to auto provision a host

Validations:

  • Must be Integer

discovery_rule[hostname]
optional , nil erlaubt

defines a pattern to assign human-readable hostnames to the matching hosts

Validations:

  • Must be String

discovery_rule[max_count]
optional , nil erlaubt

enables to limit maximum amount of provisioned hosts per rule

Validations:

  • Must be Integer

discovery_rule[priority]
optional , nil erlaubt

puts the rules in order, low numbers go first. Must be greater then zero

Validations:

  • Must be Integer

discovery_rule[enabled]
optional , nil erlaubt

flag is used for temporary shutdown of rules

Validations:

  • Must be 'true' or 'false' or '1' or '0'


DELETE /api/v2/discovery_rules/:id
Regel löschen

Parameter

Parametername Beschreibung
id
verpflichtend

Validations:

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