1
0

info.asciidoc 5.2 KB

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