Inventories REST Endpoints

Inventories

REST API endpoints for Inventories

Create a Group for an Inventory
Method: post
Path: /api/v2/inventories/{id}/groups/
Create a Host for an Inventory
Method: post
Path: /api/v2/inventories/{id}/hosts/
Create an Ad Hoc Command for an Inventory
Method: post
Path: /api/v2/inventories/{id}/ad_hoc_commands/
Create an Instance Group for an Inventory
Method: post
Path: /api/v2/inventories/{id}/instance_groups/
Create an Inventory
Method: post
Path: /api/v2/inventories/
Create an Inventory Source for an Inventory
Method: post
Path: /api/v2/inventories/{id}/inventory_sources/
Delete an Inventory
Method: delete
Path: /api/v2/inventories/{id}/
Group Tree for an Inventory
Method: get
Path: /api/v2/inventories/{id}/tree/
List Activity Streams for an Inventory
Method: get
Path: /api/v2/inventories/{id}/activity_stream/
List Ad Hoc Commands for an Inventory
Method: get
Path: /api/v2/inventories/{id}/ad_hoc_commands/
List Groups for an Inventory
Method: get
Path: /api/v2/inventories/{id}/groups/
List Hosts for an Inventory
Method: get
Path: /api/v2/inventories/{id}/hosts/
List Instance Groups for an Inventory
Method: get
Path: /api/v2/inventories/{id}/instance_groups/
List Inventories
Method: get
Path: /api/v2/inventories/
List Inventory Sources for an Inventory
Method: get
Path: /api/v2/inventories/{id}/inventory_sources/
List Job Templates for an Inventory
Method: get
Path: /api/v2/inventories/{id}/job_templates/
List Roles for an Inventory
Method: get
Path: /api/v2/inventories/{id}/object_roles/
List Root Groups for an Inventory
Method: get
Path: /api/v2/inventories/{id}/root_groups/
List Users
Method: get
Path: /api/v2/inventories/{id}/access_list/
Retrieve an Inventory
Method: get
Path: /api/v2/inventories/{id}/
Retrieve Inventory Variable Data
Method: get
Path: /api/v2/inventories/{id}/variable_data/
Update an Inventory
Method: patch
Path: /api/v2/inventories/{id}/
Update an Inventory
Method: put
Path: /api/v2/inventories/{id}/
Update Inventory Sources
Method: get
Path: /api/v2/inventories/{id}/update_inventory_sources/
Update Inventory Sources
Method: post
Path: /api/v2/inventories/{id}/update_inventory_sources/
Update Inventory Variable Data
Method: patch
Path: /api/v2/inventories/{id}/variable_data/
Update Inventory Variable Data
Method: put
Path: /api/v2/inventories/{id}/variable_data/
Generate Inventory Group and Host Data as Needed for an Inventory Script.
Method: get
Path: /api/v2/inventories/{id}/script/
Inventories Copy Create
Method: post
Path: /api/v2/inventories/{id}/copy/
Inventories Copy List
Method: get
Path: /api/v2/inventories/{id}/copy/
Inventories Root Groups Create
Method: post
Path: /api/v2/inventories/{id}/root_groups/