GET /api/v2/discovery_rules
Répertorier toutes les règles de détection

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Définir le contexte organisationnel actuel de la demande

Validations:

  • Must be a Integer

search
optionel

filtrer les résultats

Validations:

  • Must be a String

order
optionel

trier les résultats

Validations:

  • Must be a String

page
optionel

paginer les résultats

Validations:

  • Must be a String

per_page
optionel

nombre d'entrées par requête

Validations:

  • Must be a String


GET /api/v2/discovery_rules/:id
Afficher une règle de détection

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Définir le contexte organisationnel actuel de la demande

Validations:

  • Must be a Integer

id
requis

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

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Définir le contexte organisationnel actuel de la demande

Validations:

  • Must be a Integer

discovery_rule
optionel , nil autorisé

Validations:

  • Must be a Hash

discovery_rule[name]
requis

représente le nom de règle affiché aux utilisateurs

Validations:

  • Must be a String

discovery_rule[search]
requis

requête à faire correspondre aux hôtes détectés pour la règle en question

Validations:

  • Must be a String

discovery_rule[hostgroup_id]
requis

groupe d'hôtes utilisé pour provisionner automatiquement un hôte

Validations:

  • Must be a Integer

discovery_rule[hostname]
optionel , nil autorisé

définit un modèle pour attribuer les noms d'hôte lisibles par l'homme aux hôtes correspondants

Validations:

  • Must be a String

discovery_rule[max_count]
optionel , nil autorisé

permet de limiter le nombre maximal d'hôtes provisionnés par règle

Validations:

  • Must be a Integer

discovery_rule[priority]
optionel , nil autorisé

range les règles par ordre croissant. Doit être supérieur à zéro

Validations:

  • Must be a Integer

discovery_rule[enabled]
optionel , nil autorisé

indicateur utilisé pour l'arrêt temporaire des règles

Validations:

  • Must be one of: true, false, 1, 0.

discovery_rule[location_ids]
requis

ID d'emplacement pour les hôtes mis en service

Validations:

  • Must be an array of any type

discovery_rule[organization_ids]
requis

ID d'organisation pour les hôtes mis en service

Validations:

  • Must be an array of any type


PUT /api/v2/discovery_rules/:id
Mettre à jour une règle

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Définir le contexte organisationnel actuel de la demande

Validations:

  • Must be a Integer

id
requis

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
optionel , nil autorisé

Validations:

  • Must be a Hash

discovery_rule[name]
optionel

représente le nom de règle affiché aux utilisateurs

Validations:

  • Must be a String

discovery_rule[search]
optionel

requête à faire correspondre aux hôtes détectés pour la règle en question

Validations:

  • Must be a String

discovery_rule[hostgroup_id]
optionel

groupe d'hôtes utilisé pour provisionner automatiquement un hôte

Validations:

  • Must be a Integer

discovery_rule[hostname]
optionel , nil autorisé

définit un modèle pour attribuer les noms d'hôte lisibles par l'homme aux hôtes correspondants

Validations:

  • Must be a String

discovery_rule[max_count]
optionel , nil autorisé

permet de limiter le nombre maximal d'hôtes provisionnés par règle

Validations:

  • Must be a Integer

discovery_rule[priority]
optionel , nil autorisé

range les règles par ordre croissant. Doit être supérieur à zéro

Validations:

  • Must be a Integer

discovery_rule[enabled]
optionel , nil autorisé

indicateur utilisé pour l'arrêt temporaire des règles

Validations:

  • Must be one of: true, false, 1, 0.

discovery_rule[location_ids]
optionel

ID d'emplacement pour les hôtes mis en service

Validations:

  • Must be an array of any type

discovery_rule[organization_ids]
optionel

ID d'organisation pour les hôtes mis en service

Validations:

  • Must be an array of any type


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

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Définir le contexte organisationnel actuel de la demande

Validations:

  • Must be a Integer

id
requis

Validations:

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