List Inventories For Host
List all inventories that a specific host belongs to.
get
Path parameters
orgstring · min: 1 · max: 128RequiredExample:
Org is the organisation identifier.
xprojectstring · min: 1 · max: 128RequiredExample:
Project is the project identifier.
8idstringRequiredExample:
The unique identifier for this host
dc538c61-de48-4220-958c-5f3c4f983daaQuery parameters
limitinteger · int64 · min: 1 · max: 1000OptionalDefault:
Limit is the number of records to return for a page.
30Example: 30pageinteger · int64 · min: 1OptionalDefault:
Page is the page number to return relative to the page 'limit'.
1Example: 1Header parameters
Harness-Accountstring · min: 1 · max: 128RequiredExample:
Account is the internal customer account ID.
p4yResponses
200
OK response.
application/json
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/hosts/{id}/inventories
GET /api/orgs/{org}/projects/{project}/ansible/hosts/{id}/inventories HTTP/1.1
Host: localhost:80
Harness-Account: p4y
Accept: */*
[
{
"account": "zd",
"created": 1627590400,
"description": "Production infrastructure inventory",
"identifier": "test_inventory",
"name": "test inventory",
"org": "2w0",
"project": "u",
"tags": [
"Molestias autem cum sint.",
"Eum omnis."
],
"type": "remote",
"updated": 1627686800
},
{
"account": "zd",
"created": 1627590400,
"description": "Production infrastructure inventory",
"identifier": "test_inventory",
"name": "test inventory",
"org": "2w0",
"project": "u",
"tags": [
"Molestias autem cum sint.",
"Eum omnis."
],
"type": "remote",
"updated": 1627686800
}
]Last updated
Was this helpful?