@@ -62,26 +62,139 @@ 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 ccr
125+ - target : " $.paths['/{index}/_ccr/follow']['put']"
126+ description : " Add examples for create follower operation"
127+ update :
128+ requestBody :
129+ content :
130+ application/json :
131+ examples :
132+ createFollowIndexRequestExample1 :
133+ $ref : " ../../specification/ccr/follow/examples/request/CreateFollowIndexRequestExample1.yaml"
134+ responses :
135+ 200 :
136+ content :
137+ application/json :
138+ examples :
139+ createFollowIndexResponseExample1 :
140+ $ref : " ../../specification/ccr/follow/examples/response/CreateFollowIndexResponseExample1.yaml"
141+ - target : " $.paths['/{index}/_ccr/forget_follower']['post']"
142+ description : " Add examples for forget follower operation"
143+ update :
144+ requestBody :
145+ content :
146+ application/json :
147+ examples :
148+ createFollowIndexRequestExample1 :
149+ $ref : " ../../specification/ccr/forget_follower/examples/request/ForgetFollowerIndexRequestExample1.yaml"
150+ responses :
151+ 200 :
152+ content :
153+ application/json :
154+ examples :
155+ createFollowIndexResponseExample1 :
156+ $ref : " ../../specification/ccr/forget_follower/examples/response/ForgetFollowerIndexResponseExample1.yaml"
157+ - target : " $.paths['/_ccr/auto_follow/{name}']['put']"
158+ description : " Add examples for create auto-follow pattern operation"
159+ update :
160+ requestBody :
161+ content :
162+ application/json :
163+ examples :
164+ putAutoFollowPatternRequestExample1 :
165+ $ref : " ../../specification/ccr/put_auto_follow_pattern/examples/request/PutAutoFollowPatternRequestExample1.yaml"
166+ responses :
167+ 200 :
168+ content :
169+ application/json :
170+ examples :
171+ putAutoFollowPatternResponseExample1 :
172+ $ref : " ../../specification/ccr/put_auto_follow_pattern/examples/response/PutAutoFollowPatternResponseExample1.yaml"
173+ - target : " $.paths['/{index}/_ccr/resume_follow']['post']"
174+ description : " Add examples for resume a follower operation"
175+ update :
176+ requestBody :
177+ content :
178+ application/json :
179+ examples :
180+ resumeFollowIndexRequestExample1 :
181+ $ref : " ../../specification/ccr/resume_follow/examples/request/ResumeFollowIndexRequestExample1.yaml"
182+ responses :
183+ 200 :
184+ content :
185+ application/json :
186+ examples :
187+ resumeFollowIndexResponseExample1 :
188+ $ref : " ../../specification/ccr/resume_follow/examples/response/ResumeFollowIndexResponseExample1.yaml"
189+ # # Examples for cluster
190+ - target : " $.components['requestBodies']['cluster.allocation_explain']"
191+ description : " Add example for cluster allocation exaplain request"
192+ update :
193+ content :
194+ application/json :
195+ examples :
196+ clusterAllocationExplainRequestExample1 :
197+ $ref : " ../../specification/cluster/allocation_explain/examples/request/ClusterAllocationExplainRequestExample1.yaml"
85198 - target : " $.components['requestBodies']['cluster.allocation_explain']"
86199 description : " Add examples for cluster allocation explain operation"
87200 update :
@@ -107,6 +220,8 @@ actions:
107220 examples :
108221 clusterPutSettingsRequestExample1 :
109222 $ref : " ../../specification/cluster/put_settings/examples/request/ClusterPutSettingsRequestExample1.yaml"
223+ clusterPutSettingsRequestExample2 :
224+ $ref : " ../../specification/cluster/put_settings/examples/request/ClusterPutSettingsRequestExample2.yaml"
110225 - target : " $.paths['/_cluster/reroute']['post']"
111226 description : " Add examples for cluster reroute operation"
112227 update :
@@ -132,16 +247,6 @@ actions:
132247 examples :
133248 clusterNodesReloadSecureSettingsResponseExample1 :
134249 $ref : " ../../specification/nodes/reload_secure_settings/examples/response/ReloadSecureSettingsResponseExample1.yaml"
135- - target : " $.paths['/_tasks']['get']"
136- description : " Add examples for task management operation"
137- update :
138- responses :
139- 200 :
140- content :
141- application/json :
142- examples :
143- getTasksResponseExample1 :
144- $ref : " ../../specification/tasks/get/examples/200_response/GetTaskResponseExample1.yaml"
145250 - target : " $.components['responses']['nodes.info#200']"
146251 description : " Add response examples for nodes info"
147252 update :
@@ -150,6 +255,38 @@ actions:
150255 examples :
151256 nodesInfoResponseExample1 :
152257 $ref : " ../../specification/nodes/info/examples/200_response/nodesInfoResponseExample1.yaml"
258+ # # Examples for esql
259+ - target : " $.paths['/_query/async']['post']"
260+ description : " Add examples for async esql query operation"
261+ update :
262+ requestBody :
263+ content :
264+ application/json :
265+ examples :
266+ esqlAsyncQueryRequestExample1 :
267+ $ref : " ../../specification/esql/async_query/examples/request/AsyncQueryRequestExample1.yaml"
268+ # # Examples for features
269+ - target : " $.paths['/_features']['get']"
270+ description : " Add examples for get features operation"
271+ update :
272+ responses :
273+ 200 :
274+ content :
275+ application/json :
276+ examples :
277+ getFeaturesResponseExample1 :
278+ $ref : " ../../specification/features/get_features/examples/response/GetFeaturesResponseExample1.yaml"
279+ - target : " $.paths['/_features/_reset']['post']"
280+ description : " Add examples for reset features operation"
281+ update :
282+ responses :
283+ 200 :
284+ content :
285+ application/json :
286+ examples :
287+ resetFeaturesResponseExample1 :
288+ $ref : " ../../specification/features/reset_features/examples/response/ResetFeaturesResponseExample1.yaml"
289+ # # Examples for ilm
153290 - target : " $.paths['/_ilm/policy/{policy}']['delete']"
154291 description : " Add examples for delete lifecycle policy operation"
155292 update :
@@ -268,6 +405,17 @@ actions:
268405 examples :
269406 removePolicyResponseExample1 :
270407 $ref : " ../../specification/ilm/remove_policy/examples/response/RemovePolicyResponseExample1.yaml"
408+ # # Examples for indices
409+ - target : " $.paths['/_lifecycle/stats']['get']"
410+ description : " Add examples for get lifecycle stats operation"
411+ update :
412+ responses :
413+ 200 :
414+ content :
415+ application/json :
416+ examples :
417+ dataStreamLifecycleStatsResponseExample1 :
418+ $ref : " ../../specification/indices/get_data_lifecycle_stats/examples/response/IndicesGetDataLifecycleStatsResponseExample1.yaml"
271419 - target : " $.components['requestBodies']['indices.clone']"
272420 description : " Add examples for clone index request"
273421 update :
@@ -304,54 +452,6 @@ actions:
304452 examples :
305453 indicesOpenResponseExample1 :
306454 $ref : " ../../specification/indices/open/examples/200_response/indicesOpenResponseExample1.yaml"
307- - target : " $.paths['/_autoscaling/policy/{name}']['delete']"
308- description : " Add examples for delete autoscaling policy response"
309- update :
310- responses :
311- 200 :
312- content :
313- application/json :
314- examples :
315- deleteAutoscalingPolicyResponseExample1 :
316- $ref : " ../../specification/autoscaling/delete_autoscaling_policy/examples/response/DeleteAutoscalingPolicyResponseExample1.yaml"
317- - target : " $.paths['/_autoscaling/capacity']['get']"
318- description : " Add examples for get autoscaling capacity response"
319- update :
320- responses :
321- 200 :
322- content :
323- application/json :
324- examples :
325- getAutoscalingCapacityResponseExample1 :
326- $ref : " ../../specification/autoscaling/get_autoscaling_capacity/examples/200_response/GetAutoscalingCapacityResponseExample1.yaml"
327- - target : " $.paths['/_autoscaling/policy/{name}']['get']"
328- description : " Add examples for get autoscaling policy response"
329- update :
330- responses :
331- 200 :
332- content :
333- application/json :
334- examples :
335- getAutoscalingPolicyResponseExample1 :
336- $ref : " ../../specification/autoscaling/get_autoscaling_policy/examples/200_response/GetAutoscalingPolicyResponseExample1.yaml"
337- - target : " $.paths['/_autoscaling/policy/{name}']['put']"
338- description : " Add examples for create autoscaling policy operation"
339- update :
340- requestBody :
341- content :
342- application/json :
343- examples :
344- createAutoscalingPolicyRequestExample1 :
345- $ref : " ../../specification/autoscaling/put_autoscaling_policy/examples/request/PutAutoscalingPolicyRequestExample1.yaml"
346- createAutoscalingPolicyRequestExample2 :
347- $ref : " ../../specification/autoscaling/put_autoscaling_policy/examples/request/PutAutoscalingPolicyRequestExample2.yaml"
348- responses :
349- 200 :
350- content :
351- application/json :
352- examples :
353- createAutoscalingPolicyResponseExample1 :
354- $ref : " ../../specification/autoscaling/put_autoscaling_policy/examples/200_response/PutAutoscalingPolicyResponseExample1.yaml"
355455 - target : " $.components['responses']['indices.recovery#200']"
356456 description : " Add example for get index recovery response"
357457 update :
@@ -394,37 +494,15 @@ actions:
394494 examples :
395495 indicesLegacyPutTemplateRequestExample1 :
396496 $ref : " ../../specification/indices/put_template/examples/request/indicesPutTemplateRequestExample1.yaml"
397- # # Examples for behavioral analytics
398- - target : " $.paths['/_application/analytics/{collection_name}/event/{event_type}']['post']"
399- description : " Add examples for post analytics collection event operation"
400- update :
401- requestBody :
402- content :
403- application/json :
404- examples :
405- postBehavioralAnalyticsEventRequestExample1 :
406- $ref : " ../../specification/search_application/post_behavioral_analytics_event/examples/request/BehavioralAnalyticsEventPostRequestExample1.yaml"
407- # # Examples for esql
408- - target : " $.paths['/_query/async']['post']"
409- description : " Add examples for async esql query operation"
410- update :
411- requestBody :
412- content :
413- application/json :
414- examples :
415- esqlAsyncQueryRequestExample1 :
416- $ref : " ../../specification/esql/async_query/examples/request/AsyncQueryRequestExample1.yaml"
417- # # Examples for indices
418- - target : " $.paths['/_lifecycle/stats']['get']"
419- description : " Add examples for get lifecycle stats operation"
497+ # # Examples for inference
498+ - target : " $.components['requestBodies']['inference.stream_inference']"
499+ description : " Add example for inference stream request"
420500 update :
421- responses :
422- 200 :
423- content :
424- application/json :
425- examples :
426- dataStreamLifecycleStatsResponseExample1 :
427- $ref : " ../../specification/indices/get_data_lifecycle_stats/examples/response/IndicesGetDataLifecycleStatsResponseExample1.yaml"
501+ content :
502+ application/json :
503+ examples :
504+ streamInferenceRequestExample1 :
505+ $ref : " ../../specification/inference/stream_inference/examples/request/StreamInferenceRequestExample1.yaml"
428506# # Examples for ingest
429507 - target : " $.components['requestBodies']['simulate.ingest']"
430508 description : " Add example for simulate ingest request"
@@ -519,7 +597,7 @@ actions:
519597 examples :
520598 renderSearchApplicationQueryRequestExample1 :
521599 $ref : " ../../specification/search_application/render_query/examples/request/SearchApplicationsRenderQueryRequestExample1.yaml"
522- # Examples for security
600+ # # Examples for security
523601 - target : " $.paths['/_security/api_key/_bulk_update']['post']"
524602 description : " Add examples for bulk update API keys operation"
525603 update :
@@ -554,6 +632,17 @@ actions:
554632 examples :
555633 delegatePkiResponseExample1 :
556634 $ref : " ../../specification/security/delegate_pki/examples/200_response/SecurityDelegatePkiResponseExample1.yaml"
635+ # # Examples for tasks
636+ - target : " $.paths['/_tasks']['get']"
637+ description : " Add examples for task management operation"
638+ update :
639+ responses :
640+ 200 :
641+ content :
642+ application/json :
643+ examples :
644+ getTasksResponseExample1 :
645+ $ref : " ../../specification/tasks/get/examples/200_response/GetTaskResponseExample1.yaml"
557646# # Examples for watcher
558647 - target : " $.paths['/_watcher/settings']['put']"
559648 description : " Add request example for update watcher settings"
@@ -574,12 +663,4 @@ actions:
574663 examples :
575664 updateWatcherSettingsRequestExample1 :
576665 $ref : " ../../specification/watcher/get_settings/examples/200_response/WatcherGetSettingsResponseExample1.yaml"
577- # # Examples for inference
578- - target : " $.components['requestBodies']['inference.stream_inference']"
579- description : " Add example for inference stream request"
580- update :
581- content :
582- application/json :
583- examples :
584- streamInferenceRequestExample1 :
585- $ref : " ../../specification/inference/stream_inference/examples/request/StreamInferenceRequestExample1.yaml"
666+
0 commit comments