mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-09 06:25:07 +00:00
60ad099178
Changed the signature of AbstractResponseTestCase#createServerTestInstance(...) to include the randomly selected xcontent type. This is needed for the creating a server response instance with a query which is represented as BytesReference. Maybe this should go into a different change? This PR also includes HLRC docs for the get policy api. Relates to #32789
33 lines
851 B
Plaintext
33 lines
851 B
Plaintext
--
|
|
:api: enrich-get-policy
|
|
:request: GetPolicyRequest
|
|
:response: GetPolicyResponse
|
|
--
|
|
|
|
[id="{upid}-{api}"]
|
|
=== Get Policy API
|
|
|
|
[id="{upid}-{api}-request"]
|
|
==== Request
|
|
|
|
The Get Policy API allows to retrieve enrich policies by name
|
|
or all policies if no name is provided.
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
--------------------------------------------------
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
|
--------------------------------------------------
|
|
|
|
[id="{upid}-{api}-response"]
|
|
==== Response
|
|
|
|
The returned +{response}+ includes the requested enrich policy.
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
--------------------------------------------------
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
|
--------------------------------------------------
|
|
<1> The actual enrich policy.
|
|
|
|
include::../execution.asciidoc[]
|