OpenSearch/watcher/docs/reference/rest/info.asciidoc

34 lines
907 B
Plaintext

[[api-rest-info]]
==== Info API
The watcher info API gives basic version information on the watcher plugin that is installed.
The following example queries the `info` API.
[source,js]
--------------------------------------------------
GET _watcher
--------------------------------------------------
// AUTOSENSE
A successful call returns a JSON structure similar to the following example:
[source,js]
--------------------------------------------------
{
"version": {
"name": "{version}",
"number": "{version}", <1>
"build_hash": "41f64213d2d370bf66f0e9b839a30a19", <2>
"build_timestamp": "2015-04-07T13:34:42Z", <3>
"build_snapshot": true <4>
}
}
--------------------------------------------------
<1> The build number of the plugin
<2> The build hash of the plugin
<3> The time the plugin was built
<4> Whether or not this plugin was a development snapshot build