GET /api/v2/discovery_rules
Lister toutes les règles de découverte

Params

Param Name Description
search
Optional

filtrer les résultats


Value: Must be String
order
Optional

trier les resultats


Value: Must be String
page
Optional

paginer les resultats


Value: Must be String
per_page
Optional

nombre d'entier par requête


Value: Must be String

GET /api/v2/discovery_rules/:id
Voir une règle de découverte

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
Créer une règle de découverte

Params

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

Value: Must be a Hash
discovery_rule[name]
Required

Value: Must be String
discovery_rule[search]
Required

Value: Must be String
discovery_rule[hostgroup_id]
Required

Value: Must be Integer
discovery_rule[hostname]
Required

Value: Must be String
discovery_rule[max_count]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be Integer
discovery_rule[priority]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be Integer
discovery_rule[enabled]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be 'true' or 'false'

PUT /api/v2/discovery_rules/:id
Mise à jour d'une règle

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: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be a Hash
discovery_rule[name]
Optional

Value: Must be String
discovery_rule[search]
Optional

Value: Must be String
discovery_rule[hostgroup_id]
Optional

Value: Must be Integer
discovery_rule[hostname]
Optional

Value: Must be String
discovery_rule[max_count]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be Integer
discovery_rule[priority]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be Integer
discovery_rule[enabled]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be 'true' or 'false'

DELETE /api/v2/discovery_rules/:id
Supprimer une règle

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.