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

List Inventories For Host

List all inventories that a specific host belongs to.

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

Org is the organisation identifier.

Example: x
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: 8
idstringRequired

The unique identifier for this host

Example: dc538c61-de48-4220-958c-5f3c4f983daa
Query parameters
limitinteger · int64 · min: 1 · max: 1000Optional

Limit is the number of records to return for a page.

Default: 30Example: 30
pageinteger · int64 · min: 1Optional

Page is the page number to return relative to the page 'limit'.

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

Account is the internal customer account ID.

Example: p4y
Responses
200

OK response.

application/json
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?