supported-apis.asciidoc 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. [[java-rest-high-supported-apis]]
  2. == Document APIs
  3. :upid: {mainid}-document
  4. :doc-tests-file: {doc-tests}/CRUDDocumentationIT.java
  5. The Java High Level REST Client supports the following Document APIs:
  6. [[single-doc]]
  7. Single document APIs::
  8. * <<{upid}-index>>
  9. * <<{upid}-get>>
  10. * <<{upid}-exists>>
  11. * <<{upid}-delete>>
  12. * <<{upid}-update>>
  13. * <<{upid}-term-vectors>>
  14. [[multi-doc]]
  15. Multi-document APIs::
  16. * <<{upid}-bulk>>
  17. * <<{upid}-multi-get>>
  18. * <<{upid}-reindex>>
  19. * <<{upid}-update-by-query>>
  20. * <<{upid}-delete-by-query>>
  21. * <<{upid}-rethrottle>>
  22. include::document/index.asciidoc[]
  23. include::document/get.asciidoc[]
  24. include::document/exists.asciidoc[]
  25. include::document/delete.asciidoc[]
  26. include::document/update.asciidoc[]
  27. include::document/term-vectors.asciidoc[]
  28. include::document/bulk.asciidoc[]
  29. include::document/multi-get.asciidoc[]
  30. include::document/reindex.asciidoc[]
  31. include::document/update-by-query.asciidoc[]
  32. include::document/delete-by-query.asciidoc[]
  33. include::document/rethrottle.asciidoc[]
  34. == Search APIs
  35. :upid: {mainid}
  36. :doc-tests-file: {doc-tests}/SearchDocumentationIT.java
  37. The Java High Level REST Client supports the following Search APIs:
  38. * <<{upid}-search>>
  39. * <<{upid}-search-scroll>>
  40. * <<{upid}-clear-scroll>>
  41. * <<{upid}-search-template>>
  42. * <<{upid}-multi-search-template>>
  43. * <<{upid}-multi-search>>
  44. * <<{upid}-field-caps>>
  45. * <<{upid}-rank-eval>>
  46. * <<{upid}-explain>>
  47. * <<{upid}-count>>
  48. include::search/search.asciidoc[]
  49. include::search/scroll.asciidoc[]
  50. include::search/multi-search.asciidoc[]
  51. include::search/search-template.asciidoc[]
  52. include::search/multi-search-template.asciidoc[]
  53. include::search/field-caps.asciidoc[]
  54. include::search/rank-eval.asciidoc[]
  55. include::search/explain.asciidoc[]
  56. include::search/count.asciidoc[]
  57. == Miscellaneous APIs
  58. The Java High Level REST Client supports the following Miscellaneous APIs:
  59. * <<java-rest-high-main>>
  60. * <<java-rest-high-ping>>
  61. * <<java-rest-high-x-pack-info>>
  62. * <<java-rest-high-x-pack-usage>>
  63. include::miscellaneous/main.asciidoc[]
  64. include::miscellaneous/ping.asciidoc[]
  65. include::miscellaneous/x-pack-info.asciidoc[]
  66. include::miscellaneous/x-pack-usage.asciidoc[]
  67. == Indices APIs
  68. The Java High Level REST Client supports the following Indices APIs:
  69. Index Management::
  70. * <<java-rest-high-create-index>>
  71. * <<java-rest-high-delete-index>>
  72. * <<java-rest-high-indices-exists>>
  73. * <<java-rest-high-open-index>>
  74. * <<java-rest-high-close-index>>
  75. * <<java-rest-high-shrink-index>>
  76. * <<java-rest-high-split-index>>
  77. * <<java-rest-high-refresh>>
  78. * <<java-rest-high-flush>>
  79. * <<java-rest-high-flush-synced>>
  80. * <<java-rest-high-clear-cache>>
  81. * <<java-rest-high-force-merge>>
  82. * <<java-rest-high-rollover-index>>
  83. * <<java-rest-high-indices-put-settings>>
  84. * <<java-rest-high-get-settings>>
  85. * <<java-rest-high-indices-validate-query>>
  86. * <<java-rest-high-get-index>>
  87. Mapping Management::
  88. * <<java-rest-high-put-mapping>>
  89. * <<java-rest-high-get-mappings>>
  90. * <<java-rest-high-get-field-mappings>>
  91. Alias Management::
  92. * <<java-rest-high-update-aliases>>
  93. * <<java-rest-high-exists-alias>>
  94. * <<java-rest-high-get-alias>>
  95. include::indices/analyze.asciidoc[]
  96. include::indices/create_index.asciidoc[]
  97. include::indices/delete_index.asciidoc[]
  98. include::indices/indices_exists.asciidoc[]
  99. include::indices/open_index.asciidoc[]
  100. include::indices/close_index.asciidoc[]
  101. include::indices/shrink_index.asciidoc[]
  102. include::indices/split_index.asciidoc[]
  103. include::indices/refresh.asciidoc[]
  104. include::indices/flush.asciidoc[]
  105. include::indices/flush_synced.asciidoc[]
  106. include::indices/clear_cache.asciidoc[]
  107. include::indices/force_merge.asciidoc[]
  108. include::indices/rollover.asciidoc[]
  109. include::indices/put_mapping.asciidoc[]
  110. include::indices/get_mappings.asciidoc[]
  111. include::indices/get_field_mappings.asciidoc[]
  112. include::indices/update_aliases.asciidoc[]
  113. include::indices/exists_alias.asciidoc[]
  114. include::indices/get_alias.asciidoc[]
  115. include::indices/put_settings.asciidoc[]
  116. include::indices/get_settings.asciidoc[]
  117. include::indices/put_template.asciidoc[]
  118. include::indices/validate_query.asciidoc[]
  119. include::indices/get_templates.asciidoc[]
  120. include::indices/get_index.asciidoc[]
  121. == Cluster APIs
  122. The Java High Level REST Client supports the following Cluster APIs:
  123. * <<java-rest-high-cluster-put-settings>>
  124. * <<java-rest-high-cluster-get-settings>>
  125. * <<java-rest-high-cluster-health>>
  126. :upid: {mainid}-cluster
  127. :doc-tests-file: {doc-tests}/ClusterClientDocumentationIT.java
  128. include::cluster/put_settings.asciidoc[]
  129. include::cluster/get_settings.asciidoc[]
  130. include::cluster/health.asciidoc[]
  131. == Ingest APIs
  132. The Java High Level REST Client supports the following Ingest APIs:
  133. * <<java-rest-high-ingest-put-pipeline>>
  134. * <<java-rest-high-ingest-get-pipeline>>
  135. * <<java-rest-high-ingest-delete-pipeline>>
  136. * <<java-rest-high-ingest-simulate-pipeline>>
  137. include::ingest/put_pipeline.asciidoc[]
  138. include::ingest/get_pipeline.asciidoc[]
  139. include::ingest/delete_pipeline.asciidoc[]
  140. include::ingest/simulate_pipeline.asciidoc[]
  141. == Snapshot APIs
  142. The Java High Level REST Client supports the following Snapshot APIs:
  143. * <<java-rest-high-snapshot-get-repository>>
  144. * <<java-rest-high-snapshot-create-repository>>
  145. * <<java-rest-high-snapshot-delete-repository>>
  146. * <<java-rest-high-snapshot-verify-repository>>
  147. * <<java-rest-high-snapshot-create-snapshot>>
  148. * <<java-rest-high-snapshot-get-snapshots>>
  149. * <<java-rest-high-snapshot-snapshots-status>>
  150. * <<java-rest-high-snapshot-delete-snapshot>>
  151. include::snapshot/get_repository.asciidoc[]
  152. include::snapshot/create_repository.asciidoc[]
  153. include::snapshot/delete_repository.asciidoc[]
  154. include::snapshot/verify_repository.asciidoc[]
  155. include::snapshot/create_snapshot.asciidoc[]
  156. include::snapshot/get_snapshots.asciidoc[]
  157. include::snapshot/snapshots_status.asciidoc[]
  158. include::snapshot/delete_snapshot.asciidoc[]
  159. == Tasks APIs
  160. The Java High Level REST Client supports the following Tasks APIs:
  161. * <<java-rest-high-tasks-list>>
  162. * <<java-rest-high-cluster-cancel-tasks>>
  163. include::tasks/list_tasks.asciidoc[]
  164. include::tasks/cancel_tasks.asciidoc[]
  165. == Script APIs
  166. The Java High Level REST Client supports the following Scripts APIs:
  167. * <<java-rest-high-get-stored-script>>
  168. * <<java-rest-high-put-stored-script>>
  169. * <<java-rest-high-delete-stored-script>>
  170. include::script/get_script.asciidoc[]
  171. include::script/put_script.asciidoc[]
  172. include::script/delete_script.asciidoc[]
  173. == Licensing APIs
  174. The Java High Level REST Client supports the following Licensing APIs:
  175. * <<java-rest-high-put-license>>
  176. * <<java-rest-high-get-license>>
  177. * <<java-rest-high-delete-license>>
  178. * <<java-rest-high-start-trial>>
  179. * <<java-rest-high-start-basic>>
  180. include::licensing/put-license.asciidoc[]
  181. include::licensing/get-license.asciidoc[]
  182. include::licensing/delete-license.asciidoc[]
  183. include::licensing/start-trial.asciidoc[]
  184. include::licensing/start-basic.asciidoc[]
  185. == Machine Learning APIs
  186. :upid: {mainid}-x-pack-ml
  187. :doc-tests-file: {doc-tests}/MlClientDocumentationIT.java
  188. The Java High Level REST Client supports the following Machine Learning APIs:
  189. * <<{upid}-put-job>>
  190. * <<{upid}-get-job>>
  191. * <<{upid}-delete-job>>
  192. * <<{upid}-open-job>>
  193. * <<{upid}-close-job>>
  194. * <<{upid}-flush-job>>
  195. * <<{upid}-update-job>>
  196. * <<{upid}-get-job-stats>>
  197. * <<{upid}-put-datafeed>>
  198. * <<{upid}-update-datafeed>>
  199. * <<{upid}-get-datafeed>>
  200. * <<{upid}-delete-datafeed>>
  201. * <<{upid}-preview-datafeed>>
  202. * <<{upid}-start-datafeed>>
  203. * <<{upid}-stop-datafeed>>
  204. * <<{upid}-get-datafeed-stats>>
  205. * <<{upid}-forecast-job>>
  206. * <<{upid}-delete-forecast>>
  207. * <<{upid}-get-buckets>>
  208. * <<{upid}-get-overall-buckets>>
  209. * <<{upid}-get-records>>
  210. * <<{upid}-post-data>>
  211. * <<{upid}-get-influencers>>
  212. * <<{upid}-get-categories>>
  213. * <<{upid}-get-calendars>>
  214. * <<{upid}-put-calendar>>
  215. * <<{upid}-delete-calendar>>
  216. * <<{upid}-put-filter>>
  217. include::ml/put-job.asciidoc[]
  218. include::ml/get-job.asciidoc[]
  219. include::ml/delete-job.asciidoc[]
  220. include::ml/open-job.asciidoc[]
  221. include::ml/close-job.asciidoc[]
  222. include::ml/update-job.asciidoc[]
  223. include::ml/flush-job.asciidoc[]
  224. include::ml/put-datafeed.asciidoc[]
  225. include::ml/update-datafeed.asciidoc[]
  226. include::ml/get-datafeed.asciidoc[]
  227. include::ml/delete-datafeed.asciidoc[]
  228. include::ml/preview-datafeed.asciidoc[]
  229. include::ml/start-datafeed.asciidoc[]
  230. include::ml/stop-datafeed.asciidoc[]
  231. include::ml/get-datafeed-stats.asciidoc[]
  232. include::ml/get-job-stats.asciidoc[]
  233. include::ml/forecast-job.asciidoc[]
  234. include::ml/delete-forecast.asciidoc[]
  235. include::ml/get-buckets.asciidoc[]
  236. include::ml/get-overall-buckets.asciidoc[]
  237. include::ml/get-records.asciidoc[]
  238. include::ml/post-data.asciidoc[]
  239. include::ml/get-influencers.asciidoc[]
  240. include::ml/get-categories.asciidoc[]
  241. include::ml/get-calendars.asciidoc[]
  242. include::ml/put-calendar.asciidoc[]
  243. include::ml/delete-calendar.asciidoc[]
  244. include::ml/put-filter.asciidoc[]
  245. == Migration APIs
  246. The Java High Level REST Client supports the following Migration APIs:
  247. * <<java-rest-high-migration-get-assistance>>
  248. include::migration/get-assistance.asciidoc[]
  249. == Rollup APIs
  250. :upid: {mainid}-rollup
  251. :doc-tests-file: {doc-tests}/RollupDocumentationIT.java
  252. The Java High Level REST Client supports the following Rollup APIs:
  253. * <<java-rest-high-x-pack-rollup-put-job>>
  254. * <<{upid}-rollup-start-job>>
  255. * <<{upid}-rollup-delete-job>>
  256. * <<java-rest-high-x-pack-rollup-get-job>>
  257. * <<{upid}-x-pack-rollup-get-rollup-caps>>
  258. include::rollup/put_job.asciidoc[]
  259. include::rollup/start_job.asciidoc[]
  260. include::rollup/delete_job.asciidoc[]
  261. include::rollup/get_job.asciidoc[]
  262. include::rollup/get_rollup_caps.asciidoc[]
  263. == Security APIs
  264. :upid: {mainid}-security
  265. :doc-tests-file: {doc-tests}/SecurityDocumentationIT.java
  266. The Java High Level REST Client supports the following Security APIs:
  267. * <<java-rest-high-security-put-user>>
  268. * <<java-rest-high-security-enable-user>>
  269. * <<java-rest-high-security-disable-user>>
  270. * <<java-rest-high-security-change-password>>
  271. * <<java-rest-high-security-delete-role>>
  272. * <<{upid}-clear-roles-cache>>
  273. * <<{upid}-clear-realm-cache>>
  274. * <<{upid}-authenticate>>
  275. * <<java-rest-high-security-get-certificates>>
  276. * <<java-rest-high-security-put-role-mapping>>
  277. * <<java-rest-high-security-get-role-mappings>>
  278. * <<java-rest-high-security-delete-role-mapping>>
  279. * <<java-rest-high-security-create-token>>
  280. * <<{upid}-invalidate-token>>
  281. include::security/put-user.asciidoc[]
  282. include::security/enable-user.asciidoc[]
  283. include::security/disable-user.asciidoc[]
  284. include::security/change-password.asciidoc[]
  285. include::security/delete-role.asciidoc[]
  286. include::security/clear-roles-cache.asciidoc[]
  287. include::security/clear-realm-cache.asciidoc[]
  288. include::security/authenticate.asciidoc[]
  289. include::security/get-certificates.asciidoc[]
  290. include::security/put-role-mapping.asciidoc[]
  291. include::security/get-role-mappings.asciidoc[]
  292. include::security/delete-role-mapping.asciidoc[]
  293. include::security/create-token.asciidoc[]
  294. include::security/invalidate-token.asciidoc[]
  295. == Watcher APIs
  296. :upid: {mainid}-watcher
  297. :doc-tests-file: {doc-tests}/WatcherDocumentationIT.java
  298. The Java High Level REST Client supports the following Watcher APIs:
  299. * <<{upid}-start-watch-service>>
  300. * <<{upid}-stop-watch-service>>
  301. * <<java-rest-high-x-pack-watcher-put-watch>>
  302. * <<java-rest-high-x-pack-watcher-delete-watch>>
  303. * <<java-rest-high-watcher-deactivate-watch>>
  304. * <<{upid}-ack-watch>>
  305. * <<{upid}-activate-watch>>
  306. include::watcher/start-watch-service.asciidoc[]
  307. include::watcher/stop-watch-service.asciidoc[]
  308. include::watcher/put-watch.asciidoc[]
  309. include::watcher/delete-watch.asciidoc[]
  310. include::watcher/ack-watch.asciidoc[]
  311. include::watcher/deactivate-watch.asciidoc[]
  312. include::watcher/activate-watch.asciidoc[]
  313. == Graph APIs
  314. The Java High Level REST Client supports the following Graph APIs:
  315. * <<java-rest-high-x-pack-graph-explore>>
  316. include::graph/explore.asciidoc[]
  317. ////
  318. Clear attributes that we use to document that APIs included above so they
  319. don't leak into the rest of the documentation.
  320. ////
  321. --
  322. :api!:
  323. :request!:
  324. :response!:
  325. :doc-tests-file!:
  326. :upid!:
  327. --
  328. == CCR APIs
  329. :upid: {mainid}-ccr
  330. :doc-tests-file: {doc-tests}/CCRDocumentationIT.java
  331. The Java High Level REST Client supports the following CCR APIs:
  332. * <<{upid}-ccr-pause-follow>>
  333. include::ccr/pause_follow.asciidoc[]