Spaces method and path for this operation:
get /s/{space_id}/api/exception_lists/_find
Refer to Spaces for more information.
Get a list of all exception list containers.
Query parameters
-
Filters the returned results according to the value of the specified field.
Uses the
so type.field name:fieldvalue syntax, whereso typecan be:exception-list: Specify a space-aware exception list.exception-list-agnostic: Specify an exception list that is shared across spaces.
-
Determines whether the returned containers are Kibana associated with a Kibana space or available in all spaces (
agnosticorsingle)Values are
agnosticorsingle. Default value is["single"]. -
The page number to return
Minimum value is
1. -
The number of exception lists to return per page
Minimum value is
1. -
Determines which field is used to sort the results.
-
Determines the sort order, which can be
descorasc.Values are
descorasc.
GET /api/exception_lists/_find
curl \ --request GET 'https://localhost:5601/api/exception_lists/_find' \ --header "Authorization: $API_KEY" Response examples (200)
{ "data": [ { "id": "9e5fc75a-a3da-46c5-96e3-a2ec59c6bb85", "name": "Detection Exception List", "tags": [ "malware" ], "type": "detection", "list_id": "simple_list", "version": 1, "_version": "WzIsMV0=", "os_types": [], "immutable": false, "created_at": "2025-01-07T19:34:27.942Z", "created_by": "elastic", "updated_at": "2025-01-07T19:34:27.942Z", "updated_by": "elastic", "description": "This is a sample detection type exception list.", "namespace_type": "single", "tie_breaker_id": "78f1aca1-f8ee-4eb5-9ceb-f5c3ee656cb3" } ], "page": 1, "total": 1, "per_page": 20 } Response examples (400)
{ "error": "Bad Request", "message": "[request query]: namespace_type.0: Invalid enum value. Expected 'agnostic' | 'single', received 'blob'", "statusCode": 400 } Response examples (401)
{ "error": "Unauthorized", "message": "[security_exception\\n\\tRoot causes:\\n\\t\\tsecurity_exception: unable to authenticate user [elastic] for REST request [/_security/_authenticate]]: unable to authenticate user [elastic] for REST request [/_security/_authenticate]", "statusCode": 401 } Response examples (403)
{ "error": "Forbidden", "message": "API [GET /api/exception_lists/_find?namespace_type=single] is unauthorized for user, this action is granted by the Kibana privileges [lists-read]", "statusCode": 403 } Response examples (500)
{ "message": "Internal Server Error", "status_code": 500 }