Uploaded image for project: 'Ansible Automation Platform RFEs'
  1. Ansible Automation Platform RFEs
  2. AAPRFE-1043

Create Inventory and populate inventory in one API call

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 2.3, 2.4
    • controller
    • False
    • Hide

      None

      Show
      None
    • False

      What is the nature and description of the request?

      Desired Process

      We want the ability to create inventory with an arbitrary list of servers in the initial payload and Ansible Controller will create the inventory containing the provided list of servers.

      Current Process

      1. We create inventory via POST to /api/v2/inventory/ (https://docs.ansible.com/automation-controller/latest/html/controllerapi/api_ref.html#/Inventories/Inventories_inventories_create)
        1. Organization ID is required (INT) to make this API call so additional API call functionality would be needed to pull the organization ID (see RFE# above)
        2. Furthermore /api/v2/organizations/{name}
      2. We populate inventory POST to /api/v2/bulk/host_create/ (https://docs.ansible.com/automation-controller/latest/html/controllerapi/api_ref.html#/Bulk)

      Why does the customer need this? (List the business requirements here)

      Business Impact
      Less code required to integrate with Ansible controllers into the bank’s ecosystem overall. Less API calls required to create an inventory. Making integration into the ecosystem simpler.

      Technical Impact
      Multiple API calls across multiple deployments of AAP produces unnecessary overhead on the AAP infrastructure for POST of inventory creation and subsequent inventory server population.

      Scale Impact
      Less API calls would be required and less prone to denial of service and performance degradation of the Controller API.

              bcoursen@redhat.com Brian Coursen
              rhn-support-jbyrd Jimmy Byrd
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: