GET /api/v2/discovered_hosts
List all discovered hosts

Parametry

Nazwa parametru Opis
search
opcjonalny

rezultat filtrowania

Validations:

  • Must be String

order
opcjonalny

rezultat sortowania

Validations:

  • Must be String

page
opcjonalny

rezultat paginacji

Validations:

  • Must be String

per_page
opcjonalny

Liczba wpisów na jedno żądanie

Validations:

  • Must be String


GET /api/v2/discovered_hosts/:id
Show a discovered host

Parametry

Nazwa parametru Opis
id
wymagany

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/discovered_hosts
Create a discovered host for testing (use /facts to create new hosts)

Parametry

Nazwa parametru Opis
discovered_host
opcjonalny , nil dopuszczalny

Validations:

  • Must be a Hash

discovered_host[name]
wymagany

Validations:

  • Must be String

discovered_host[ip]
wymagany

Validations:

  • Must be String

discovered_host[mac]
wymagany

Validations:

  • Must be String


PUT /api/v2/discovered_hosts/:id
Provision a discovered host

Parametry

Nazwa parametru Opis
id
wymagany

Validations:

  • 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
opcjonalny , nil dopuszczalny

Validations:

  • Must be a Hash

discovered_host[name]
opcjonalny , nil dopuszczalny

Validations:

  • Must be String

discovered_host[environment_id]
opcjonalny , nil dopuszczalny

Validations:

  • Must be String

discovered_host[ip]
opcjonalny , nil dopuszczalny

nie wymagany, jeśli używa podsieć z DHCP proxy

Validations:

  • Must be String

discovered_host[mac]
opcjonalny , nil dopuszczalny

not required if it's a virtual machine

Validations:

  • Must be String

discovered_host[architecture_id]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a number.

discovered_host[domain_id]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a number.

discovered_host[puppet_proxy_id]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a number.

discovered_host[puppet_class_ids]
opcjonalny , nil dopuszczalny

Validations:

  • Must be an array of any type

discovered_host[operatingsystem_id]
opcjonalny , nil dopuszczalny

Validations:

  • Must be String

discovered_host[medium_id]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a number.

discovered_host[ptable_id]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a number.

discovered_host[subnet_id]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a number.

discovered_host[sp_subnet_id]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a number.

discovered_host[model_id]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a number.

discovered_host[hostgroup_id]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a number.

discovered_host[owner_id]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a number.

discovered_host[puppet_ca_proxy_id]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a number.

discovered_host[image_id]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a number.

discovered_host[host_parameters_attributes]
opcjonalny , nil dopuszczalny

Validations:

  • Must be an array of any type

discovered_host[build]
opcjonalny , nil dopuszczalny

Validations:

  • Must be 'true' or 'false' or '1' or '0'

discovered_host[enabled]
opcjonalny , nil dopuszczalny

Validations:

  • Must be 'true' or 'false' or '1' or '0'

discovered_host[provision_method]
opcjonalny , nil dopuszczalny

Validations:

  • Must be String

discovered_host[managed]
opcjonalny , nil dopuszczalny

Validations:

  • Must be 'true' or 'false' or '1' or '0'

discovered_host[progress_report_id]
opcjonalny , nil dopuszczalny

UUID do śledzenia statusu zadań orkiestracji, GET /api/orchestration/:UUID/tasks

Validations:

  • Must be String

discovered_host[capabilities]
opcjonalny , nil dopuszczalny

Validations:

  • Must be String

discovered_host[root_pass]
opcjonalny , nil dopuszczalny

required if value is not inherited from host group or default password in settings

Validations:

  • Must be String


DELETE /api/v2/discovered_hosts/:id
Delete a discovered host

Parametry

Nazwa parametru Opis
id
wymagany

Validations:

  • 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
Wyślij informacje dla hosta, tworząc go w razie potrzeby

Parametry

Nazwa parametru Opis
facts
wymagany

hash containing facts for the host with minimum set of facts: discovery_bootif, macaddress_eth0, ipaddress, ipaddress_eth0, interfaces: eth0 (example in case primary interface is named eth0)

Validations:

  • Must be Hash


POST /api/v2/discovered_hosts/:id/auto_provision
Execute rules against a discovered host

Parametry

Nazwa parametru Opis
id
wymagany

Validations:

  • 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
Execute rules against all currently discovered hosts


PUT /api/v2/discovered_hosts/:id/refresh_facts
Refreshing the facts of a discovered host

Parametry

Nazwa parametru Opis
id
wymagany

Validations:

  • 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
Rebooting a discovered host

Parametry

Nazwa parametru Opis
id
wymagany

Validations:

  • 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
Rebooting all discovered hosts