info.asciidoc 5.2 KB

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