1
0

info.asciidoc 4.6 KB

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