Query watches

  • POST also GET /_watcher/_query/watches
Auth

Get all registered watches in a paginated manner and optionally filter watches by a query.

Note that only the _id and metadata.* fields are queryable or sortable.

Required privileges

Cluster privileges monitor_watcher

Request body

from number · default: 0

The offset from the first result to fetch. It must be non-negative.

size number · default: 10

The number of hits to return. It must be non-negative.

query {} Query

A query that filters the watches to be returned.

search_after union[]

Retrieve the next page of hits using a set of sort values from the previous page.

Response

application/json
count number required

The total number of watches found.

watches object[] required

A list of watches based on the from, size, or search_after request body parameters.

_id string required
_primary_term number
_seq_no number