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
Afficher 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é à des fins de test (utiliser /facts pour créer des nouveaux hôtes)

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 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.

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 s'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 du mot de passe par défaut 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 a minima les facts suivants pour l'hôte : discovery_bootif, macaddress_eth0, ipaddress, ipaddress_eth0, interfaces: eth0 (exemple dans le cas d'une interface primaire nommée eth0)


Value:

Must be Hash


POST /api/v2/discovered_hosts/:id/auto_provision
Appliquer les règles à 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/auto_provision_all
Appliquer les règles à tous les hôtes détectés


PUT /api/v2/discovered_hosts/:id/refresh_facts
Actualiser les facts d'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.


PUT /api/v2/discovered_hosts/:id/reboot
Redémarrer 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.


PUT /api/v2/discovered_hosts/reboot_all
Redémarrer tous les hôtes découverts