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

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/ 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.

{
  "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.

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

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

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

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

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

  4. 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/ 这个是Yarra Water 的地图工具,可以看到房子的供水,排水阴沟等easement。一般有排水管easement 六米内不可以建东西。要重建需要特别注意。

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

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

https://www.crimestatistics.vic.gov.au/explore-crime-by-location