GET /api/hosts
List all hosts.

Params

Param Name Description
search
Optional

Filter results


Value: Must be String
order
Optional

Sort results


Value: Must be String
page
Optional

Ergebnisse nummerieren


Value: Must be String
per_page
Optional

Anzahl der Einträge pro Anfrage


Value: Must be String

GET /api/hosts/:id
Show a host.

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/hosts
Create a host.

Params

Param Name Description
host
Required

Value: Must be a Hash
host[name]
Required

Value: Must be String
host[environment_id]
Optional

erforderlich, wenn der Host gemanagt und der Wert nicht von einer Hostgruppe vererbt ist


Value: Must be String
host[ip]
Optional

nicht erforderlich, wenn ein Subnetz mit DHCP-Proxy verwendet wird


Value: Must be String
host[mac]
Optional

erforderlich für Bare-Metal-Host, nicht erforderlich, wenn der Host eine virtuelle Maschine ist


Value: Must be String
host[architecture_id]
Optional

erforderlich, wenn der Host gemanagt und der Wert nicht von einer Hostgruppe vererbt ist


Value: Must be a number.
host[domain_id]
Optional

erforderlich, wenn der Host gemanagt und der Wert nicht von einer Hostgruppe vererbt ist


Value: Must be a number.
host[realm_id]
Optional

Value: Must be a number.
host[puppet_proxy_id]
Optional

Value: Must be a number.
host[puppet_class_ids]
Optional

Value: Must be an array of any type
host[operatingsystem_id]
Optional

erforderlich, wenn der Host gemanagt und der Wert nicht von einer Hostgruppe vererbt ist


Value: Must be String
host[medium_id]
Optional

erforderlich, wenn die Bereitstellung nicht image-basiert, der Host gemanagt und der Wert nicht von einer Hostgruppe vererbt ist


Value: Must be String
host[ptable_id]
Optional

erforderlich, wenn der Host gemanagt und keine spezifische Partition definiert ist


Value: Must be a number.
host[subnet_id]
Optional

erforderlich, wenn der Host gemanagt und der Wert nicht von einer Hostgruppe vererbt ist


Value: Must be a number.
host[compute_resource_id]
Optional

“nil” bedeutet, dass es sich um einen Bare-Metal-Host handelt


Value: Must be a number.
host[root_pass]
Optional

erforderlich, wenn der Host gemanagt und der Wert nicht von einer Hostgruppe oder einem Standardpasswort in den Einstellungen vererbt ist


Value: Must be String
host[model_id]
Optional

Value: Must be a number.
host[hostgroup_id]
Optional

Value: Must be a number.
host[owner_id]
Optional

Value: Must be a number.
host[puppet_ca_proxy_id]
Optional

Value: Must be a number.
host[image_id]
Optional

Value: Must be a number.
host[host_parameters_attributes]
Optional

Value: Must be an array of any type
host[build]
Optional

Value: Must be 'true' or 'false'
host[enabled]
Optional

Value: Must be 'true' or 'false'
host[provision_method]
Optional

Value: Must be String
host[managed]
Optional

True/False-Flag, ob ein Host gemanagt oder ungemanagt ist. Hinweis: Dieser Wert bestimmt außerdem, ob mehrere Parameter erforderlich sind oder nicht.


Value: Must be 'true' or 'false'
host[progress_report_id]
Optional

UUID zum Tracken des Status der Orchestrierungsaufgaben, GET /api/orchestration/:UUID/tasks


Value: Must be String
host[comment]
Optional

Weitere Informationen über diesen Host


Value: Must be String
host[capabilities]
Optional

Value: Must be String
host[compute_profile_id]
Optional

Value: Must be a number.
host[compute_attributes]
Optional

Value: Must be a Hash

PUT /api/hosts/:id
Update a host.

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

Value: Must be a Hash
host[name]
Optional

Value: Must be String
host[environment_id]
Optional

Value: Must be String
host[ip]
Optional

not required if using a subnet with dhcp proxy


Value: Must be String
host[mac]
Optional

not required if its a virtual machine


Value: Must be String
host[architecture_id]
Optional

Value: Must be a number.
host[domain_id]
Optional

Value: Must be a number.
host[puppet_proxy_id]
Optional

Value: Must be a number.
host[operatingsystem_id]
Optional

Value: Must be String
host[puppet_class_ids]
Optional

Value: Must be an array of any type
host[medium_id]
Optional

Value: Must be a number.
host[ptable_id]
Optional

Value: Must be a number.
host[subnet_id]
Optional

Value: Must be a number.
host[compute_resource_id]
Optional

Value: Must be a number.
host[sp_subnet_id]
Optional

Value: Must be a number.
host[model_id]
Optional

Value: Must be a number.
host[hostgroup_id]
Optional

Value: Must be a number.
host[owner_id]
Optional

Value: Must be a number.
host[puppet_ca_proxy_id]
Optional

Value: Must be a number.
host[image_id]
Optional

Value: Must be a number.
host[host_parameters_attributes]
Optional

Value: Must be an array of any type
host[build]
Optional

Value: Must be 'true' or 'false'
host[enabled]
Optional

Value: Must be 'true' or 'false'
host[provision_method]
Optional

Value: Must be String
host[managed]
Optional

Value: Must be 'true' or 'false'
host[progress_report_id]
Optional

UUID zum Tracken des Status der Orchestrierungsaufgaben, GET /api/orchestration/:UUID/tasks


Value: Must be String
host[capabilities]
Optional

Value: Must be String
host[compute_attributes]
Optional

Value: Must be a Hash

DELETE /api/hosts/:id
Delete an host.

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.

GET /api/hosts/:id/status
Hoststatus abholen

Return value may either be one of the following:

  • missing

  • failed

  • pending

  • changed

  • unchanged

  • unreported

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.