# How to make use of Ansible Tower Rest API

**URL:** <https://forum.ansible.com/t/how-to-make-use-of-ansible-tower-rest-api/25336>\
**Category:** Ansible Project\
**Created:** [August 25, 2017, 4:58pm UTC](https://forum.ansible.com/t/how-to-make-use-of-ansible-tower-rest-api/25336 "2017-08-25T16:58:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![callmeshawn](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@callmeshawn](https://forum.ansible.com/u/callmeshawn)\
**Post date:** [August 25, 2017, 4:58pm UTC](https://forum.ansible.com/t/how-to-make-use-of-ansible-tower-rest-api/25336/1 "2017-08-25T16:58:05Z")

</div>

Hello,

I’m fairly new to working with Ansible and Ansible Tower.  
So far I’ve written some playbooks and can execute them.

I have taken some of the playbooks and put them in Tower and can run them from Tower.

Now I’m trying to make the move to executing jobs from vRO…  
I don’t administer the vRO system, so really what I’m trying to figure out is what I need to present to the administrator of that system so that when a new system is provisioned,

vRO can make the calls to:

1. Add a new host to a group
2. Execute a job

Depending on requirements, the new hosts may be ephemeral, so the first step may not be necessary, but for hosts in which we want to continue management.

Thank you,

R. Singh

---

<div class="post-metadata">

**Author:** ![benno\_joy](https://avatars.discourse-cdn.com/v4/letter/b/73ab20/32.png) [@benno\_joy](https://forum.ansible.com/u/benno_joy)\
**Post date:** [August 27, 2017, 8:19am UTC](https://forum.ansible.com/t/how-to-make-use-of-ansible-tower-rest-api/25336/2 "2017-08-27T08:19:06Z")

</div>

This list is for ansible core , i think there is a seperate support  
channel for tower.  
for executing jobs this doc might help  
[http://docs.ansible.com/ansible-tower/latest/html/towerapi/index.html](http://docs.ansible.com/ansible-tower/latest/html/towerapi/index.html)

for adding hosts to inventory , i think you should utilize the dynamic  
inventory script for vmware so that hosts are automatically synced and  
you dont have to add/remove them manually.

---

<div class="post-metadata">

**Author:** ![callmeshawn](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@callmeshawn](https://forum.ansible.com/u/callmeshawn)\
**Post date:** [August 28, 2017, 1:17pm UTC](https://forum.ansible.com/t/how-to-make-use-of-ansible-tower-rest-api/25336/3 "2017-08-28T13:17:31Z")

</div>

Benno,

Thank you for your response.  
Sorry about posting in the wrong list.  
Will look at the link you provided.

Also, thank you for your mention of the Dynamic Inventory script for VMware. Will read up on that as well.

Thanks!
