@@ -62,26 +62,131 @@ actions:
62
62
- basicAuth : []
63
63
- bearerAuth : []
64
64
# 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"
67
68
update :
68
69
responses :
69
70
200 :
70
71
content :
71
72
application/json :
72
73
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 "
77
78
update :
78
79
responses :
79
80
200 :
80
81
content :
81
82
application/json :
82
83
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
85
190
- target : " $.components['requestBodies']['cluster.allocation_explain']"
86
191
description : " Add examples for cluster allocation explain operation"
87
192
update :
@@ -132,16 +237,6 @@ actions:
132
237
examples :
133
238
clusterNodesReloadSecureSettingsResponseExample1 :
134
239
$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"
145
240
- target : " $.components['responses']['nodes.info#200']"
146
241
description : " Add response examples for nodes info"
147
242
update :
@@ -150,6 +245,48 @@ actions:
150
245
examples :
151
246
nodesInfoResponseExample1 :
152
247
$ref : " ../../specification/nodes/info/examples/200_response/nodesInfoResponseExample1.yaml"
248
+ - target : " $.paths['/_resolve/cluster/{name}']['get']"
249
+ description : " Add examples for resolve cluster operation"
250
+ update :
251
+ responses :
252
+ 200 :
253
+ content :
254
+ application/json :
255
+ examples :
256
+ resolveClusterResponseExample1 :
257
+ $ref : " ../../specification/indices/resolve_cluster/examples/200_response/ResolveClusterResponseExample1.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
153
290
- target : " $.paths['/_ilm/policy/{policy}']['delete']"
154
291
description : " Add examples for delete lifecycle policy operation"
155
292
update :
@@ -268,6 +405,17 @@ actions:
268
405
examples :
269
406
removePolicyResponseExample1 :
270
407
$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"
271
419
- target : " $.components['requestBodies']['indices.clone']"
272
420
description : " Add examples for clone index request"
273
421
update :
@@ -304,54 +452,6 @@ actions:
304
452
examples :
305
453
indicesOpenResponseExample1 :
306
454
$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"
355
455
- target : " $.components['responses']['indices.recovery#200']"
356
456
description : " Add example for get index recovery response"
357
457
update :
@@ -360,16 +460,6 @@ actions:
360
460
examples :
361
461
getIndicesRecoveryResponseExample1 :
362
462
$ref : " ../../specification/indices/recovery/examples/200_response/indicesRecoveryResponseExample1.yaml"
363
- - target : " $.paths['/_resolve/cluster/{name}']['get']"
364
- description : " Add examples for resolve cluster operation"
365
- update :
366
- responses :
367
- 200 :
368
- content :
369
- application/json :
370
- examples :
371
- resolveClusterResponseExample1 :
372
- $ref : " ../../specification/indices/resolve_cluster/examples/200_response/ResolveClusterResponseExample1.yaml"
373
463
- target : " $.components['requestBodies']['indices.shrink']"
374
464
description : " Add example for shrink index request"
375
465
update :
@@ -394,37 +484,15 @@ actions:
394
484
examples :
395
485
indicesLegacyPutTemplateRequestExample1 :
396
486
$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"
487
+ # # Examples for inference
488
+ - target : " $.components['requestBodies']['inference.stream_inference']"
489
+ description : " Add example for inference stream request"
420
490
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"
491
+ content :
492
+ application/json :
493
+ examples :
494
+ streamInferenceRequestExample1 :
495
+ $ref : " ../../specification/inference/stream_inference/examples/request/StreamInferenceRequestExample1.yaml"
428
496
# # Examples for ingest
429
497
- target : " $.components['requestBodies']['simulate.ingest']"
430
498
description : " Add example for simulate ingest request"
@@ -519,7 +587,7 @@ actions:
519
587
examples :
520
588
renderSearchApplicationQueryRequestExample1 :
521
589
$ref : " ../../specification/search_application/render_query/examples/request/SearchApplicationsRenderQueryRequestExample1.yaml"
522
- # Examples for security
590
+ # # Examples for security
523
591
- target : " $.paths['/_security/api_key/_bulk_update']['post']"
524
592
description : " Add examples for bulk update API keys operation"
525
593
update :
@@ -554,6 +622,17 @@ actions:
554
622
examples :
555
623
delegatePkiResponseExample1 :
556
624
$ref : " ../../specification/security/delegate_pki/examples/200_response/SecurityDelegatePkiResponseExample1.yaml"
625
+ # # Examples for tasks
626
+ - target : " $.paths['/_tasks']['get']"
627
+ description : " Add examples for task management operation"
628
+ update :
629
+ responses :
630
+ 200 :
631
+ content :
632
+ application/json :
633
+ examples :
634
+ getTasksResponseExample1 :
635
+ $ref : " ../../specification/tasks/get/examples/200_response/GetTaskResponseExample1.yaml"
557
636
# # Examples for watcher
558
637
- target : " $.paths['/_watcher/settings']['put']"
559
638
description : " Add request example for update watcher settings"
@@ -574,12 +653,3 @@ actions:
574
653
examples :
575
654
updateWatcherSettingsRequestExample1 :
576
655
$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"
0 commit comments