Cfengine Role API

The Role API from Cfengine — 2 operation(s) for role.

Operations 8

DELETE /api/role/{roleId} Remove role definition #
GET /api/role/{roleId} Get role definition #
POST /api/role/{roleId} Update role definition #
PUT /api/role/{roleId} Create a new role definition #
DELETE /api/role/{roleName}/permissions Revoke permissions from role #
GET /api/role/{roleName}/permissions Get role permissions #
POST /api/role/{roleName}/permissions Add permissions to role #
PUT /api/role/{roleName}/permissions Rewrite role’s permissions #

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-role-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-role-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cfengine Role 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: Role
paths:
  /api/role/{roleId}:
    delete:
      operationId: delete_api_role_roleId
      tags:
      - Role
      summary: Remove role definition
      x-source: https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/users-rbac
      parameters:
      - name: roleId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    get:
      operationId: get_api_role_roleId
      tags:
      - Role
      summary: Get role definition
      x-source: https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/users-rbac
      parameters:
      - name: roleId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiRoleRoleidResponse'
      x-evidence:
        kind: documentation
    post:
      operationId: post_api_role_roleId
      tags:
      - Role
      summary: Update role definition
      x-source: https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/users-rbac
      parameters:
      - name: roleId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiRoleRoleidRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    put:
      operationId: put_api_role_roleId
      tags:
      - Role
      summary: Create a new role definition
      x-source: https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/users-rbac
      parameters:
      - name: roleId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PutApiRoleRoleidRequest'
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/role/{roleName}/permissions:
    delete:
      operationId: delete_api_role_roleName_permissions
      tags:
      - Role
      summary: Revoke permissions from role
      x-source: https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/web-rbac
      parameters:
      - name: roleName
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteApiRoleRolenamePermissionsResponse'
      x-evidence:
        kind: documentation
    get:
      operationId: get_api_role_roleName_permissions
      tags:
      - Role
      summary: Get role permissions
      x-source: https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/web-rbac
      parameters:
      - name: roleName
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiRoleRolenamePermissionsResponse'
      x-evidence:
        kind: documentation
    post:
      operationId: post_api_role_roleName_permissions
      tags:
      - Role
      summary: Add permissions to role
      x-source: https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/web-rbac
      parameters:
      - name: roleName
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiRoleRolenamePermissionsRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiRoleRolenamePermissionsResponse'
      x-evidence:
        kind: documentation
    put:
      operationId: put_api_role_roleName_permissions
      tags:
      - Role
      summary: Rewrite role’s permissions
      x-source: https://docs.cfengine.com/docs/lts/api/enterprise-api-ref/web-rbac
      parameters:
      - name: roleName
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PutApiRoleRolenamePermissionsRequest'
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PutApiRoleRolenamePermissionsResponse'
      x-evidence:
        kind: documentation
components:
  schemas:
    PostApiRoleRoleidRequest:
      type: object
      properties:
        description:
          type: string
          description: Role description.
        includeContext:
          type: string
          description: Permit access to hosts that have class set .
        excludeContext:
          type: string
          description: Permit access to hosts that have class not set
    PutApiRoleRolenamePermissionsResponse:
      type: object
      properties:
        status:
          type: integer
          description: HTTP 201 Created
    PostApiRoleRolenamePermissionsRequest:
      type: object
      properties:
        alias:
          type: array
          description: 'Array of permission aliases. Example: ["Inventory.post", "VariablesDictionary.get"]'
      required:
      - alias
    PostApiRoleRolenamePermissionsResponse:
      type: object
      properties:
        status:
          type: integer
          description: HTTP 201 Created
    GetApiRoleRoleidResponse:
      type: object
      properties:
        id:
          type: string
          description: Unique role name.
        description:
          type: string
          description: Role description.
        includeContext:
          type: string
          description: Permit access to hosts that have class set .
        excludeContext:
          type: string
          description: Permit access to hosts that have class not set .
    PutApiRoleRoleidRequest:
      type: object
      properties:
        description:
          type: string
          description: Role description.
        includeContext:
          type: string
          description: Permit access to hosts that have class set .
        excludeContext:
          type: string
          description: Permit access to hosts that have class not set .
    GetApiRoleRolenamePermissionsResponse:
      type: object
      properties:
        alias:
          type: string
          description: Alias (ID) of a permission
        group:
          type: string
          description: Group of a permission.
        name:
          type: string
          description: Name of a permission.
        description:
          type: string
          description: Description of a permission.
        application:
          type: string
          description: 'Application of a permission. Allowed values: API , Mission portal'
        allowed_by_default:
          type: boolean
          description: Permission allowed by default. New role will be able to perform allowed by default actions.
    DeleteApiRoleRolenamePermissionsResponse:
      type: object
      properties:
        status:
          type: integer
          description: HTTP 204 No Content
    PutApiRoleRolenamePermissionsRequest:
      type: object
      properties:
        alias:
          type: array
          description: 'Array of permission aliases. Example: ["Inventory.post", "VariablesDictionary.get"]'
      required:
      - alias
  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/