@@ -62,26 +62,110 @@ actions:
6262 - basicAuth : []
6363 - bearerAuth : []
6464# Examples that apply only to the Elasticsearch OpenAPI document
65- - target : " $.paths['/_features']['get']"
66- description : " Add examples for get features operation"
65+ # # Examples for autoscaling
66+ - target : " $.paths['/_autoscaling/policy/{name}']['delete']"
67+ description : " Add examples for delete autoscaling policy response"
6768 update :
6869 responses :
6970 200 :
7071 content :
7172 application/json :
7273 examples :
73- getFeaturesResponseExample1 :
74- $ref : " ../../specification/features/get_features /examples/response/GetFeaturesResponseExample1 .yaml"
75- - target : " $.paths['/_features/_reset ']['post ']"
76- description : " Add examples for reset features operation "
74+ deleteAutoscalingPolicyResponseExample1 :
75+ $ref : " ../../specification/autoscaling/delete_autoscaling_policy /examples/response/DeleteAutoscalingPolicyResponseExample1 .yaml"
76+ - target : " $.paths['/_autoscaling/capacity ']['get ']"
77+ description : " Add examples for get autoscaling capacity response "
7778 update :
7879 responses :
7980 200 :
8081 content :
8182 application/json :
8283 examples :
83- resetFeaturesResponseExample1 :
84- $ref : " ../../specification/features/reset_features/examples/response/ResetFeaturesResponseExample1.yaml"
84+ getAutoscalingCapacityResponseExample1 :
85+ $ref : " ../../specification/autoscaling/get_autoscaling_capacity/examples/200_response/GetAutoscalingCapacityResponseExample1.yaml"
86+ - target : " $.paths['/_autoscaling/policy/{name}']['get']"
87+ description : " Add examples for get autoscaling policy response"
88+ update :
89+ responses :
90+ 200 :
91+ content :
92+ application/json :
93+ examples :
94+ getAutoscalingPolicyResponseExample1 :
95+ $ref : " ../../specification/autoscaling/get_autoscaling_policy/examples/200_response/GetAutoscalingPolicyResponseExample1.yaml"
96+ - target : " $.paths['/_autoscaling/policy/{name}']['put']"
97+ description : " Add examples for create autoscaling policy operation"
98+ update :
99+ requestBody :
100+ content :
101+ application/json :
102+ examples :
103+ createAutoscalingPolicyRequestExample1 :
104+ $ref : " ../../specification/autoscaling/put_autoscaling_policy/examples/request/PutAutoscalingPolicyRequestExample1.yaml"
105+ createAutoscalingPolicyRequestExample2 :
106+ $ref : " ../../specification/autoscaling/put_autoscaling_policy/examples/request/PutAutoscalingPolicyRequestExample2.yaml"
107+ responses :
108+ 200 :
109+ content :
110+ application/json :
111+ examples :
112+ createAutoscalingPolicyResponseExample1 :
113+ $ref : " ../../specification/autoscaling/put_autoscaling_policy/examples/200_response/PutAutoscalingPolicyResponseExample1.yaml"
114+ # # Examples for behavioral analytics
115+ - target : " $.paths['/_application/analytics/{collection_name}/event/{event_type}']['post']"
116+ description : " Add examples for post analytics collection event operation"
117+ update :
118+ requestBody :
119+ content :
120+ application/json :
121+ examples :
122+ postBehavioralAnalyticsEventRequestExample1 :
123+ $ref : " ../../specification/search_application/post_behavioral_analytics_event/examples/request/BehavioralAnalyticsEventPostRequestExample1.yaml"
124+ # # Examples for cluster
125+ - target : " $.components['requestBodies']['cluster.allocation_explain']"
126+ description : " Add example for cluster allocation exaplain request"
127+ update :
128+ content :
129+ application/json :
130+ examples :
131+ clusterAllocationExplainRequestExample1 :
132+ $ref : " ../../specification/cluster/allocation_explain/examples/request/ClusterAllocationExplainRequestExample1.yaml"
133+ - target : " $.components['requestBodies']['cluster.allocation_explain']"
134+ description : " Add examples for cluster allocation explain operation"
135+ update :
136+ content :
137+ application/json :
138+ examples :
139+ clusterAllocationExplainRequestExample1 :
140+ $ref : " ../../specification/cluster/allocation_explain/examples/request/clusterAllocationExplainRequestExample1.yaml"
141+ - target : " $.components['responses']['cluster.health#200']"
142+ description : " Add examples for cluster health operation"
143+ update :
144+ content :
145+ application/json :
146+ examples :
147+ clusterHealthResponseExample1 :
148+ $ref : " ../../specification/cluster/health/examples/response/clusterHealthResponseExample1.yaml"
149+ - target : " $.paths['/_cluster/settings']['put']"
150+ description : " Add examples for cluster update settings operation"
151+ update :
152+ requestBody :
153+ content :
154+ application/json :
155+ examples :
156+ clusterPutSettingsRequestExample1 :
157+ $ref : " ../../specification/cluster/put_settings/examples/request/ClusterPutSettingsRequestExample1.yaml"
158+ clusterPutSettingsRequestExample2 :
159+ $ref : " ../../specification/cluster/put_settings/examples/request/ClusterPutSettingsRequestExample2.yaml"
160+ - target : " $.paths['/_cluster/reroute']['post']"
161+ description : " Add examples for cluster reroute operation"
162+ update :
163+ requestBody :
164+ content :
165+ application/json :
166+ examples :
167+ clusterRerouteRequestExample1 :
168+ $ref : " ../../specification/cluster/reroute/examples/request/ClusterRerouteRequestExample1.yaml"
85169 - target : " $.components['requestBodies']['nodes.reload_secure_settings']"
86170 description : " Add examples for nodes reload secure settings operation"
87171 update :
@@ -98,16 +182,6 @@ actions:
98182 examples :
99183 clusterNodesReloadSecureSettingsResponseExample1 :
100184 $ref : " ../../specification/nodes/reload_secure_settings/examples/response/ReloadSecureSettingsResponseExample1.yaml"
101- - target : " $.paths['/_tasks']['get']"
102- description : " Add examples for task management operation"
103- update :
104- responses :
105- 200 :
106- content :
107- application/json :
108- examples :
109- getTasksResponseExample1 :
110- $ref : " ../../specification/tasks/get/examples/200_response/GetTaskResponseExample1.yaml"
111185 - target : " $.components['responses']['nodes.info#200']"
112186 description : " Add response examples for nodes info"
113187 update :
@@ -116,6 +190,38 @@ actions:
116190 examples :
117191 nodesInfoResponseExample1 :
118192 $ref : " ../../specification/nodes/info/examples/200_response/nodesInfoResponseExample1.yaml"
193+ # # Examples for esql
194+ - target : " $.paths['/_query/async']['post']"
195+ description : " Add examples for async esql query operation"
196+ update :
197+ requestBody :
198+ content :
199+ application/json :
200+ examples :
201+ esqlAsyncQueryRequestExample1 :
202+ $ref : " ../../specification/esql/async_query/examples/request/AsyncQueryRequestExample1.yaml"
203+ # # Examples for features
204+ - target : " $.paths['/_features']['get']"
205+ description : " Add examples for get features operation"
206+ update :
207+ responses :
208+ 200 :
209+ content :
210+ application/json :
211+ examples :
212+ getFeaturesResponseExample1 :
213+ $ref : " ../../specification/features/get_features/examples/response/GetFeaturesResponseExample1.yaml"
214+ - target : " $.paths['/_features/_reset']['post']"
215+ description : " Add examples for reset features operation"
216+ update :
217+ responses :
218+ 200 :
219+ content :
220+ application/json :
221+ examples :
222+ resetFeaturesResponseExample1 :
223+ $ref : " ../../specification/features/reset_features/examples/response/ResetFeaturesResponseExample1.yaml"
224+ # # Examples for ilm
119225 - target : " $.paths['/_ilm/policy/{policy}']['delete']"
120226 description : " Add examples for delete lifecycle policy operation"
121227 update :
@@ -234,6 +340,17 @@ actions:
234340 examples :
235341 removePolicyResponseExample1 :
236342 $ref : " ../../specification/ilm/remove_policy/examples/response/RemovePolicyResponseExample1.yaml"
343+ # # Examples for indices
344+ - target : " $.paths['/_lifecycle/stats']['get']"
345+ description : " Add examples for get lifecycle stats operation"
346+ update :
347+ responses :
348+ 200 :
349+ content :
350+ application/json :
351+ examples :
352+ dataStreamLifecycleStatsResponseExample1 :
353+ $ref : " ../../specification/indices/get_data_lifecycle_stats/examples/response/IndicesGetDataLifecycleStatsResponseExample1.yaml"
237354 - target : " $.components['requestBodies']['indices.clone']"
238355 description : " Add examples for clone index request"
239356 update :
@@ -270,54 +387,6 @@ actions:
270387 examples :
271388 indicesOpenResponseExample1 :
272389 $ref : " ../../specification/indices/open/examples/200_response/indicesOpenResponseExample1.yaml"
273- - target : " $.paths['/_autoscaling/policy/{name}']['delete']"
274- description : " Add examples for delete autoscaling policy response"
275- update :
276- responses :
277- 200 :
278- content :
279- application/json :
280- examples :
281- deleteAutoscalingPolicyResponseExample1 :
282- $ref : " ../../specification/autoscaling/delete_autoscaling_policy/examples/response/DeleteAutoscalingPolicyResponseExample1.yaml"
283- - target : " $.paths['/_autoscaling/capacity']['get']"
284- description : " Add examples for get autoscaling capacity response"
285- update :
286- responses :
287- 200 :
288- content :
289- application/json :
290- examples :
291- getAutoscalingCapacityResponseExample1 :
292- $ref : " ../../specification/autoscaling/get_autoscaling_capacity/examples/200_response/GetAutoscalingCapacityResponseExample1.yaml"
293- - target : " $.paths['/_autoscaling/policy/{name}']['get']"
294- description : " Add examples for get autoscaling policy response"
295- update :
296- responses :
297- 200 :
298- content :
299- application/json :
300- examples :
301- getAutoscalingPolicyResponseExample1 :
302- $ref : " ../../specification/autoscaling/get_autoscaling_policy/examples/200_response/GetAutoscalingPolicyResponseExample1.yaml"
303- - target : " $.paths['/_autoscaling/policy/{name}']['put']"
304- description : " Add examples for create autoscaling policy operation"
305- update :
306- requestBody :
307- content :
308- application/json :
309- examples :
310- createAutoscalingPolicyRequestExample1 :
311- $ref : " ../../specification/autoscaling/put_autoscaling_policy/examples/request/PutAutoscalingPolicyRequestExample1.yaml"
312- createAutoscalingPolicyRequestExample2 :
313- $ref : " ../../specification/autoscaling/put_autoscaling_policy/examples/request/PutAutoscalingPolicyRequestExample2.yaml"
314- responses :
315- 200 :
316- content :
317- application/json :
318- examples :
319- createAutoscalingPolicyResponseExample1 :
320- $ref : " ../../specification/autoscaling/put_autoscaling_policy/examples/200_response/PutAutoscalingPolicyResponseExample1.yaml"
321390 - target : " $.components['responses']['indices.recovery#200']"
322391 description : " Add example for get index recovery response"
323392 update :
@@ -360,82 +429,6 @@ actions:
360429 examples :
361430 indicesLegacyPutTemplateRequestExample1 :
362431 $ref : " ../../specification/indices/put_template/examples/request/indicesPutTemplateRequestExample1.yaml"
363- # # Examples for behavioral analytics
364- - target : " $.paths['/_application/analytics/{collection_name}/event/{event_type}']['post']"
365- description : " Add examples for post analytics collection event operation"
366- update :
367- requestBody :
368- content :
369- application/json :
370- examples :
371- postBehavioralAnalyticsEventRequestExample1 :
372- $ref : " ../../specification/search_application/post_behavioral_analytics_event/examples/request/BehavioralAnalyticsEventPostRequestExample1.yaml"
373- # # Examples for cluster
374- - target : " $.components['requestBodies']['cluster.allocation_explain']"
375- description : " Add example for cluster allocation exaplain request"
376- update :
377- content :
378- application/json :
379- examples :
380- clusterAllocationExplainRequestExample1 :
381- $ref : " ../../specification/cluster/allocation_explain/examples/request/ClusterAllocationExplainRequestExample1.yaml"
382- - target : " $.components['requestBodies']['cluster.allocation_explain']"
383- description : " Add examples for cluster allocation explain operation"
384- update :
385- content :
386- application/json :
387- examples :
388- clusterAllocationExplainRequestExample1 :
389- $ref : " ../../specification/cluster/allocation_explain/examples/request/clusterAllocationExplainRequestExample1.yaml"
390- - target : " $.components['responses']['cluster.health#200']"
391- description : " Add examples for cluster health operation"
392- update :
393- content :
394- application/json :
395- examples :
396- clusterHealthResponseExample1 :
397- $ref : " ../../specification/cluster/health/examples/response/clusterHealthResponseExample1.yaml"
398- - target : " $.paths['/_cluster/settings']['put']"
399- description : " Add examples for cluster update settings operation"
400- update :
401- requestBody :
402- content :
403- application/json :
404- examples :
405- clusterPutSettingsRequestExample1 :
406- $ref : " ../../specification/cluster/put_settings/examples/request/ClusterPutSettingsRequestExample1.yaml"
407- clusterPutSettingsRequestExample2 :
408- $ref : " ../../specification/cluster/put_settings/examples/request/ClusterPutSettingsRequestExample2.yaml"
409- - target : " $.paths['/_cluster/reroute']['post']"
410- description : " Add examples for cluster reroute operation"
411- update :
412- requestBody :
413- content :
414- application/json :
415- examples :
416- clusterRerouteRequestExample1 :
417- $ref : " ../../specification/cluster/reroute/examples/request/ClusterRerouteRequestExample1.yaml"
418- # # Examples for esql
419- - target : " $.paths['/_query/async']['post']"
420- description : " Add examples for async esql query operation"
421- update :
422- requestBody :
423- content :
424- application/json :
425- examples :
426- esqlAsyncQueryRequestExample1 :
427- $ref : " ../../specification/esql/async_query/examples/request/AsyncQueryRequestExample1.yaml"
428- # # Examples for indices
429- - target : " $.paths['/_lifecycle/stats']['get']"
430- description : " Add examples for get lifecycle stats operation"
431- update :
432- responses :
433- 200 :
434- content :
435- application/json :
436- examples :
437- dataStreamLifecycleStatsResponseExample1 :
438- $ref : " ../../specification/indices/get_data_lifecycle_stats/examples/response/IndicesGetDataLifecycleStatsResponseExample1.yaml"
439432# # Examples for inference
440433 - target : " $.components['requestBodies']['inference.stream_inference']"
441434 description : " Add example for inference stream request"
@@ -539,7 +532,7 @@ actions:
539532 examples :
540533 renderSearchApplicationQueryRequestExample1 :
541534 $ref : " ../../specification/search_application/render_query/examples/request/SearchApplicationsRenderQueryRequestExample1.yaml"
542- # Examples for security
535+ # # Examples for security
543536 - target : " $.paths['/_security/api_key/_bulk_update']['post']"
544537 description : " Add examples for bulk update API keys operation"
545538 update :
@@ -574,6 +567,17 @@ actions:
574567 examples :
575568 delegatePkiResponseExample1 :
576569 $ref : " ../../specification/security/delegate_pki/examples/200_response/SecurityDelegatePkiResponseExample1.yaml"
570+ # # Examples for tasks
571+ - target : " $.paths['/_tasks']['get']"
572+ description : " Add examples for task management operation"
573+ update :
574+ responses :
575+ 200 :
576+ content :
577+ application/json :
578+ examples :
579+ getTasksResponseExample1 :
580+ $ref : " ../../specification/tasks/get/examples/200_response/GetTaskResponseExample1.yaml"
577581# # Examples for watcher
578582 - target : " $.paths['/_watcher/settings']['put']"
579583 description : " Add request example for update watcher settings"
0 commit comments