Find case comments and alerts
Retrieves a paginated list of comments for a case. 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 with the comments you're seeking.
Path parameters
-
The identifier for the case. To retrieve case IDs, use the find cases API. All non-ASCII characters must be URL encoded.
Query parameters
-
The page number to return.
Default value is
1
. -
The number of items to return. Limited to 100 items.
Maximum value is
100
. Default value is20
. -
Determines the sort order.
Values are
asc
ordesc
. Default value isdesc
.
Responses
-
Indicates a successful call.
Hide response attributes Show response attributes object
-
An array containing users that are assigned to the case.
Not more than
10
elements. -
The case category.
-
An array of comment objects for the case.
Not more than
10000
elements.One of: Hide attributes Show attributes
-
The application that owns the cases: Stack Management, Observability, or Elastic Security.
Values are
cases
,observability
, orsecuritySolution
. -
Value is
alert
.
Hide attributes Show attributes
-
The application that owns the cases: Stack Management, Observability, or Elastic Security.
Values are
cases
,observability
, orsecuritySolution
. -
Value is
user
.
connector
object Required One of: Defines properties for connectors when type is
.none
.Hide attributes Show attributes
-
An object containing the connector fields. To create a case without a connector, specify null. To update a case to remove the connector, specify null.
-
The identifier for the connector. To create a case without a connector, use
none
. To update a case to remove the connector, specifynone
. -
The name of the connector. To create a case without a connector, use
none
. To update a case to remove the connector, specifynone
. -
The type of connector. To create a case without a connector, use
.none
. To update a case to remove the connector, specify.none
.Value is
.none
.
Defines properties for connectors when type is
.cases-webhook
.Hide attributes Show attributes
Defines properties for connectors when type is
.jira
.Hide attributes Show attributes
-
An object containing the connector fields. If you want to omit any individual field, specify null as its value.
-
The identifier for the connector. To retrieve connector IDs, use the find connectors API.
-
The name of the connector.
-
The type of connector.
Value is
.jira
.
Defines properties for connectors when type is
.resilient
.Hide attributes Show attributes
-
An object containing the connector fields. If you want to omit any individual field, specify null as its value.
-
The identifier for the connector.
-
The name of the connector.
-
The type of connector.
Value is
.resilient
.
Defines properties for connectors when type is
.servicenow
.Hide attributes Show attributes
-
An object containing the connector fields. If you want to omit any individual field, specify null as its value.
Hide fields attributes Show fields attributes object
-
The category of the incident.
-
The effect an incident had on business.
-
The severity of the incident.
-
The subcategory of the incident.
-
The extent to which the incident resolution can be delayed.
-
-
The identifier for the connector. To retrieve connector IDs, use the find connectors API.
-
The name of the connector.
-
The type of connector.
Value is
.servicenow
.
Defines properties for connectors when type is
.servicenow-sir
.Hide attributes Show attributes
-
An object containing the connector fields. If you want to omit any individual field, specify null as its value.
Hide fields attributes Show fields attributes object
-
The category of the incident.
-
Indicates whether cases will send a comma-separated list of destination IPs.
-
Indicates whether cases will send a comma-separated list of malware hashes.
-
Indicates whether cases will send a comma-separated list of malware URLs.
-
The priority of the issue.
-
Indicates whether cases will send a comma-separated list of source IPs.
-
The subcategory of the incident.
-
-
The identifier for the connector. To retrieve connector IDs, use the find connectors API.
-
The name of the connector.
-
The type of connector.
Value is
.servicenow-sir
.
Defines properties for connectors when type is
.swimlane
.Hide attributes Show attributes
-
An object containing the connector fields. If you want to omit any individual field, specify null as its value.
-
The identifier for the connector. To retrieve connector IDs, use the find connectors API.
-
The name of the connector.
-
The type of connector.
Value is
.swimlane
.
-
-
Custom field values for the case.
Hide customFields attributes Show customFields attributes object
-
The unique identifier for the custom field. The key value must exist in the case configuration settings.
-
The custom field type. It must match the type specified in the case configuration settings.
Values are
text
ortoggle
. value
string | null | boolean The custom field value. If the custom field is required, it cannot be explicitly set to null. However, for cases that existed when the required custom field was added, the default value stored in Elasticsearch is
undefined
. The value returned in the API and user interface in this case isnull
.
-
-
The elapsed time from the creation of the case to its closure (in seconds). If the case has not been closed, the duration is set to null. If the case was closed after less than half a second, the duration is rounded down to zero.
-
Hide external_service attributes Show external_service attributes object | null
-
The application that owns the cases: Stack Management, Observability, or Elastic Security.
Values are
cases
,observability
, orsecuritySolution
. -
An object that contains the case settings.
-
The severity of the case.
Values are
critical
,high
,low
, ormedium
. Default value islow
. -
The status of the case.
Values are
closed
,in-progress
, oropen
.
-
-
Authorization information is missing or invalid.
curl \
--request GET 'http://localhost:5601/api/cases/9c235210-6834-11ea-a78c-6ffb38a34414/comments/_find' \
--header "Authorization: $API_KEY"