From 0243f28e90d47dee684e637860a73db7c9a57d0c Mon Sep 17 00:00:00 2001 From: Lars Erik Wik Date: Thu, 11 Sep 2025 10:48:43 +0200 Subject: [PATCH] cmdb-api.markdown: host specific configuration API to v2 It appears that there is a new version (v2) of the API: ``` $ curl -k --user admin:password -X GET "https://localhost/api/cmdb//classes/default:cfengine_internal_masterfiles_update/" This version of CMDB API is no longer available. Please use /v2/... instead $ curl -k --user admin:password -X GET "https://localhost/api/cmdb/v2//classes/default:cfengine_internal_masterfiles_update/" {"data":[],"meta":{"total":0,"page":2,"count":0}} ``` Ticket: ENT-13208 Signed-off-by: Lars Erik Wik --- content/api/enterprise-api-ref/cmdb-api.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/api/enterprise-api-ref/cmdb-api.markdown b/content/api/enterprise-api-ref/cmdb-api.markdown index d7f34c5e6..fa8aa17c0 100644 --- a/content/api/enterprise-api-ref/cmdb-api.markdown +++ b/content/api/enterprise-api-ref/cmdb-api.markdown @@ -78,7 +78,7 @@ HTTP 200 Ok ## Get host's specific configuration -**URI:** https://hub.cfengine.com/api/cmdb/:hostkey/:type/:name/ +**URI:** https://hub.cfengine.com/api/cmdb/v2/:hostkey/:type/:name/ **Method:** GET @@ -98,7 +98,7 @@ HTTP 200 Ok ```console curl -k --user : \ -X GET \ - https://hub.cfengine.com/api/cmdb/SHA=f622992fa4525070f47da086041a38733496f03a77880f70b1ce6784c38f79ab/variables/HubCMDB:My.hostname/ + https://hub.cfengine.com/api/cmdb/v2/SHA=f622992fa4525070f47da086041a38733496f03a77880f70b1ce6784c38f79ab/variables/HubCMDB:My.hostname/ ``` **Example response:**