Get cases by alert APIedit

This functionality is in technical preview and may be changed or removed in a future release. Elastic will apply best effort to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.

Returns the cases associated with a specific alert.

Requestedit

GET <kibana host>:<port>/api/cases/alerts/<alert_id>

GET <kibana host>:<port>/s/<space_id>/api/cases/alerts/<alert_id>

Prerequisitesedit

You must have read privileges for the Cases feature in the Management, Observability, or Security section of the Kibana feature privileges, depending on the owner of the cases you’re seeking.

Path parametersedit

<alert_id>
(Required, string) The alert identifier.
<space_id>
(Optional, string) An identifier for the space. If it is not specified, the default space is used.

Query parametersedit

owner
(Optional, string or array of strings) A filter to limit the retrieved cases to a specific set of applications. Valid values are: cases, observability, and securitySolution. If this parameter is omitted, the response contains all cases that the user has access to read.

Response codesedit

200
Indicates a successful call.

Examplesedit

Return cases associated with the alert ID 09f0c261e39e36351d75995b78bb83673774d1bc2cca9df2d15f0e5c0a99a540:

GET api/cases/alerts/09f0c261e39e36351d75995b78bb83673774d1bc2cca9df2d15f0e5c0a99a540

The API returns a JSON array containing the identifier and title of the cases. For example:

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