64 lines
3.8 KiB
Plaintext
64 lines
3.8 KiB
Plaintext
[[reference-enrich-put_policy]]
|
|
|
|
////////
|
|
===========================================================================================================================
|
|
|| ||
|
|
|| ||
|
|
|| ||
|
|
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|
|
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|
|
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|
|
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|
|
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|
|
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|
|
|| ||
|
|
|| ||
|
|
|| This file is autogenerated, DO NOT send pull requests that changes this file directly. ||
|
|
|| You should update the script that does the generation, which can be found in: ||
|
|
|| https://github.com/elastic/elastic-client-generator-js ||
|
|
|| ||
|
|
|| You can run the script with the following command: ||
|
|
|| npm run elasticsearch -- --version <version> ||
|
|
|| ||
|
|
|| ||
|
|
|| ||
|
|
===========================================================================================================================
|
|
////////
|
|
|
|
[discrete]
|
|
=== client.enrich.putPolicy
|
|
|
|
Create an enrich policy. Creates an enrich policy.
|
|
|
|
{ref}/put-enrich-policy-api.html[{es} documentation]
|
|
|
|
[discrete]
|
|
==== Function signature
|
|
|
|
[source,ts]
|
|
----
|
|
(EnrichPutPolicyRequest, options?): Promise<EnrichPutPolicyResponse>
|
|
----
|
|
|
|
[discrete]
|
|
===== `EnrichPutPolicyRequest`
|
|
|
|
[source,ts]
|
|
----
|
|
interface EnrichPutPolicyRequest extends <<RequestBase>> {
|
|
name: <<Name>>
|
|
geo_match?: EnrichPolicy
|
|
match?: EnrichPolicy
|
|
range?: EnrichPolicy
|
|
}
|
|
----
|
|
|
|
[discrete]
|
|
===== `EnrichPutPolicyResponse`
|
|
|
|
[source,ts]
|
|
----
|
|
type EnrichPutPolicyResponse = <<AcknowledgedResponseBase>>
|
|
----
|
|
|