# Why cannot launch a Job from a Job template by calling the Ansible Tower API on PostMan?

**URL:** <https://forum.ansible.com/t/why-cannot-launch-a-job-from-a-job-template-by-calling-the-ansible-tower-api-on-postman/25956>\
**Category:** Ansible Developer\
**Created:** [November 8, 2017, 6:10am UTC](https://forum.ansible.com/t/why-cannot-launch-a-job-from-a-job-template-by-calling-the-ansible-tower-api-on-postman/25956 "2017-11-08T06:10:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leima2046](https://avatars.discourse-cdn.com/v4/letter/l/c68b51/32.png) [@leima2046](https://forum.ansible.com/u/leima2046)\
**Post date:** [November 8, 2017, 6:10am UTC](https://forum.ansible.com/t/why-cannot-launch-a-job-from-a-job-template-by-calling-the-ansible-tower-api-on-postman/25956/1 "2017-11-08T06:10:28Z")

</div>

I tried to launch a Job from a Job template by calling Ansible Tower API. Took a test on PostMan, turns out the [http://ansibletowerhost/api/v2/job\_templates/8/launch/](http://ansibletowerhost/api/v2/job_templates/8/launch/) with POST cannot work correctly.

Here 8 is the job template id, which is a simple test job template. The document says the result should be like below, and there will be a job record created on Tower.

```auto
{
  "ignored_fields": {
    "credential": 2,
    "job_tags": "setup,teardown"
  }
  "id": 4,
  ...more data about the job...
  "job": 4,
}

```

But what I got is like this,

{  
“can\_start\_without\_user\_input”: true,  
“passwords\_needed\_to\_start”: ,  
“ask\_variables\_on\_launch”: false,  
“ask\_tags\_on\_launch”: false,  
“ask\_diff\_mode\_on\_launch”: false,  
“ask\_skip\_tags\_on\_launch”: false,  
“ask\_job\_type\_on\_launch”: false,  
“ask\_limit\_on\_launch”: false,  
“ask\_verbosity\_on\_launch”: false,  
“ask\_inventory\_on\_launch”: false,  
“ask\_credential\_on\_launch”: false,  
“survey\_enabled”: false,  
“variables\_needed\_to\_start”: ,  
“credential\_needed\_to\_start”: false,  
“inventory\_needed\_to\_start”: false,  
“job\_template\_data”: {  
“id”: 8,  
“description”: “”,  
“name”: “simpletest”  
},  
“defaults”: {  
“extra\_credentials”: ,  
“credential”: {  
“id”: 1,  
“name”: “Demo Credential”  
},  
“job\_tags”: “”,  
“extra\_vars”: “”,  
“verbosity”: 0,  
“job\_type”: “run”,  
“diff\_mode”: false,  
“skip\_tags”: “”,  
“limit”: “”,  
“inventory”: {  
“id”: 1,  
“name”: “Demo Inventory”  
},  
“vault\_credential”: {  
“id”: null,  
“name”: null  
}  
}  
}

Any idea what goes wrong here?

Thanks.

---

<div class="post-metadata">

**Author:** ![leima2046](https://avatars.discourse-cdn.com/v4/letter/l/c68b51/32.png) [@leima2046](https://forum.ansible.com/u/leima2046)\
**Post date:** [November 8, 2017, 6:43am UTC](https://forum.ansible.com/t/why-cannot-launch-a-job-from-a-job-template-by-calling-the-ansible-tower-api-on-postman/25956/2 "2017-11-08T06:43:46Z")

</div>

I got the reason. Should use “https” instead of “http”.

在 2017年11月8日星期三 UTC+11下午5:10:29，leim…@gmail.com写道：

---

<div class="post-metadata">

**Author:** ![leima2046](https://avatars.discourse-cdn.com/v4/letter/l/c68b51/32.png) [@leima2046](https://forum.ansible.com/u/leima2046)\
**Post date:** [December 1, 2017, 4:49am UTC](https://forum.ansible.com/t/why-cannot-launch-a-job-from-a-job-template-by-calling-the-ansible-tower-api-on-postman/25956/3 "2017-12-01T04:49:28Z")

</div>

1. Google下房子位置，看到车站，学校，超市的大概距离。

2. Google earth 街景地图，可以直接在网上看看房子从上面看的坐落，朝向；进入3D实景，可以看看街道的情况，如果房子临街，还能看下房子大概外貌。Google Earth数据大概6-12个月更新，所以不是最新的。

3. [http://www.onthehouse.com.au](http://www.onthehouse.com.au/) 能查房子建造历史，地大小，floor area 大小等；它还有个估价预测，High Accuracy 的估价一般都差不多。

4. [http://services.land.vic.gov.au/maps/interactive.jsp](http://services.land.vic.gov.au/maps/interactive.jsp) 这个可以看房子地块图， “Get Report” 菜单进去可以免费获取Basic Property Report, 哪个Zone, Planning Property Report (有没有特殊overlay，如古迹或者植被保护), bushfire Prone Area Report (是不是在山火易发区)。如果打算长期自己住，不需要重建或者转卖，这些限制倒没多大关系。如果要重建，有限制的会比没有限制的麻烦。

5. [https://webmap.yvw.com.au/yvw\_ext/](https://webmap.yvw.com.au/yvw_ext/) 这个是Yarra Water 的地图工具，可以看到房子的供水，排水阴沟等easement。一般有排水管easement 六米内不可以建东西。要重建需要特别注意。

Section 32上的大部分信息四 五两个网站都能查到。

这个可以查所在区的治安犯罪状况：

[https://www.crimestatistics.vic.gov.au/explore-crime-by-location](https://www.crimestatistics.vic.gov.au/explore-crime-by-location)
