Get an enrich policy Generally available
All methods and paths for this operation:
GET /_enrich/policy
GET /_enrich/policy/{name}
Returns information about an enrich policy.
Path parameters
-
Comma-separated list of enrich policy names used to limit the request. To return information for all enrich policies, omit this parameter.
GET /_enrich/policy/{name}
Console
GET /_enrich/policy/my-policy
resp = client.enrich.get_policy( name="my-policy", )
const response = await client.enrich.getPolicy({ name: "my-policy", });
response = client.enrich.get_policy( name: "my-policy" )
$resp = $client->enrich()->getPolicy([ "name" => "my-policy", ]);
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_enrich/policy/my-policy"
client.enrich().getPolicy(g -> g .name("my-policy") );