GET /api/v2/discovered_hosts
Lister tous les hôtes détectés

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/discovered_hosts/:id
Affichier un hôte détecté

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/discovered_hosts
Créer un hôte détecté

Params

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

Value: Must be a Hash
discovered_host[name]
Required

Value: Must be String
discovered_host[ip]
Required

Value: Must be String
discovered_host[mac]
Required

Value: Must be String

PUT /api/v2/discovered_hosts/:id
Provisionner les hôtes détectés

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.
discovered_host
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be a Hash
discovered_host[name]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

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

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

n’est pas requis si il s’agit d’un sous réseau avec proxy DHCP


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

n’est pas requis si il s’agit d’une machine virtuelle


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

Value: Must be a number.
discovered_host[domain_id]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be a number.
discovered_host[puppet_proxy_id]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be a number.
discovered_host[puppet_class_ids]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be an array of any type
discovered_host[operatingsystem_id]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

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

Value: Must be a number.
discovered_host[ptable_id]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be a number.
discovered_host[subnet_id]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be a number.
discovered_host[sp_subnet_id]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be a number.
discovered_host[model_id]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be a number.
discovered_host[hostgroup_id]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be a number.
discovered_host[owner_id]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be a number.
discovered_host[puppet_ca_proxy_id]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be a number.
discovered_host[image_id]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be a number.
discovered_host[host_parameters_attributes]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be an array of any type
discovered_host[build]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be 'true' or 'false'
discovered_host[enabled]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

Value: Must be 'true' or 'false'
discovered_host[provision_method]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

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

Value: Must be 'true' or 'false'
discovered_host[progress_report_id]
Optional , <span class="translation_missing" title="translation missing: fr.apipie.nil_allowed">Nil Allowed</span>

UUID pour surveiller l’état des tâches d’orchestration : GET /api/orchestration/:UUID/tasks


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

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

requis si la valeur n’est pas héritée d’un groupe d’hôtes ou si le mot de passe par défaut n’est pas défini dans les paramètres généraux.


Value: Must be String

DELETE /api/v2/discovered_hosts/:id
Supprimer un hôte détecté

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.

POST /api/v2/discovered_hosts/facts
Télécharge les facts d'un hôte, créé l'hôte si besoin

Params

Param Name Description
facts
Required

hash contenant les facts de cet hôte


Value: Must be Hash

POST /api/v2/discovered_hosts/:id/auto_provision
Exécuter les règles sur un hôte découvert

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.

POST /api/v2/discovered_hosts/auto_provision_all
Exécuter les règles sur tous les hôtes découverts


PUT /api/v2/discovered_hosts/:id/refresh_facts
Rafraichir les facts d'un hôte découvert

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.

PUT /api/v2/discovered_hosts/:id/reboot
Redémarrer un hôte découvert

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.