| Param name | Description |
|---|---|
|
location_id
optional |
Set the current location context for the request Validations:
|
|
organization_id
optional |
Set the current organization context for the request Validations:
|
|
host_ids
required |
IDs of hosts included in inventory Validations:
|
| Param name | Description |
|---|---|
|
location_id
optional |
Set the current location context for the request Validations:
|
|
organization_id
optional |
Set the current organization context for the request Validations:
|
|
hostgroup_ids
required |
IDs of hostgroups included in inventory Validations:
|
POST /ansible/api/ansible_inventories/schedule
{
"input_values": {
"Organization": "yes",
"Location": "yes",
"IPv4": "yes",
"Facts": "no"
}
}
200
{
"job_id": UNIQUE-REPORT-GENERATING-JOB-UUID
"data_url": "/api/v2/report_templates/1/report_data/UNIQUE-REPORT-GENERATING-JOB-UUID"
}
| Param name | Description |
|---|---|
|
location_id
optional |
Set the current location context for the request Validations:
|
|
organization_id
optional |
Set the current organization context for the request Validations:
|
|
input_values
optional |
Hash of input values of type input=>value Validations:
|
|
report_format
optional |
Report format, defaults to 'json' Validations:
|