Get Ansible file
Retrieve a playbook or plugin inventory YAML file from its configured git repository.
get
Path parameters
orgstring · min: 1 · max: 128RequiredExample:
Org is the organisation identifier.
4eprojectstring · min: 1 · max: 128RequiredExample:
Project is the project identifier.
vQuery parameters
resource_typestring · enumRequiredExample:
Type of ansible resource (playbook or inventory).
playbookPossible values: identifierstringRequiredExample:
Identifier of the playbook or inventory.
my-playbookHeader parameters
Harness-Accountstring · min: 1 · max: 128RequiredExample:
Account is the internal customer account ID.
4v4Responses
200
OK response.
application/json
string · binaryOptional
400
BadRequestError: Bad Request response.
application/vnd.goa.error
401
UnauthorizedError: Unauthorized response.
application/vnd.goa.error
403
ForbiddenError: Forbidden response.
application/vnd.goa.error
404
NotFoundError: Not Found response.
application/vnd.goa.error
408
TimeoutError: Request Timeout response.
application/vnd.goa.error
409
ConflictError: Conflict response.
application/vnd.goa.error
423
LockedError: Locked response.
application/vnd.goa.error
499
ContextCancelledError: response.
application/vnd.goa.error
500
InternalServerError: Internal Server Error response.
application/vnd.goa.error
502
BadGatewayError: Bad Gateway response.
application/vnd.goa.error
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: */*
binaryLast updated
Was this helpful?