UNPKG

n8n-nodes-awx

Version:

n8n node to interact with Ansible AWX/Tower with improved type safety

36 lines (28 loc) 1.08 kB
# CRITICAL: Parameter Naming Rules for Inventory Get For any "get" operation on the Inventory resource in AWX via n8n: - **Always provide either the `inventoryId` or the `inventoryName` parameter** (never both, never neither). - Use `inventoryId` if you know the inventory's numeric ID. - Use `inventoryName` (as a string) if you know the inventory's name. - **Never use only `id` or only `name`—the parameter names must be exactly `inventoryId` or `inventoryName`.** ## Examples **Get by Name:** ```json { "resource": "inventory", "action": "get", "inventoryName": "Production" } ``` **Get by ID:** ```json { "resource": "inventory", "action": "get", "inventoryId": "123" } ``` ## Guidance - If neither parameter is provided, the operation will fail with: `Error in inventory operation: Either Inventory ID or Inventory Name must be provided for the Get action` - If both are provided, only the ID will be used. - This rule ensures compatibility with the n8n AWX node backend and prevents schema validation errors.