mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
Added HLRC support for enrich put policy API. (#45183)
This PR also adds HLRC docs. Relates to #32789
This commit is contained in:
parent
ccf30c3842
commit
43b23aa505
11 changed files with 607 additions and 0 deletions
31
docs/java-rest/high-level/enrich/put_policy.asciidoc
Normal file
31
docs/java-rest/high-level/enrich/put_policy.asciidoc
Normal file
|
@ -0,0 +1,31 @@
|
|||
--
|
||||
:api: enrich-put-policy
|
||||
:request: PutPolicyRequest
|
||||
:response: AcknowledgedResponse
|
||||
--
|
||||
|
||||
[id="{upid}-{api}"]
|
||||
=== Put Policy API
|
||||
|
||||
[id="{upid}-{api}-request"]
|
||||
==== Request
|
||||
|
||||
The Put Policy API stores an enrich policy in Elasticsearch.
|
||||
|
||||
["source","java",subs="attributes,callouts,macros"]
|
||||
--------------------------------------------------
|
||||
include-tagged::{doc-tests-file}[{api}-request]
|
||||
--------------------------------------------------
|
||||
|
||||
[id="{upid}-{api}-response"]
|
||||
==== Response
|
||||
|
||||
The returned +{response}+ indicates if the put policy request was acknowledged.
|
||||
|
||||
["source","java",subs="attributes,callouts,macros"]
|
||||
--------------------------------------------------
|
||||
include-tagged::{doc-tests-file}[{api}-response]
|
||||
--------------------------------------------------
|
||||
<1> Whether put policy request was acknowledged.
|
||||
|
||||
include::../execution.asciidoc[]
|
|
@ -592,3 +592,14 @@ include::dataframe/delete_data_frame.asciidoc[]
|
|||
include::dataframe/preview_data_frame.asciidoc[]
|
||||
include::dataframe/start_data_frame.asciidoc[]
|
||||
include::dataframe/stop_data_frame.asciidoc[]
|
||||
|
||||
== Enrich APIs
|
||||
|
||||
:upid: {mainid}-enrich
|
||||
:doc-tests-file: {doc-tests}/EnrichDocumentationIT.java
|
||||
|
||||
The Java High Level REST Client supports the following Enrich APIs:
|
||||
|
||||
* <<{upid}-enrich-put-policy>>
|
||||
|
||||
include::enrich/put_policy.asciidoc[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue