Type to search.

Query watches

  • POST also GET /_watcher/_query/watches
Auth The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats. Availability Generally available since 7.11 This functionality is generally available and ready for production usage. Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

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