Get Elastic Endpoint exception list items

GET /api/endpoint_list/items/_find

Spaces method and path for this operation:

get /s/{space_id}/api/endpoint_list/items/_find

Refer to Spaces for more information.

Get a list of all Elastic Endpoint exception list items.

Query parameters

  • filter string(nonempty)

    Filters the returned results according to the value of the specified field, using the <field name>:<field value> syntax.

    Minimum length is 1.

  • page integer

    The page number to return

    Minimum value is 0.

  • per_page integer

    The number of exception list items to return per page

    Minimum value is 0.

  • sort_field string(nonempty)

    Determines which field is used to sort the results

    Minimum length is 1.

  • sort_order string

    Determines the sort order, which can be desc or asc

    Values are desc or asc.

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
    • data array Required

      The list of endpoint exception list items.

    • page integer Required

      The current page number.

      Minimum value is 0.

    • per_page integer Required

      The number of items per page.

      Minimum value is 0.

    • pit string

      The point-in-time ID for pagination.

    • total integer Required

      The total number of endpoint exception list items.

      Minimum value is 0.

  • 400 application/json

    Invalid input data

    One of:
  • 401 application/json

    Unsuccessful authentication

    Hide response attributes Show response attributes object
    • error string Required
    • message string Required
    • statusCode integer Required
  • 403 application/json

    Insufficient privileges

    Hide response attributes Show response attributes object
    • error string Required
    • message string Required
    • statusCode integer Required
  • 404 application/json

    Endpoint list not found

    Hide response attributes Show response attributes object
    • message string Required
    • status_code integer Required
  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
    • message string Required
    • status_code integer Required
GET /api/endpoint_list/items/_find
curl \
 --request GET 'https://localhost:5601/api/endpoint_list/items/_find' \
 --header "Authorization: $API_KEY"
Response examples (200)
{
  "data": [
    {
      "comments": [],
      "created_at": "2025-01-01T12:00:00.000Z",
      "created_by": "elastic",
      "description": "Blocks a known malicious file by its hash",
      "entries": [
        {
          "field": "file.hash.sha256",
          "operator": "included",
          "type": "match",
          "value": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
        }
      ],
      "id": "d4b0c1e2-3f4a-5b6c-7d8e-9f0a1b2c3d4e",
      "item_id": "block-malicious-file",
      "list_id": "endpoint_list",
      "name": "Block malicious file",
      "namespace_type": "agnostic",
      "os_types": [
        "windows"
      ],
      "tags": [
        "policy:all"
      ],
      "tie_breaker_id": "f1e2d3c4-b5a6-7890-abcd-ef1234567890",
      "type": "simple",
      "updated_at": "2025-01-01T12:00:00.000Z",
      "updated_by": "elastic"
    }
  ],
  "page": 1,
  "per_page": 20,
  "total": 1
}
Response examples (400)
{
  "error": "Bad Request",
  "message": "[request query]: page: Expected number, received string",
  "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/endpoint_list/items/_find] is unauthorized for user, this action is granted by the Kibana privileges [lists-read]",
  "statusCode": 403
}
Response examples (404)
{
  "message": "list id: \"endpoint_list\" does not exist",
  "status_code": 404
}
Response examples (500)
{
  "message": "Internal Server Error",
  "status_code": 500
}