Hi Vivek

As Stefan mentioned this list is not for AWX/Tower queries, BUT please take 
a look at either the tower-cli or awx-cli depending on your version and 
also the tower specific modules for doing such tasks. For instance, 
https://docs.ansible.com/ansible/latest/modules/tower_host_module.html#tower-host-module

Regards
Phil.

On Friday, 17 April 2020 14:40:27 UTC+1, Vivek Mandal wrote:
>
> Hi,
>    I have been trying to execute a REST API to
> Add a host to an inventory.Below is the API.
>
> /api/v2/inventories/{id}/hosts/
>
> Unfortunately, This API doesn't work. It gives the response as 200(Ok). 
> But only displays the existing host. Its the same response when you run GET 
> method for the same API call. Can someone please help me rectifying the 
> error.
>
> Thanks,
> Vivek
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d2d6791b-4585-4b2e-b7f6-b9f3de965012%40googlegroups.com.

Reply via email to