Find cases by alert

edit

Uses an alert ID (alert id) to retrieve the case IDs of any cases the alert is attached to.

The case ID is identical to the case’s saved object ID.

Console supports only Elasticsearch APIs. Console doesn’t allow interactions with Kibana APIs. You must use curl or another HTTP tool instead. For more information, refer to Run Elasticsearch API requests.

Request URL

edit

GET <kibana host>:<port>/api/cases/alerts/<alert id>

URL parts

edit

The URL must include the alert ID, which is used to retrieve any cases the alert is attached to.

URL query parameters

edit
Name Type Description Required

owner

String or String[]

A filter to limit the retrieved case IDs to a specific set of applications. If you omit this parameter, the response will contain every case ID that the user has read access to.

No

Example request

edit

Returns case IDs with the alert ID 293f1bc0-74f6-11ea-b83a-553aecdb28b6 attached to them:

GET api/cases/alerts/293f1bc0-74f6-11ea-b83a-553aecdb28b6

Response code

edit
200
Indicates a successful call.

Response payload

edit

A JSON array containing any case IDs associated with the specified alert. Case titles are also retrieved.

Example response

edit
[
    {
        "id": "8af6ac20-74f6-11ea-b83a-553aecdb28b6",
        "title": "Test 1"
    },
    {
        "id": "a18b38a0-71b0-11ea-a0b2-c51ea50a58e2",
        "title": "Test 2"
    }
]