Skip to content

Commit a23b497

Browse files
committed
Specify name on enrich.get_policy as list type (#50217)
This commit updates the enrich.get_policy API to specify name as a list, in line with other URL parts that accept a comma-separated list of values. In addition, update the get enrich policy API docs to align the URL part name in the documentation with the name used in the REST API specs. (cherry picked from commit 94f6f94)
1 parent 350ab8f commit a23b497

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/reference/ingest/apis/enrich/get-enrich-policy.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ GET /_enrich/policy/my-policy
5050
[[get-enrich-policy-api-request]]
5151
==== {api-request-title}
5252

53-
`GET /_enrich/policy/<enrich-policy>`
53+
`GET /_enrich/policy/<name>`
5454

5555
`GET /_enrich/policy`
5656

@@ -66,7 +66,7 @@ include::put-enrich-policy.asciidoc[tag=enrich-policy-api-prereqs]
6666
[[get-enrich-policy-api-path-params]]
6767
==== {api-path-parms-title}
6868

69-
`<enrich-policy>`::
69+
`<name>`::
7070
+
7171
--
7272
(Optional, string)

x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.get_policy.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"methods": [ "GET" ],
1010
"parts": {
1111
"name": {
12-
"type" : "string",
13-
"description" : "The name of the enrich policy"
12+
"type" : "list",
13+
"description" : "A comma-separated list of enrich policy names"
1414
}
1515
}
1616
},

0 commit comments

Comments
 (0)