Manage inventory via API
Getting started with the API
For a complete API reference, use the API Documentation link in the Itential Automation Gateway UI. The interface allows you to browse and interact with the Itential Automation Gateway API.
Add a device
If an existing Ansible Inventory is not already configured, you can add a new device to IAG using the API. The following is an example curl script to add a device.
Get a device list
Use the following command to get a list of managed devices.
Get configuration for a device
Use the following command to retrieve the configuration for a managed device.
For Itential Automation Gateway 2022.1, use the following endpoint instead:
Run a command on a device
Use the following to run a command on a managed device.
For Itential Automation Gateway 2022.1, use the following endpoint instead: