Show Ansible Host
Get details for a single host.
Org is the organisation identifier.
rhkProject is the project identifier.
lkThe unique identifier for this host
dc538c61-de48-4220-958c-5f3c4f983daaAccount is the internal customer account ID.
rOK response.
Timestamp when the resource was created
1627590400The address of the host (hostname or IP)
web-server-1.example.comThe unique identifier for this host
dc538c61-de48-4220-958c-5f3c4f983daaList of inventory identifiers this host belongs to
["inventory-1","inventory-2"]Timestamp when the resource was last updated
1627590400BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
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?