POST /ansible/api/ansible_inventories/hosts
Show Ansible inventory for hosts

GET /ansible/api/ansible_inventories/hosts
Show Ansible inventory for hosts

パラメーター

パラメーター名 記述
location_id
任意

要求に現在のロケーションコンテキストを設定します

Validations:

  • Must be a Integer

organization_id
任意

要求に現在の組織コンテキストを設定します

Validations:

  • Must be a Integer

host_ids
必須

IDs of hosts included in inventory

Validations:

  • Must be an array of any type


POST /ansible/api/ansible_inventories/hostgroups
Show Ansible inventory for hostgroups

GET /ansible/api/ansible_inventories/hostgroups
Show Ansible inventory for hostgroups

パラメーター

パラメーター名 記述
location_id
任意

要求に現在のロケーションコンテキストを設定します

Validations:

  • Must be a Integer

organization_id
任意

要求に現在の組織コンテキストを設定します

Validations:

  • Must be a Integer

hostgroup_ids
必須

IDs of hostgroups included in inventory

Validations:

  • Must be an array of any type


POST /ansible/api/ansible_inventories/schedule
Schedule generating of Ansible Inventory report

POST /ansible/api/ansible_inventories/schedule
{
  "input_values": {
    "Organization": "yes",
    "Location": "yes",
    "IPv4": "yes",
    "Facts": "no"
  }
}
200
{
  "job_id": UNIQUE-REPORT-GENERATING-JOB-UUID
  "data_url": "/api/v2/report_templates/1/report_data/UNIQUE-REPORT-GENERATING-JOB-UUID"
}

パラメーター

パラメーター名 記述
location_id
任意

要求に現在のロケーションコンテキストを設定します

Validations:

  • Must be a Integer

organization_id
任意

要求に現在の組織コンテキストを設定します

Validations:

  • Must be a Integer

input_values
任意

Hash of input values of type input=>value

Validations:

  • Must be a Hash

report_format
任意

Report format, defaults to 'json'

Validations:

  • Must be one of: csv, json, yaml, html.