camayoc.inventory module

Host Based Inventory (HBI) API.

camayoc.inventory.INVENTORY_HOSTS_PATH = '/hosts'

The path to the endpoint used for obaining hosts facts.

camayoc.inventory.client(url, auth, x_rh_identity=None, method='get', cond=<function <lambda>>)[source]

Simple REST API client.

camayoc.inventory.find_hosts(host_id_list, api_url, auth=None, x_rh_identity=None)[source]

Find one or more hosts by their ID.

camayoc.inventory.get_hosts(api_url, auth=None, x_rh_identity=None)[source]

Read the entire list of hosts.