GET /api/v2/discovery_rules
Llista totes les regles de descobriment

Params

Param Name Description
search
Optional

filtra els resultats


Value:

Must be String

order
Optional

ordena els resultats


Value:

Must be String

page
Optional

pagina els resultats


Value:

Must be String

per_page
Optional

Nombre d’entrades per petició


Value:

Must be String


GET /api/v2/discovery_rules/:id
Mostra una regla de descobriment

Params

Param Name Description
id
Required

Value:

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
Crea una regla de descobriment

Params

Param Name Description
discovery_rule
Optional , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span>

Value:

Must be a Hash

discovery_rule[name]
Required

represents rule name shown to the users


Value:

Must be String

discovery_rule[search]
Required

query to match discovered hosts for the particular rule


Value:

Must be String

discovery_rule[hostgroup_id]
Required

the hostgroup that is used to auto provision a host


Value:

Must be Integer

discovery_rule[hostname]
Optional , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span>

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


Value:

Must be String

discovery_rule[max_count]
Optional , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span>

enables to limit maximum amount of provisioned hosts per rule


Value:

Must be Integer

discovery_rule[priority]
Optional , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span>

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


Value:

Must be Integer

discovery_rule[enabled]
Optional , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span>

flag is used for temporary shutdown of rules


Value:

Must be ‘true’ or ‘false’


PUT /api/v2/discovery_rules/:id
Actualitza una regla

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.

discovery_rule
Optional , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span>

Value:

Must be a Hash

discovery_rule[name]
Optional

represents rule name shown to the users


Value:

Must be String

discovery_rule[search]
Optional

query to match discovered hosts for the particular rule


Value:

Must be String

discovery_rule[hostgroup_id]
Optional

the hostgroup that is used to auto provision a host


Value:

Must be Integer

discovery_rule[hostname]
Optional , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span>

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


Value:

Must be String

discovery_rule[max_count]
Optional , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span>

enables to limit maximum amount of provisioned hosts per rule


Value:

Must be Integer

discovery_rule[priority]
Optional , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span>

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


Value:

Must be Integer

discovery_rule[enabled]
Optional , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span>

flag is used for temporary shutdown of rules


Value:

Must be ‘true’ or ‘false’


DELETE /api/v2/discovery_rules/:id
Suprimeix una regla

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.