# how to return additional variables as a part of job status get request

**URL:** <https://forum.ansible.com/t/how-to-return-additional-variables-as-a-part-of-job-status-get-request/32316>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [February 24, 2020, 4:00pm UTC](https://forum.ansible.com/t/how-to-return-additional-variables-as-a-part-of-job-status-get-request/32316 "2020-02-24T16:00:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Punit\_Jain](https://avatars.discourse-cdn.com/v4/letter/p/e56c9b/32.png) [@Punit\_Jain](https://forum.ansible.com/u/Punit_Jain)\
**Post date:** [February 24, 2020, 4:00pm UTC](https://forum.ansible.com/t/how-to-return-additional-variables-as-a-part-of-job-status-get-request/32316/1 "2020-02-24T16:00:19Z")

</div>

Hi,

I am using ansible AWX for issuing REST calls for calling playbook. Playbook connects to downstream servers and provisions storage using underlying storage API’s and registers o/p of rest call. My requirement is to get back a o/p of rest call as a part of job status call, however i am not able to do that as of now. Here is test playbook.

---

<div class="post-metadata">

**Author:** ![Punit\_Jain](https://avatars.discourse-cdn.com/v4/letter/p/e56c9b/32.png) [@Punit\_Jain](https://forum.ansible.com/u/Punit_Jain)\
**Post date:** [February 25, 2020, 6:15am UTC](https://forum.ansible.com/t/how-to-return-additional-variables-as-a-part-of-job-status-get-request/32316/2 "2020-02-25T06:15:14Z")

</div>

Hi Team,

Any advice on this ?

Regards,  
Punit

---

<div class="post-metadata">

**Author:** ![Mani\_Mohan](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@Mani\_Mohan](https://forum.ansible.com/u/Mani_Mohan)\
**Post date:** [February 25, 2020, 9:10am UTC](https://forum.ansible.com/t/how-to-return-additional-variables-as-a-part-of-job-status-get-request/32316/3 "2020-02-25T09:10:14Z")

</div>

Hi Punit,

You can try this below API query.  
api/v2/jobs/55/job\_events/?task=Your\_task\_name.

In your code you have to display the results of that particular variable in the task " Your\_task\_name "  
and the API query will print the results in json format, then you have to dig in a bit to see your custom result.

Let me know if you have any questions.

Thanks and Regards  
Mani Mohan

---

<div class="post-metadata">

**Author:** ![Punit\_Jain](https://avatars.discourse-cdn.com/v4/letter/p/e56c9b/32.png) [@Punit\_Jain](https://forum.ansible.com/u/Punit_Jain)\
**Post date:** [February 25, 2020, 3:07pm UTC](https://forum.ansible.com/t/how-to-return-additional-variables-as-a-part-of-job-status-get-request/32316/4 "2020-02-25T15:07:02Z")

</div>

Thanks Mani. That works.

Regards,  
Punit
