GET /_watcher/watch/{id}
Console
GET _watcher/watch/my_watch
resp = client.watcher.get_watch( id="my_watch", )
const response = await client.watcher.getWatch({ id: "my_watch", });
response = client.watcher.get_watch( id: "my_watch" )
$resp = $client->watcher()->getWatch([ "id" => "my_watch", ]);
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_watcher/watch/my_watch"
Response examples (200)
A successful response from `GET _watcher/watch/my_watch`.
{ "found": true, "_id": "my_watch", "_seq_no": 0, "_primary_term": 1, "_version": 1, "status": { "version": 1, "state": { "active": true, "timestamp": "2015-05-26T18:21:08.630Z" }, "actions": { "test_index": { "ack": { "timestamp": "2015-05-26T18:21:08.630Z", "state": "awaits_successful_execution" } } } }, "watch": { "input": { "simple": { "payload": { "send": "yes" } } }, "condition": { "always": {} }, "trigger": { "schedule": { "hourly": { "minute": [0, 5] } } }, "actions": { "test_index": { "index": { "index": "test" } } } } }