V2

Get Inventory

API getInventory
Purpose: To
API URL: http://<APIURL>:<APIPort>/v2/ansibleAWX/getInventory/orgentityid/{orgentityid}?toolId={toolid}
Authentication type: Basic
Method Type: Get

Parameters Required for Request Body

Column Column Type Mandatory Expected/Sample Value Remarks
toolId Integer Yes 4 This field contains Runbook Tool Id, we will get configuration information based on tool Id
Output:
{
  "Count": 1,
  "Result": {
    "count": 65,
    "next": null,
    "previos": null,
    "results": [
      {
        "id": 28,
        "name": "10123076"
      },
      {
        "id": 9,
        "name": "Attachment Inventory"
      },......
	  ]
	  }}

Parameters Returned from Response of API

Column Column Type Value Remarks
Count Integer 1 This field provide 1 for success and 0 for Fail
Result-count Integer 65 Count of total credentials
Result-next Integer 1 This field provide how many next page is available
Result-previous Integer 1 This field provide how many previous page is available
Result-results Object
{
        "id": 9,
        "name": "Attachment Inventory"
 }
It contains the list of id and Inventory