Retrieve a Host
get
/api/v2/hosts/{id}/
Make GET request to this resource to retrieve a single host record containing the following fields:
id
: Database ID for this host. (integer)type
: Data type for this host. (choice)url
: URL for this host. (string)related
: Data structure with URLs of related resources. (object)summary_fields
: Data structure with name/description for related resources. The output for some objects may be limited for performance reasons. (object)created
: Timestamp when this host was created. (datetime)modified
: Timestamp when this host was last modified. (datetime)name
: Name of this host. (string)description
: Optional description of this host. (string)inventory
: (id)enabled
: Is this host online and available for running jobs? (boolean)instance_id
: The value used by the remote inventory source to uniquely identify the host (string)variables
: Host variables in JSON or YAML format. (json)has_active_failures
: (field)has_inventory_sources
: (field)last_job
: (id)last_job_host_summary
: (id)ansible_facts_modified
: The date and time ansible_facts was last modified. (datetime)
Request
Supported Media Types
- application/json
Path Parameters
Query Parameters
-
search: string
A search term.