Bulk Host Create
get
/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
Query Parameters
-
page: integer
A page number within the paginated result set.
-
page_size: integer
Number of results to return per page.
-
search: string
A search term.
Response
Supported Media Types
- application/json
200 Response
Nested Schema : BulkHostCreate
Type:
Show Source
object
-
hosts(required):
array hosts
Maximum Number of Items:
100000
List of hosts to be created, JSON. e.g. [{"name": "example.com"}, {"name": "127.0.0.1"}] -
inventory(required):
integer
Title:
Inventory
Primary Key ID of inventory to add hosts to.
Nested Schema : hosts
Type:
array
Maximum Number of Items:
100000
List 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:
Enabled
Default Value:true
Is this host online and available for running jobs? -
instance_id:
string
Title:
Instance id
Maximum Length:1024
The value used by the remote inventory source to uniquely identify the host -
name(required):
string
Title:
Name
Minimum Length:1
Maximum Length:512
-
variables:
string
Title:
Variables
Host variables in JSON or YAML format.