mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
Add HLRC support for delete policy api (#45833)
This PR also adds HLRC docs. Relates to #32789
This commit is contained in:
parent
1c4ffd30cd
commit
a1e8194a57
8 changed files with 227 additions and 11 deletions
31
docs/java-rest/high-level/enrich/delete_policy.asciidoc
Normal file
31
docs/java-rest/high-level/enrich/delete_policy.asciidoc
Normal file
|
@ -0,0 +1,31 @@
|
|||
--
|
||||
:api: enrich-delete-policy
|
||||
:request: DeletePolicyRequest
|
||||
:response: AcknowledgedResponse
|
||||
--
|
||||
|
||||
[id="{upid}-{api}"]
|
||||
=== Delete Policy API
|
||||
|
||||
[id="{upid}-{api}-request"]
|
||||
==== Request
|
||||
|
||||
The Delete Policy API deletes an enrich policy from 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 delete policy request was acknowledged.
|
||||
|
||||
["source","java",subs="attributes,callouts,macros"]
|
||||
--------------------------------------------------
|
||||
include-tagged::{doc-tests-file}[{api}-response]
|
||||
--------------------------------------------------
|
||||
<1> Whether delete policy request was acknowledged.
|
||||
|
||||
include::../execution.asciidoc[]
|
|
@ -603,5 +603,7 @@ include::dataframe/stop_data_frame.asciidoc[]
|
|||
The Java High Level REST Client supports the following Enrich APIs:
|
||||
|
||||
* <<{upid}-enrich-put-policy>>
|
||||
* <<{upid}-enrich-delete-policy>>
|
||||
|
||||
include::enrich/put_policy.asciidoc[]
|
||||
include::enrich/delete_policy.asciidoc[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue