Bulk Host Create
post
/api/v2/bulk/host_create/
This endpoint allows the client to create multiple hosts and associate them with an inventory. They may do this by providing the inventory ID and a list of json that would normally be provided to create hosts.
Request
Supported Media Types
- application/json
Root Schema : BulkHostCreate
Type:
Show Source
object-
hosts(required):
array hosts
Maximum Number of Items:
100000List of hosts to be created, JSON. e.g. [{"name": "example.com"}, {"name": "127.0.0.1"}] -
inventory(required):
integer
Title:
InventoryPrimary Key ID of inventory to add hosts to.
Nested Schema : hosts
Type:
arrayMaximum Number of Items:
100000List of hosts to be created, JSON. e.g. [{"name": "example.com"}, {"name": "127.0.0.1"}]
Show Source
Nested Schema : BulkHost
Type:
Show Source
object-
description:
string
Title:
Description -
enabled:
boolean
Title:
EnabledDefault Value:trueIs this host online and available for running jobs? -
instance_id:
string
Title:
Instance idMaximum Length:1024The value used by the remote inventory source to uniquely identify the host -
name(required):
string
Title:
NameMinimum Length:1Maximum Length:512 -
variables:
string
Title:
VariablesHost variables in JSON or YAML format.
Response
Supported Media Types
- application/json
201 Response
Root Schema : BulkHostCreate
Type:
Show Source
object-
hosts(required):
array hosts
Maximum Number of Items:
100000List of hosts to be created, JSON. e.g. [{"name": "example.com"}, {"name": "127.0.0.1"}] -
inventory(required):
integer
Title:
InventoryPrimary Key ID of inventory to add hosts to.
Nested Schema : hosts
Type:
arrayMaximum Number of Items:
100000List of hosts to be created, JSON. e.g. [{"name": "example.com"}, {"name": "127.0.0.1"}]
Show Source
Nested Schema : BulkHost
Type:
Show Source
object-
description:
string
Title:
Description -
enabled:
boolean
Title:
EnabledDefault Value:trueIs this host online and available for running jobs? -
instance_id:
string
Title:
Instance idMaximum Length:1024The value used by the remote inventory source to uniquely identify the host -
name(required):
string
Title:
NameMinimum Length:1Maximum Length:512 -
variables:
string
Title:
VariablesHost variables in JSON or YAML format.