Inventory groups via API

37 views
Skip to first unread message

Ian Cote

unread,
Mar 28, 2021, 1:55:53 AM3/28/21
to AWX Project
Hello!

I can add groups and update the group variables via the API, but I'm not seeing how to set parent/child group relationships or add hosts to a group via the API.

awx cli doesn't seem to have anything there either, although it used to apparently back in the tower-cli days.

My use case has a group being created for a site - "site_foo" that will need variables, a list of hosts, and then be set as child to one group - "region_bar" and parent to another group - "central_stuff".

Any help is appreciated.

Thanks,
-ian

Wei-Yen Tan

unread,
Mar 29, 2021, 4:20:00 PM3/29/21
to Ian Cote, AWX Project

From: awx-p...@googlegroups.com <awx-p...@googlegroups.com> on behalf of Ian Cote <ian....@gmail.com>
Sent: Sunday, March 28, 2021 6:55:53 PM
To: AWX Project <awx-p...@googlegroups.com>
Subject: [awx-project] Inventory groups via API
 
--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/awx-project/101c6891-563b-40b3-929d-0200ff1c1845n%40googlegroups.com.

Ian Cote

unread,
Mar 30, 2021, 3:48:28 PM3/30/21
to AWX Project
Thanks - that will do perfect.  Thank you!
Reply all
Reply to author
Forward
0 new messages