Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Kibana roles API

Manage the roles that grant Elasticsearch and Kibana privileges.

Kibana roles API is one of 60 APIs that Kibana publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include roles. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and authentication docs.

This API exposes 5 operations across 3 paths, and defines 7 schemas. It is described by OpenAPI 3.0.3.

Requests are made against a single base URL, https://{kibana_url}.

5 operations 3 paths 7 schemas 1 DELETE2 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
Base URL
https://localhost:5601/api
Authentication
API Key, HTTP Basic
Contact
Kibana Team
Resource Areas
1

Authentication & Security 2

Kibana roles API declares 2 security schemes for authenticating requests. An API key is passed in the header as Authorization (apiKeyAuth). It accepts HTTP basic authentication (basicAuth). By default, every request must be authenticated.

  • apiKeyAuth — These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: Authorization: ApiKey base64A…

Paths & Operations 5

Across 3 paths, the API surfaces 5 operations — 1 DELETE, 2 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

roles 5

Manage the roles that grant Elasticsearch and Kibana privileges.

GET
/api/security/role
Get all roles
get-security-role 1 param → 200
DELETE
/api/security/role/{name}
Delete a role
delete-security-role-name 2 params → 204
GET
/api/security/role/{name}
Get a role
get-security-role-name 2 params → 200
PUT
/api/security/role/{name}
Create or update a role
put-security-role-name 3 params body → 204
POST
/api/security/roles
Create or update roles
post-security-roles 1 param body → 200

Schemas 7

The contract defines 7 schemas that model the data the API accepts and returns. The most detailed are Kibana_HTTP_APIs_security_role_remote_indices_privileges (6 properties), Kibana_HTTP_APIs_security_role_indices_privileges (5 properties), Kibana_HTTP_APIs_security_role_elasticsearch (5 properties), Kibana_HTTP_APIs_security_role_put_payload (4 properties). Each schema is shown below with its type and property counts.

Kibana_HTTP_APIs_security_role_kibana_privilege
object
The Kibana privilege entry for the role.
3 properties 1 required
Kibana_HTTP_APIs_security_role_elasticsearch
object
The Elasticsearch cluster, index, and remote cluster security privileges for the role.
5 properties
Kibana_HTTP_APIs_security_role_put_payload
object
The role definition to create or update.
4 properties 1 required
Kibana_HTTP_APIs_security_role_remote_indices_privileges
object
The remote indices privileges entry.
6 properties 3 required
Kibana_HTTP_APIs_security_role_indices_privileges
object
The indices privileges entry.
5 properties 2 required
Kibana_HTTP_APIs_security_role_remote_cluster_privileges
object
The remote cluster privileges entry.
2 properties 2 required
Kibana_HTTP_APIs_security_roles_bulk_create_or_update_payload
object
The request body for bulk creating or updating roles.
1 property 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

kibana-roles-api-openapi.yml Raw ↑

Other APIs Kibana publishes across the network.

Kibana Actions API
Kibana agent builder API
Kibana alerting API
Kibana APM agent configuration API
Kibana APM agent keys API
Kibana APM annotations API
Kibana APM server schema API
Kibana APM sourcemaps API
Kibana cases API
Kibana connectors API
Kibana Data streams API
Kibana data views API