aap_export_inventory
Export Ansible Automation Platform inventories as Configuration-as-Code YAML, with optional host inclusion, to enable version-controlled infrastructure management.
Instructions
Export an AAP inventory as Configuration-as-Code YAML.
Args: params (ExportInventoryInput): - inventory_id (int): Inventory ID - include_hosts (bool): Include host entries - format (str): 'yaml' or 'json'
Returns: str: YAML for infra.aap_configuration.controller_inventories.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"params": "<params>"
},
"name": "aap_export_inventory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |