Get Project

Table 1. Get Project
API: getProjectList
Purpose: To get the list of projects on a given Ansible tool.
API URL: http://<APIURL>:<APIPort>/v2/ansibleAWX/getProject/orgentityid/{orgentityid}?toolId={toolid}
Authentication type: Basic
Method Type: Get
Table 2. 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": "project1"
      },
      {
        "id": 9,
        "name": "project2"
      },......
	  ]
	  }}
Table 3. 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": "my_Project"

}

Its contains the list of id and Project