List AI Indices
- Base URL
-
https://{kibana_url}
- GET /api/context_engine/ai_index
- GET /s/{space_id}/api/context_engine/ai_index
Lists up to 100 AI Indices in the current space that the caller can read. The response omits an AI Index when the caller cannot read its backing index. Empty AI Indices are still included. A caller with no read privilege on any index gets a 403 response.
The space comes from the request URL (/s/{spaceId}/…) or defaults to the default space. It cannot be specified in any other way.
Returns a 404 response when Context Engine is turned off in this space (contextEngine:enabled).
For more information, refer to the Context Engine documentation.
Required authorization
- Privileges contextEngine:read
Path parameters
-
space_idstringoptional -
An identifier for the space. If
space_idis not provided in the URL, the default space is used. Refer to Spaces for more information.
Responses
The AI Indices available to the caller in the current space.
The caller has no read privilege on any index, so Elasticsearch rejected the request.