For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Ansible file

Retrieve a playbook or plugin inventory YAML file from its configured git repository.

get
Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: 4e
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: v
Query parameters
resource_typestring · enumRequired

Type of ansible resource (playbook or inventory).

Example: playbookPossible values:
identifierstringRequired

Identifier of the playbook or inventory.

Example: my-playbook
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: 4v4
Responses
200

OK response.

application/json
string · binaryOptional
get/api/orgs/{org}/projects/{project}/ansible/file
GET /api/orgs/{org}/projects/{project}/ansible/file?resource_type=playbook&identifier=my-playbook HTTP/1.1
Host: localhost:80
Harness-Account: 4v4
Accept: */*
binary

Last updated

Was this helpful?