Get a watch Added in 5.6.0
Path parameters
-
Watch ID
GET
/_watcher/watch/{id}
curl \
-X GET http://api.example.com/_watcher/watch/{id}
Response examples (200)
{
"found": true,
"_id": "string",
"status": {
"actions": {
"additionalProperty1": {
"ack": {
"state": "awaits_successful_execution",
"": "string"
},
"last_execution": {
"successful": true,
"": "string",
"reason": "string"
},
"last_successful_execution": {
"successful": true,
"": "string",
"reason": "string"
},
"last_throttle": {
"reason": "string",
"": "string"
}
},
"additionalProperty2": {
"ack": {
"state": "awaits_successful_execution",
"": "string"
},
"last_execution": {
"successful": true,
"": "string",
"reason": "string"
},
"last_successful_execution": {
"successful": true,
"": "string",
"reason": "string"
},
"last_throttle": {
"reason": "string",
"": "string"
}
}
},
"": "string",
"state": {
"active": true,
"": "string"
},
"version": 42.0,
"execution_state": "string"
},
"watch": {
"actions": {
"additionalProperty1": {
"action_type": "email",
"condition": {
"always": {},
"array_compare": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"compare": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"never": {},
"script": {
"lang": "string",
"params": {},
"source": "string",
"id": "string"
}
},
"foreach": "string",
"max_iterations": 42.0,
"name": "string",
"throttle_period": "string",
"": {
"auth": {},
"body": "string",
"connection_timeout": "string",
"headers": {},
"host": "string",
"method": "head",
"params": {},
"path": "string",
"port": 42.0,
"proxy": {},
"read_timeout": "string",
"scheme": "http",
"url": "string"
},
"transform": {
"chain": [
{}
],
"script": {
"lang": "string",
"params": {},
"source": "string",
"id": "string"
},
"search": {
"request": {},
"timeout": "string"
}
},
"index": {
"index": "string",
"doc_id": "string",
"refresh": "true",
"op_type": "index",
"timeout": "string",
"execution_time_field": "string"
},
"logging": {
"level": "string",
"text": "string",
"category": "string"
},
"slack": {
"account": "string",
"message": {
"attachments": [
{}
],
"dynamic_attachments": {},
"from": "string",
"icon": "string",
"text": "string",
"to": [
"string"
]
}
}
},
"additionalProperty2": {
"action_type": "email",
"condition": {
"always": {},
"array_compare": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"compare": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"never": {},
"script": {
"lang": "string",
"params": {},
"source": "string",
"id": "string"
}
},
"foreach": "string",
"max_iterations": 42.0,
"name": "string",
"throttle_period": "string",
"": {
"auth": {},
"body": "string",
"connection_timeout": "string",
"headers": {},
"host": "string",
"method": "head",
"params": {},
"path": "string",
"port": 42.0,
"proxy": {},
"read_timeout": "string",
"scheme": "http",
"url": "string"
},
"transform": {
"chain": [
{}
],
"script": {
"lang": "string",
"params": {},
"source": "string",
"id": "string"
},
"search": {
"request": {},
"timeout": "string"
}
},
"index": {
"index": "string",
"doc_id": "string",
"refresh": "true",
"op_type": "index",
"timeout": "string",
"execution_time_field": "string"
},
"logging": {
"level": "string",
"text": "string",
"category": "string"
},
"slack": {
"account": "string",
"message": {
"attachments": [
{}
],
"dynamic_attachments": {},
"from": "string",
"icon": "string",
"text": "string",
"to": [
"string"
]
}
}
}
},
"condition": {
"always": {},
"array_compare": {
"additionalProperty1": {
"path": "string"
},
"additionalProperty2": {
"path": "string"
}
},
"compare": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"never": {},
"script": {
"lang": "string",
"params": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"source": "string",
"id": "string"
}
},
"input": {
"chain": {
"inputs": [
{
"*": {}
}
]
},
"http": {
"extract": [
"string"
],
"request": {
"auth": {
"basic": {}
},
"body": "string",
"connection_timeout": "string",
"headers": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"host": "string",
"method": "head",
"params": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"path": "string",
"port": 42.0,
"proxy": {
"host": "string",
"port": 42.0
},
"read_timeout": "string",
"scheme": "http",
"url": "string"
},
"response_content_type": "json"
},
"search": {
"extract": [
"string"
],
"request": {
"body": {
"query": {}
},
"indices": [
"string"
],
"indices_options": {
"allow_no_indices": true,
"expand_wildcards": "string",
"ignore_unavailable": true,
"ignore_throttled": true
},
"search_type": "query_then_fetch",
"template": {
"explain": true,
"id": "string",
"params": {},
"profile": true,
"source": "string"
},
"rest_total_hits_as_int": true
},
"timeout": "string"
},
"simple": {
"additionalProperty1": {},
"additionalProperty2": {}
}
},
"metadata": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"status": {
"actions": {
"additionalProperty1": {
"ack": {
"state": "awaits_successful_execution"
},
"last_execution": {
"successful": true,
"reason": "string"
},
"last_successful_execution": {
"successful": true,
"reason": "string"
},
"last_throttle": {
"reason": "string"
}
},
"additionalProperty2": {
"ack": {
"state": "awaits_successful_execution"
},
"last_execution": {
"successful": true,
"reason": "string"
},
"last_successful_execution": {
"successful": true,
"reason": "string"
},
"last_throttle": {
"reason": "string"
}
}
},
"": "string",
"state": {
"active": true,
"": "string"
},
"version": 42.0,
"execution_state": "string"
},
"throttle_period": "string",
"": 42.0,
"transform": {
"chain": [
{}
],
"script": {
"lang": "string",
"params": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"source": "string",
"id": "string"
},
"search": {
"request": {
"body": {
"query": {}
},
"indices": [
"string"
],
"indices_options": {
"allow_no_indices": true,
"expand_wildcards": "string",
"ignore_unavailable": true,
"ignore_throttled": true
},
"search_type": "query_then_fetch",
"template": {
"explain": true,
"id": "string",
"params": {},
"profile": true,
"source": "string"
},
"rest_total_hits_as_int": true
},
"timeout": "string"
}
},
"trigger": {
"schedule": {
"timezone": "string",
"cron": "string",
"daily": {
"at": [
{}
]
},
"hourly": {
"minute": [
42.0
]
},
"interval": "string",
"monthly": {
"at": [
"string"
],
"on": [
42.0
]
},
"weekly": {
"at": [
"string"
],
"on": [
"sunday"
]
},
"yearly": {
"at": [
"string"
],
"int": [
"january"
],
"on": [
42.0
]
}
}
}
},
"_primary_term": 42.0,
"_seq_no": 42.0,
"_version": 42.0
}