From 5e8f7b76f1edfd47e2bb3a7a62968b34f13f17b0 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Wed, 22 Aug 2018 12:38:48 -0400 Subject: [PATCH] document inventory script towervars --- awx/api/templates/api/inventory_script_view.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/awx/api/templates/api/inventory_script_view.md b/awx/api/templates/api/inventory_script_view.md index f47f3ec135..54c4c7d98b 100644 --- a/awx/api/templates/api/inventory_script_view.md +++ b/awx/api/templates/api/inventory_script_view.md @@ -23,6 +23,11 @@ are enabled in the inventory. This feature allows disabled hosts to be skipped when running jobs without removing them from the inventory. Specify a query string of `?all=1` to return all hosts, including disabled ones. +_(Added in Tower 3.2.3)_ Specify a query string of `?towervars=1` to add variables +to the hostvars of each host that specifies its enabled state and database ID. + +To apply multiple query strings, join them with the `&` character, like `?hostvars=1&all=1`. + ## Host Response Make a GET request to this resource with a query string similar to