Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 763510055b7634b0c799607073943cc1dcb151fa
https://github.com/tribe29/checkmk/commit/763510055b7634b0c799607073943cc1d…
Author: Benedikt Seidl <benedikt.seidl(a)tribe29.com>
Date: 2021-12-01 (Wed, 01 Dec 2021)
Changed paths:
A .werks/13399
M agents/.f12
A cmk/gui/plugins/openapi/endpoints/agent.py
M cmk/gui/plugins/openapi/endpoints/host_config.py
M cmk/gui/plugins/openapi/restful_objects/type_defs.py
A cmk/gui/utils/agent.py
M cmk/gui/wato/pages/download_agents.py
A tests/integration/cmk/gui/utils/test_agent.py
M tests/unit/cmk/gui/plugins/openapi/test_openapi_agent.py
Log Message:
-----------
13399 RESTAPI: Add endpoint for downloading agent by host name
Agent can now be downloaded by operating system and host name:
/check_mk/api/1.0/domain-types/agent/actions/download_by_host/invoke?os_type=linux_tgz&host_name=example.com
The previous URL used to download agents via the agent hash:
/check_mk/api/1.0/objects/agent_binary/80e99ba3a66d4880?os_type=linux_tgz
is replaced by
/check_mk/api/1.0/domain-types/agent/actions/download_by_hash/invoke?os_type=linux_tgz&agent_hash=80e99ba3a66d4880
In checkmk raw edition the packaged agents can now be downloaded by the following URL:
/check_mk/api/1.0/domain-types/agent/actions/download/invoke?os_type=linux_deb
Full description can be found in the built in REST API Documentation.
CMK-8630
Change-Id: I1b124df33be5e12d3baabf353945d82d9a79790e