2017-06-27 16:42:11 -04:00
|
|
|
[role="xpack"]
|
2018-06-19 13:33:57 -04:00
|
|
|
[testenv="basic"]
|
2017-06-27 16:42:11 -04:00
|
|
|
[[info-api]]
|
|
|
|
== Info API
|
|
|
|
|
2019-07-18 19:10:22 -04:00
|
|
|
Provides general information about the installed {xpack} features.
|
2017-08-28 18:34:32 -04:00
|
|
|
|
2019-07-18 19:10:22 -04:00
|
|
|
[discrete]
|
|
|
|
[[info-api-request]]
|
|
|
|
=== {api-request-title}
|
2017-08-28 18:34:32 -04:00
|
|
|
|
|
|
|
`GET /_xpack`
|
|
|
|
|
2019-07-18 19:10:22 -04:00
|
|
|
[discrete]
|
|
|
|
[[info-api-desc]]
|
|
|
|
=== {api-description-title}
|
2017-08-28 18:34:32 -04:00
|
|
|
|
|
|
|
The information provided by this API includes:
|
2017-06-27 16:42:11 -04:00
|
|
|
|
|
|
|
* Build Information - including the build number and timestamp.
|
|
|
|
* License Information - basic information about the currently installed license.
|
|
|
|
* Features Information - The features that are currently enabled and available
|
|
|
|
under the current license.
|
|
|
|
|
2019-07-18 19:10:22 -04:00
|
|
|
[discrete]
|
|
|
|
[[info-api-path-params]]
|
|
|
|
=== {api-path-parms-title}
|
2017-08-28 18:34:32 -04:00
|
|
|
|
|
|
|
`categories`::
|
2019-07-18 19:10:22 -04:00
|
|
|
(Optional, list) A comma-separated list of the information categories to
|
|
|
|
include in the response. For example, `build,license,features`.
|
2017-08-28 18:34:32 -04:00
|
|
|
|
|
|
|
`human`::
|
2019-07-18 19:10:22 -04:00
|
|
|
(Optional, boolean) Defines whether additional human-readable information is
|
|
|
|
included in the response. In particular, it adds descriptions and a tag line.
|
|
|
|
The default value is `true`.
|
2017-08-28 18:34:32 -04:00
|
|
|
|
2019-07-18 19:10:22 -04:00
|
|
|
[discrete]
|
|
|
|
[[info-api--example]]
|
|
|
|
=== {api-examples-title}
|
2017-08-28 18:34:32 -04:00
|
|
|
|
2017-06-27 16:42:11 -04:00
|
|
|
The following example queries the info API:
|
|
|
|
|
2019-09-09 12:35:50 -04:00
|
|
|
[source,console]
|
2017-06-27 16:42:11 -04:00
|
|
|
------------------------------------------------------------
|
|
|
|
GET /_xpack
|
|
|
|
------------------------------------------------------------
|
|
|
|
|
|
|
|
Example response:
|
2019-09-06 16:09:09 -04:00
|
|
|
|
|
|
|
[source,console-result]
|
2017-06-27 16:42:11 -04:00
|
|
|
------------------------------------------------------------
|
|
|
|
{
|
|
|
|
"build" : {
|
|
|
|
"hash" : "2798b1a3ce779b3611bb53a0082d4d741e4d3168",
|
|
|
|
"date" : "2015-04-07T13:34:42Z"
|
|
|
|
},
|
|
|
|
"license" : {
|
2018-06-19 13:33:57 -04:00
|
|
|
"uid" : "893361dc-9749-4997-93cb-xxx",
|
2018-10-21 06:23:42 -04:00
|
|
|
"type" : "trial",
|
|
|
|
"mode" : "trial",
|
|
|
|
"status" : "active",
|
|
|
|
"expiry_date_in_millis" : 1542665112332
|
2017-06-27 16:42:11 -04:00
|
|
|
},
|
|
|
|
"features" : {
|
2019-01-30 01:58:26 -05:00
|
|
|
"ccr" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2019-08-29 12:45:39 -04:00
|
|
|
"analytics" : {
|
2019-08-26 16:19:55 -04:00
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2019-10-17 03:51:32 -04:00
|
|
|
"enrich" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2019-07-01 05:08:50 -04:00
|
|
|
"flattened" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2019-07-17 10:53:10 -04:00
|
|
|
"frozen_indices" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2017-06-27 16:42:11 -04:00
|
|
|
"graph" : {
|
2018-10-21 06:23:42 -04:00
|
|
|
"available" : true,
|
2017-06-27 16:42:11 -04:00
|
|
|
"enabled" : true
|
|
|
|
},
|
2018-08-31 03:29:44 -04:00
|
|
|
"ilm" : {
|
2018-04-25 15:23:21 -04:00
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
2018-04-25 20:38:17 -04:00
|
|
|
},
|
2020-01-16 03:56:41 -05:00
|
|
|
"index" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2017-06-27 16:42:11 -04:00
|
|
|
"logstash" : {
|
2018-10-21 06:23:42 -04:00
|
|
|
"available" : true,
|
2017-06-27 16:42:11 -04:00
|
|
|
"enabled" : true
|
|
|
|
},
|
|
|
|
"ml" : {
|
2018-10-21 06:23:42 -04:00
|
|
|
"available" : true,
|
2017-06-27 16:42:11 -04:00
|
|
|
"enabled" : true,
|
|
|
|
"native_code_info" : {
|
2018-06-19 13:33:57 -04:00
|
|
|
"version" : "7.0.0-alpha1-SNAPSHOT",
|
|
|
|
"build_hash" : "99a07c016d5a73"
|
2017-06-27 16:42:11 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"monitoring" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2018-02-23 17:10:37 -05:00
|
|
|
"rollup": {
|
|
|
|
"available": true,
|
|
|
|
"enabled": true
|
|
|
|
},
|
2017-06-27 16:42:11 -04:00
|
|
|
"security" : {
|
2018-10-21 06:23:42 -04:00
|
|
|
"available" : true,
|
|
|
|
"enabled" : false
|
2017-06-27 16:42:11 -04:00
|
|
|
},
|
2019-10-16 23:06:27 -04:00
|
|
|
"slm" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2019-08-14 17:35:10 -04:00
|
|
|
"spatial" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2018-11-26 00:11:43 -05:00
|
|
|
"sql" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2019-09-16 07:39:22 -04:00
|
|
|
"transform" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2019-06-18 11:56:04 -04:00
|
|
|
"vectors" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2019-06-25 11:29:30 -04:00
|
|
|
"voting_only" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2017-06-27 16:42:11 -04:00
|
|
|
"watcher" : {
|
2018-10-21 06:23:42 -04:00
|
|
|
"available" : true,
|
2017-06-27 16:42:11 -04:00
|
|
|
"enabled" : true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tagline" : "You know, for X"
|
|
|
|
}
|
|
|
|
------------------------------------------------------------
|
|
|
|
// TESTRESPONSE[s/"hash" : "2798b1a3ce779b3611bb53a0082d4d741e4d3168",/"hash" : "$body.build.hash",/]
|
|
|
|
// TESTRESPONSE[s/"date" : "2015-04-07T13:34:42Z"/"date" : "$body.build.date"/]
|
2018-06-19 13:33:57 -04:00
|
|
|
// TESTRESPONSE[s/"uid" : "893361dc-9749-4997-93cb-xxx",/"uid": "$body.license.uid",/]
|
2018-10-21 06:23:42 -04:00
|
|
|
// TESTRESPONSE[s/"expiry_date_in_millis" : 1542665112332/"expiry_date_in_millis" : "$body.license.expiry_date_in_millis"/]
|
2018-06-19 13:33:57 -04:00
|
|
|
// TESTRESPONSE[s/"version" : "7.0.0-alpha1-SNAPSHOT",/"version": "$body.features.ml.native_code_info.version",/]
|
|
|
|
// TESTRESPONSE[s/"build_hash" : "99a07c016d5a73"/"build_hash": "$body.features.ml.native_code_info.build_hash"/]
|
2017-06-27 16:42:11 -04:00
|
|
|
// So much s/// but at least we test that the layout is close to matching....
|
|
|
|
|
|
|
|
The following example only returns the build and features information:
|
|
|
|
|
2019-09-09 12:35:50 -04:00
|
|
|
[source,console]
|
2017-06-27 16:42:11 -04:00
|
|
|
------------------------------------------------------------
|
|
|
|
GET /_xpack?categories=build,features
|
|
|
|
------------------------------------------------------------
|
|
|
|
|
|
|
|
The following example removes the descriptions from the response:
|
|
|
|
|
2019-09-09 12:35:50 -04:00
|
|
|
[source,console]
|
2017-06-27 16:42:11 -04:00
|
|
|
------------------------------------------------------------
|
|
|
|
GET /_xpack?human=false
|
|
|
|
------------------------------------------------------------
|