You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AWX Project
Hello everyone,
Is there a way to export my Tower (3.7.0) Inventory? I need to get a list of every host and it's corresponding group in a CSV (if possible). I see this documentation but I do not see how I can get the information I need using the API calls.
ahmed
unread,
Jul 28, 2020, 10:08:06 AM7/28/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AWX Project
Hey there m.hay
If you're using bash, you can use curl to submit an api request to tower, and then pipe it to jq in order to parse the response. Try something like this: curl -k --user user:pass https://hostname/api/v2/inventories/4/hosts/ | jq '.results[] | .name, .summary_fields.groups.results[].name'
Just make sure to use your own username and password. Or, even better, set a bearer token if you know how to use one.