capabilities.work

List inventories a host belongs to

One step with Harness. We can help you get access.

Look something up

List inventories a host belongs to

with Harness
Works with AI assistants

Use Harness: its Harness Ansible API lets you list inventories a host belongs to in a single step (GET /iacm/api/orgs/{org}/projects/{project}/ansible/hosts/{id}/inventories). Harness also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • Which Ansible inventories include a given host?
  • Is a particular host a member of more than one inventory?
Say it to your AI assistant
  • List the inventories that host {id} belongs to in {org}/{project}.
  • Which inventories is host {id} a member of in project {project} of org {org}.
For your developer

GET /iacm/api/orgs/{org}/projects/{project}/ansible/hosts/{id}/inventories in Harness Ansible API. Full spec on APIs.io.