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

Show Ansible Host

Get details for a single host.

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

Org is the organisation identifier.

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

Project is the project identifier.

Example: lk
idstringRequired

The unique identifier for this host

Example: dc538c61-de48-4220-958c-5f3c4f983daa
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: r
Responses
200

OK response.

application/json
createdinteger · int64Required

Timestamp when the resource was created

Example: 1627590400
host_addressstringRequired

The address of the host (hostname or IP)

Example: web-server-1.example.com
idstringRequired

The unique identifier for this host

Example: dc538c61-de48-4220-958c-5f3c4f983daa
inventoriesstring[]Optional

List of inventory identifiers this host belongs to

Example: ["inventory-1","inventory-2"]
updatedinteger · int64Required

Timestamp when the resource was last updated

Example: 1627590400
get/api/orgs/{org}/projects/{project}/ansible/hosts/{id}
GET /api/orgs/{org}/projects/{project}/ansible/hosts/{id} HTTP/1.1
Host: localhost:80
Harness-Account: r
Accept: */*
{
  "created": 1627590400,
  "host_address": "web-server-1.example.com",
  "id": "dc538c61-de48-4220-958c-5f3c4f983daa",
  "inventories": [
    "inventory-1",
    "inventory-2"
  ],
  "last_activity": {
    "created": 1627590400,
    "playbooks": [
      "deploy.yml"
    ],
    "status": "ok"
  },
  "updated": 1627590400
}

Last updated

Was this helpful?