Cfengine Cmdb API

The Cmdb API from Cfengine — 3 operation(s) for cmdb.

Operations 4

GET /api/cmdb/v2/{hostkey} Get all configuration entries for a specific host #
POST /api/cmdb/v2/{hostkey} Create a new configuration entry for a host #
GET /api/cmdb/v2/{hostkey}/{hostkeyid} Get the rendered JSON configuration file for a host #
GET /api/cmdb/v2/subentry/{hostkey}/{type}/{name} Get a specific sub-entry by type and name #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cfengine:cfengine-cmdb-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cfengine-cmdb-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cfengine Cmdb API
  version: '2026-10-08'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-10-08: 44 operation(s) read from 8 public documentation page(s) (each operation names its page in x-source). This is not the provider''s published contract; Cfengine has published no machine-readable contract that the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 42
    documentation: 2
    pages-with-code: 8
    pages-read: 8
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-10-08'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.cfengine.com/docs/lts/api/enterprise-api-ref
  - https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/host
  - https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/ai-chat
  - https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/cmdb-api
  - https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/web-rbac
  - https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/build-api
  - https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/inventory
  - https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/users-rbac
servers:
- url: https://hub.cfengine.com
security:
- api_token: []
- Basic: []
- Bearer: []
tags:
- name: Cmdb
paths:
  /api/cmdb/v2/{hostkey}:
    get:
      operationId: get_api_cmdb_v2_hostkey
      tags:
      - Cmdb
      summary: Get all configuration entries for a specific host
      x-source: https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/cmdb-api
      parameters:
      - name: hostkey
        in: path
        required: true
        schema:
          type: string
      - name: sortColumn
        in: query
        required: false
        schema:
          type: string
        description: Column to sort by.
      - name: sortDescending
        in: query
        required: false
        schema:
          type: boolean
        description: Sort in descending order.
      - name: skip
        in: query
        required: false
        schema:
          type: integer
        description: Number of results to skip for pagination.
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: Limit the number of results (max 100).
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiCmdbV2HostkeyResponse'
      x-evidence:
        kind: documentation
    post:
      operationId: post_api_cmdb_v2_hostkey
      tags:
      - Cmdb
      summary: Create a new configuration entry for a host
      x-source: https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/cmdb-api
      parameters:
      - name: hostkey
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiCmdbV2HostkeyRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiCmdbV2HostkeyResponse'
      x-evidence:
        kind: documentation
  /api/cmdb/v2/{hostkey}/{hostkeyid}:
    get:
      operationId: get_api_cmdb_v2_hostkey_hostkeyid
      tags:
      - Cmdb
      summary: Get the rendered JSON configuration file for a host
      x-source: https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/cmdb-api
      parameters:
      - name: hostkey
        in: path
        required: true
        schema:
          type: string
      - name: hostkeyid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiCmdbV2HostkeyHostkeyidResponse'
      x-evidence:
        kind: documentation
        collapsed_from: 2 example path(s) differing only at hostkeyId
  /api/cmdb/v2/subentry/{hostkey}/{type}/{name}:
    get:
      operationId: get_api_cmdb_v2_subentry_hostkey_type_name
      tags:
      - Cmdb
      summary: Get a specific sub-entry by type and name
      x-source: https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/cmdb-api
      parameters:
      - name: hostkey
        in: path
        required: true
        schema:
          type: string
      - name: type
        in: path
        required: true
        schema:
          type: string
      - name: name
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiCmdbV2SubentryHostkeyTypeNameResponse'
      x-evidence:
        kind: documentation
components:
  schemas:
    GetApiCmdbV2HostkeyResponse:
      type: object
      properties:
        data:
          type: array
          description: Array of configuration entries.
        meta:
          type: object
          description: Metadata about pagination.
    PostApiCmdbV2HostkeyResponse:
      type: object
      properties:
        id:
          type: integer
          description: Identifier of the created entry.
    GetApiCmdbV2HostkeyHostkeyidResponse:
      type: object
      properties:
        classes:
          type: object
          description: Rendered classes configuration.
        variables:
          type: object
          description: Rendered variables configuration.
    GetApiCmdbV2SubentryHostkeyTypeNameResponse:
      type: object
      properties:
        id:
          type: integer
        entry_id:
          type: integer
        item_name:
          type: string
        item_value:
          type: string
    PostApiCmdbV2HostkeyRequest:
      type: object
      properties:
        type:
          type: string
          description: 'Configuration type. Allowed values: inventory, class, variable, policy_configuration.'
        name:
          type: string
          description: Configuration entry name (max 255 characters).
        description:
          type: string
          description: Configuration description.
        tags:
          type: array
          description: Array of tags.
        meta:
          type: object
          description: Metadata object.
        entries:
          type: array
          description: Array of sub-entries.
      required:
      - type
      - name
  securitySchemes:
    api_token:
      type: apiKey
      in: header
      name: Authorization
      x-source: https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/ldap-api/
    Basic:
      type: http
      scheme: basic
      x-source: https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/ldap-api/
    Bearer:
      type: http
      scheme: bearer
      x-source: https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/ldap-api/