info.asciidoc 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. [role="xpack"]
  2. [[info-api]]
  3. == Info API
  4. .New API reference
  5. [sidebar]
  6. --
  7. For the most up-to-date API details, refer to {api-es}/group/endpoint-info[Info APIs].
  8. --
  9. Provides general information about the installed {xpack} features.
  10. [discrete]
  11. [[info-api-request]]
  12. === {api-request-title}
  13. `GET /_xpack`
  14. [discrete]
  15. [[info-api-prereqs]]
  16. === {api-prereq-title}
  17. * If the {es} {security-features} are enabled, you must have the `monitor` or
  18. `manage` <<privileges-list-cluster,cluster privilege>> to use this API.
  19. [discrete]
  20. [[info-api-desc]]
  21. === {api-description-title}
  22. The information provided by this API includes:
  23. * Build Information - including the build number and timestamp.
  24. * License Information - basic information about the currently installed license.
  25. * Features Information - The features that are currently enabled and available
  26. under the current license.
  27. [discrete]
  28. [[info-api-path-params]]
  29. === {api-path-parms-title}
  30. `categories`::
  31. (Optional, list) A comma-separated list of the information categories to
  32. include in the response. For example, `build,license,features`.
  33. `human`::
  34. (Optional, Boolean) Defines whether additional human-readable information is
  35. included in the response. In particular, it adds descriptions and a tag line.
  36. The default value is `true`.
  37. [discrete]
  38. [[info-api-example]]
  39. === {api-examples-title}
  40. The following example queries the info API:
  41. [source,console]
  42. ------------------------------------------------------------
  43. GET /_xpack
  44. ------------------------------------------------------------
  45. Example response:
  46. [source,console-result]
  47. ------------------------------------------------------------
  48. {
  49. "build" : {
  50. "hash" : "2798b1a3ce779b3611bb53a0082d4d741e4d3168",
  51. "date" : "2015-04-07T13:34:42Z"
  52. },
  53. "license" : {
  54. "uid" : "893361dc-9749-4997-93cb-xxx",
  55. "type" : "trial",
  56. "mode" : "trial",
  57. "status" : "active",
  58. "expiry_date_in_millis" : 1542665112332
  59. },
  60. "features" : {
  61. "ccr" : {
  62. "available" : true,
  63. "enabled" : true
  64. },
  65. "aggregate_metric" : {
  66. "available" : true,
  67. "enabled" : true
  68. },
  69. "analytics" : {
  70. "available" : true,
  71. "enabled" : true
  72. },
  73. "archive" : {
  74. "available" : true,
  75. "enabled" : true
  76. },
  77. "enrich" : {
  78. "available" : true,
  79. "enabled" : true
  80. },
  81. "frozen_indices" : {
  82. "available" : true,
  83. "enabled" : true
  84. },
  85. "graph" : {
  86. "available" : true,
  87. "enabled" : true
  88. },
  89. "ilm" : {
  90. "available" : true,
  91. "enabled" : true
  92. },
  93. "logstash" : {
  94. "available" : true,
  95. "enabled" : true
  96. },
  97. "ml" : {
  98. "available" : true,
  99. "enabled" : true
  100. },
  101. "esql" : {
  102. "available" : true,
  103. "enabled" : true
  104. },
  105. "monitoring" : {
  106. "available" : true,
  107. "enabled" : true
  108. },
  109. "rollup": {
  110. "available": true,
  111. "enabled": true
  112. },
  113. "searchable_snapshots" : {
  114. "available" : true,
  115. "enabled" : true
  116. },
  117. "security" : {
  118. "available" : true,
  119. "enabled" : true
  120. },
  121. "slm" : {
  122. "available" : true,
  123. "enabled" : true
  124. },
  125. "spatial" : {
  126. "available" : true,
  127. "enabled" : true
  128. },
  129. "eql" : {
  130. "available" : true,
  131. "enabled" : true
  132. },
  133. "sql" : {
  134. "available" : true,
  135. "enabled" : true
  136. },
  137. "transform" : {
  138. "available" : true,
  139. "enabled" : true
  140. },
  141. "voting_only" : {
  142. "available" : true,
  143. "enabled" : true
  144. },
  145. "watcher" : {
  146. "available" : true,
  147. "enabled" : true
  148. },
  149. "data_streams" : {
  150. "available" : true,
  151. "enabled" : true
  152. },
  153. "data_tiers" : {
  154. "available" : true,
  155. "enabled" : true
  156. },
  157. "enterprise_search": {
  158. "available": true,
  159. "enabled": true
  160. },
  161. "universal_profiling": {
  162. "available": true,
  163. "enabled": true
  164. },
  165. "logsdb": {
  166. "available": true,
  167. "enabled": false
  168. }
  169. },
  170. "tagline" : "You know, for X"
  171. }
  172. ------------------------------------------------------------
  173. // TESTRESPONSE[s/"hash" : "2798b1a3ce779b3611bb53a0082d4d741e4d3168",/"hash" : "$body.build.hash",/]
  174. // TESTRESPONSE[s/"date" : "2015-04-07T13:34:42Z"/"date" : "$body.build.date"/]
  175. // TESTRESPONSE[s/"uid" : "893361dc-9749-4997-93cb-xxx",/"uid": "$body.license.uid",/]
  176. // TESTRESPONSE[s/"expiry_date_in_millis" : 1542665112332/"expiry_date_in_millis" : "$body.license.expiry_date_in_millis"/]
  177. // TESTRESPONSE[s/"version" : "7.0.0-alpha1-SNAPSHOT",/"version": "$body.features.ml.native_code_info.version",/]
  178. // TESTRESPONSE[s/"build_hash" : "99a07c016d5a73"/"build_hash": "$body.features.ml.native_code_info.build_hash"/]
  179. // TESTRESPONSE[s/"eql" : \{[^\}]*\},/"eql": $body.$_path,/]
  180. // eql is disabled by default on release builds and enabled everywhere else during the initial implementation phase until its release
  181. // So much s/// but at least we test that the layout is close to matching....
  182. The following example only returns the build and features information:
  183. [source,console]
  184. ------------------------------------------------------------
  185. GET /_xpack?categories=build,features
  186. ------------------------------------------------------------
  187. The following example removes the descriptions from the response:
  188. [source,console]
  189. ------------------------------------------------------------
  190. GET /_xpack?human=false
  191. ------------------------------------------------------------