File Coverage

blib/lib/Search/Elasticsearch/Client/8_0/Role/API.pm
Criterion Covered Total %
statement 10 11 90.9
branch n/a
condition 1 5 20.0
subroutine 4 4 100.0
pod 1 1 100.0
total 16 21 76.1


line stmt bran cond sub pod time code
1             # Licensed to Elasticsearch B.V. under one or more contributor
2             # license agreements. See the NOTICE file distributed with
3             # this work for additional information regarding copyright
4             # ownership. Elasticsearch B.V. licenses this file to you under
5             # the Apache License, Version 2.0 (the "License"); you may
6             # not use this file except in compliance with the License.
7             # You may obtain a copy of the License at
8             #
9             # http://www.apache.org/licenses/LICENSE-2.0
10             #
11             # Unless required by applicable law or agreed to in writing,
12             # software distributed under the License is distributed on an
13             # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14             # KIND, either express or implied. See the License for the
15             # specific language governing permissions and limitations
16             # under the License.
17              
18             package Search::Elasticsearch::Client::8_0::Role::API;
19             $Search::Elasticsearch::Client::8_0::Role::API::VERSION = '8.12';
20 55     55   86671 use Moo::Role;
  55         135  
  55         469  
21             with 'Search::Elasticsearch::Role::API';
22              
23 55     55   35059 use Search::Elasticsearch::Util qw(throw);
  55         166  
  55         620  
24 55     55   17332 use namespace::clean;
  55         119  
  55         423  
25              
26             has 'api_version' => ( is => 'ro', default => '8_0' );
27              
28             our %API;
29              
30             #===================================
31             sub api {
32             #===================================
33 55   50 55 1 369 my $name = $_[1] || return \%API;
34 0   0       return $API{$name}
35             || throw( 'Internal', "Unknown api name ($name)" );
36             }
37              
38             #===================================
39             %API = (
40             #===================================
41              
42             'bulk.metadata' => {
43             params => {
44             '_index' => '_index',
45             'index' => '_index',
46             '_id' => '_id',
47             'id' => '_id',
48             'pipeline' => 'pipeline',
49             'routing' => 'routing',
50             '_routing' => 'routing',
51             'parent' => 'parent',
52             '_parent' => 'parent',
53             'timestamp' => 'timestamp',
54             '_timestamp' => 'timestamp',
55             'ttl' => 'ttl',
56             '_ttl' => 'ttl',
57             'version' => 'version',
58             '_version' => 'version',
59             'version_type' => 'version_type',
60             '_version_type' => 'version_type',
61             'if_seq_no' => 'if_seq_no',
62             'if_primary_term' => 'if_primary_term',
63             'lang' => 'lang',
64             'require_alias' => 'require_alias',
65             'refresh' => 'refresh',
66             'retry_on_conflict' => 'retry_on_conflict',
67             'wait_for_active_shards' => 'wait_for_active_shards',
68             '_source' => '_source',
69             '_source_excludes' => '_source_excludes',
70             '_source_includes' => '_source_includes',
71             'timeout' => 'timeout'
72             }
73             },
74             'bulk.update' => {
75             params => [
76             '_source', '_source_includes',
77             '_source_excludes', 'detect_noop',
78             'doc', 'doc_as_upsert',
79             'fields', 'retry_on_conflict',
80             'scripted_upsert', 'script',
81             'upsert', 'lang',
82             'params'
83             ]
84             },
85             'bulk.required' => { params => ['index'] },
86              
87             #=== AUTOGEN - START ===
88              
89             'bulk' => {
90             body => { required => 1 },
91             doc => "docs-bulk",
92             method => "POST",
93             parts => { index => {} },
94             paths => [ [ { index => 0 }, "{index}", "_bulk" ], [ {}, "_bulk" ] ],
95             qs => {
96             _source => "list",
97             _source_excludes => "list",
98             _source_includes => "list",
99             error_trace => "boolean",
100             filter_path => "list",
101             human => "boolean",
102             list_executed_pipelines => "boolean",
103             pipeline => "string",
104             refresh => "enum",
105             require_alias => "boolean",
106             routing => "string",
107             timeout => "time",
108             type => "string",
109             wait_for_active_shards => "string",
110             },
111             serialize => "bulk",
112             },
113              
114             'clear_scroll' => {
115             body => {},
116             doc => "clear-scroll-api",
117             method => "DELETE",
118             parts => { scroll_id => { multi => 1 } },
119             paths => [
120             [ { scroll_id => 2 }, "_search", "scroll", "{scroll_id}" ],
121             [ {}, "_search", "scroll" ],
122             ],
123             qs => {
124             error_trace => "boolean",
125             filter_path => "list",
126             human => "boolean"
127             },
128             },
129              
130             'close_point_in_time' => {
131             body => {},
132             doc => "point-in-time-api",
133             method => "DELETE",
134             parts => {},
135             paths => [ [ {}, "_pit" ] ],
136             qs => {
137             error_trace => "boolean",
138             filter_path => "list",
139             human => "boolean"
140             },
141             },
142              
143             'count' => {
144             body => {},
145             doc => "search-count",
146             method => "POST",
147             parts => { index => { multi => 1 } },
148             paths =>
149             [ [ { index => 0 }, "{index}", "_count" ], [ {}, "_count" ] ],
150             qs => {
151             allow_no_indices => "boolean",
152             analyze_wildcard => "boolean",
153             analyzer => "string",
154             default_operator => "enum",
155             df => "string",
156             error_trace => "boolean",
157             expand_wildcards => "enum",
158             filter_path => "list",
159             human => "boolean",
160             ignore_throttled => "boolean",
161             ignore_unavailable => "boolean",
162             lenient => "boolean",
163             min_score => "number",
164             preference => "string",
165             q => "string",
166             routing => "list",
167             terminate_after => "number",
168             },
169             },
170              
171             'create' => {
172             body => { required => 1 },
173             doc => "docs-index_",
174             method => "PUT",
175             parts => { id => {}, index => {} },
176             paths =>
177             [ [ { id => 2, index => 0 }, "{index}", "_create", "{id}" ] ],
178             qs => {
179             error_trace => "boolean",
180             filter_path => "list",
181             human => "boolean",
182             pipeline => "string",
183             refresh => "enum",
184             routing => "string",
185             timeout => "time",
186             version => "number",
187             version_type => "enum",
188             wait_for_active_shards => "string",
189             },
190             },
191              
192             'delete' => {
193             doc => "docs-delete",
194             method => "DELETE",
195             parts => { id => {}, index => {} },
196             paths => [ [ { id => 2, index => 0 }, "{index}", "_doc", "{id}" ] ],
197             qs => {
198             error_trace => "boolean",
199             filter_path => "list",
200             human => "boolean",
201             if_primary_term => "number",
202             if_seq_no => "number",
203             refresh => "enum",
204             routing => "string",
205             timeout => "time",
206             version => "number",
207             version_type => "enum",
208             wait_for_active_shards => "string",
209             },
210             },
211              
212             'delete_by_query' => {
213             body => { required => 1 },
214             doc => "docs-delete-by-query",
215             method => "POST",
216             parts => { index => { multi => 1 } },
217             paths => [ [ { index => 0 }, "{index}", "_delete_by_query" ] ],
218             qs => {
219             allow_no_indices => "boolean",
220             analyze_wildcard => "boolean",
221             analyzer => "string",
222             conflicts => "enum",
223             default_operator => "enum",
224             df => "string",
225             error_trace => "boolean",
226             expand_wildcards => "enum",
227             filter_path => "list",
228             from => "number",
229             human => "boolean",
230             ignore_unavailable => "boolean",
231             lenient => "boolean",
232             max_docs => "number",
233             preference => "string",
234             q => "string",
235             refresh => "boolean",
236             request_cache => "boolean",
237             requests_per_second => "number",
238             routing => "list",
239             scroll => "time",
240             scroll_size => "number",
241             search_timeout => "time",
242             search_type => "enum",
243             slices => "number|string",
244             sort => "list",
245             stats => "list",
246             terminate_after => "number",
247             timeout => "time",
248             version => "boolean",
249             wait_for_active_shards => "string",
250             wait_for_completion => "boolean",
251             },
252             },
253              
254             'delete_by_query_rethrottle' => {
255             doc => "docs-delete-by-query",
256             method => "POST",
257             parts => { task_id => {} },
258             paths => [
259             [ { task_id => 1 }, "_delete_by_query",
260             "{task_id}", "_rethrottle",
261             ],
262             ],
263             qs => {
264             error_trace => "boolean",
265             filter_path => "list",
266             human => "boolean",
267             requests_per_second => "number",
268             },
269             },
270              
271             'delete_script' => {
272             doc => "modules-scripting",
273             method => "DELETE",
274             parts => { id => {} },
275             paths => [ [ { id => 1 }, "_scripts", "{id}" ] ],
276             qs => {
277             error_trace => "boolean",
278             filter_path => "list",
279             human => "boolean",
280             master_timeout => "time",
281             timeout => "time",
282             },
283             },
284              
285             'exists' => {
286             doc => "docs-get",
287             method => "HEAD",
288             parts => { id => {}, index => {} },
289             paths => [ [ { id => 2, index => 0 }, "{index}", "_doc", "{id}" ] ],
290             qs => {
291             _source => "list",
292             _source_excludes => "list",
293             _source_includes => "list",
294             error_trace => "boolean",
295             filter_path => "list",
296             human => "boolean",
297             preference => "string",
298             realtime => "boolean",
299             refresh => "boolean",
300             routing => "string",
301             stored_fields => "list",
302             version => "number",
303             version_type => "enum",
304             },
305             },
306              
307             'exists_source' => {
308             doc => "docs-get",
309             method => "HEAD",
310             parts => { id => {}, index => {} },
311             paths =>
312             [ [ { id => 2, index => 0 }, "{index}", "_source", "{id}" ] ],
313             qs => {
314             _source => "list",
315             _source_excludes => "list",
316             _source_includes => "list",
317             error_trace => "boolean",
318             filter_path => "list",
319             human => "boolean",
320             preference => "string",
321             realtime => "boolean",
322             refresh => "boolean",
323             routing => "string",
324             version => "number",
325             version_type => "enum",
326             },
327             },
328              
329             'explain' => {
330             body => {},
331             doc => "search-explain",
332             parts => { id => {}, index => {} },
333             paths =>
334             [ [ { id => 2, index => 0 }, "{index}", "_explain", "{id}" ] ],
335             qs => {
336             _source => "list",
337             _source_excludes => "list",
338             _source_includes => "list",
339             analyze_wildcard => "boolean",
340             analyzer => "string",
341             default_operator => "enum",
342             df => "string",
343             error_trace => "boolean",
344             filter_path => "list",
345             human => "boolean",
346             lenient => "boolean",
347             preference => "string",
348             q => "string",
349             routing => "string",
350             stored_fields => "list",
351             },
352             },
353              
354             'field_caps' => {
355             body => {},
356             doc => "search-field-caps",
357             parts => { index => { multi => 1 } },
358             paths => [
359             [ { index => 0 }, "{index}", "_field_caps" ],
360             [ {}, "_field_caps" ],
361             ],
362             qs => {
363             allow_no_indices => "boolean",
364             error_trace => "boolean",
365             expand_wildcards => "enum",
366             fields => "list",
367             filter_path => "list",
368             filters => "list",
369             human => "boolean",
370             ignore_unavailable => "boolean",
371             include_unmapped => "boolean",
372             types => "list",
373             },
374             },
375              
376             'get' => {
377             doc => "docs-get",
378             parts => { id => {}, index => {} },
379             paths => [ [ { id => 2, index => 0 }, "{index}", "_doc", "{id}" ] ],
380             qs => {
381             _source => "list",
382             _source_excludes => "list",
383             _source_includes => "list",
384             error_trace => "boolean",
385             filter_path => "list",
386             force_synthetic_source => "boolean",
387             human => "boolean",
388             preference => "string",
389             realtime => "boolean",
390             refresh => "boolean",
391             routing => "string",
392             stored_fields => "list",
393             version => "number",
394             version_type => "enum",
395             },
396             },
397              
398             'get_script' => {
399             doc => "modules-scripting",
400             parts => { id => {} },
401             paths => [ [ { id => 1 }, "_scripts", "{id}" ] ],
402             qs => {
403             error_trace => "boolean",
404             filter_path => "list",
405             human => "boolean",
406             master_timeout => "time",
407             },
408             },
409              
410             'get_script_context' => {
411             doc => "painless-contexts",
412             parts => {},
413             paths => [ [ {}, "_script_context" ] ],
414             qs => {
415             error_trace => "boolean",
416             filter_path => "list",
417             human => "boolean"
418             },
419             },
420              
421             'get_script_languages' => {
422             doc => "modules-scripting",
423             parts => {},
424             paths => [ [ {}, "_script_language" ] ],
425             qs => {
426             error_trace => "boolean",
427             filter_path => "list",
428             human => "boolean"
429             },
430             },
431              
432             'get_source' => {
433             doc => "docs-get",
434             parts => { id => {}, index => {} },
435             paths =>
436             [ [ { id => 2, index => 0 }, "{index}", "_source", "{id}" ] ],
437             qs => {
438             _source => "list",
439             _source_excludes => "list",
440             _source_includes => "list",
441             error_trace => "boolean",
442             filter_path => "list",
443             human => "boolean",
444             preference => "string",
445             realtime => "boolean",
446             refresh => "boolean",
447             routing => "string",
448             version => "number",
449             version_type => "enum",
450             },
451             },
452              
453             'health_report' => {
454             doc => "health-api",
455             parts => { feature => {} },
456             paths => [
457             [ { feature => 1 }, "_health_report", "{feature}" ],
458             [ {}, "_health_report" ],
459             ],
460             qs => {
461             error_trace => "boolean",
462             filter_path => "list",
463             human => "boolean",
464             size => "int",
465             timeout => "time",
466             verbose => "boolean",
467             },
468             },
469              
470             'index' => {
471             body => { required => 1 },
472             doc => "docs-index_",
473             method => "POST",
474             parts => { id => {}, index => {} },
475             paths => [
476             [ { id => 2, index => 0 }, "{index}", "_doc", "{id}" ],
477             [ { index => 0 }, "{index}", "_doc" ],
478             ],
479             qs => {
480             error_trace => "boolean",
481             filter_path => "list",
482             human => "boolean",
483             if_primary_term => "number",
484             if_seq_no => "number",
485             op_type => "enum",
486             pipeline => "string",
487             refresh => "enum",
488             require_alias => "boolean",
489             routing => "string",
490             timeout => "time",
491             version => "number",
492             version_type => "enum",
493             wait_for_active_shards => "string",
494             },
495             },
496              
497             'info' => {
498             doc => "index",
499             parts => {},
500             paths => [ [ {} ] ],
501             qs => {
502             error_trace => "boolean",
503             filter_path => "list",
504             human => "boolean"
505             },
506             },
507              
508             'knn_search' => {
509             body => {},
510             doc => "search-search",
511             parts => { index => { multi => 1 } },
512             paths => [ [ { index => 0 }, "{index}", "_knn_search" ] ],
513             qs => {
514             error_trace => "boolean",
515             filter_path => "list",
516             human => "boolean",
517             routing => "list",
518             },
519             },
520              
521             'mget' => {
522             body => { required => 1 },
523             doc => "docs-multi-get",
524             parts => { index => {} },
525             paths => [ [ { index => 0 }, "{index}", "_mget" ], [ {}, "_mget" ] ],
526             qs => {
527             _source => "list",
528             _source_excludes => "list",
529             _source_includes => "list",
530             error_trace => "boolean",
531             filter_path => "list",
532             force_synthetic_source => "boolean",
533             human => "boolean",
534             preference => "string",
535             realtime => "boolean",
536             refresh => "boolean",
537             routing => "string",
538             stored_fields => "list",
539             },
540             },
541              
542             'msearch' => {
543             body => { required => 1 },
544             doc => "search-multi-search",
545             parts => { index => { multi => 1 } },
546             paths =>
547             [ [ { index => 0 }, "{index}", "_msearch" ], [ {}, "_msearch" ] ],
548             qs => {
549             ccs_minimize_roundtrips => "boolean",
550             error_trace => "boolean",
551             filter_path => "list",
552             human => "boolean",
553             max_concurrent_searches => "number",
554             max_concurrent_shard_requests => "number",
555             pre_filter_shard_size => "number",
556             rest_total_hits_as_int => "boolean",
557             search_type => "enum",
558             typed_keys => "boolean",
559             },
560             serialize => "bulk",
561             },
562              
563             'msearch_template' => {
564             body => { required => 1 },
565             doc => "search-multi-search",
566             parts => { index => { multi => 1 } },
567             paths => [
568             [ { index => 0 }, "{index}", "_msearch", "template" ],
569             [ {}, "_msearch", "template" ],
570             ],
571             qs => {
572             ccs_minimize_roundtrips => "boolean",
573             error_trace => "boolean",
574             filter_path => "list",
575             human => "boolean",
576             max_concurrent_searches => "number",
577             rest_total_hits_as_int => "boolean",
578             search_type => "enum",
579             typed_keys => "boolean",
580             },
581             serialize => "bulk",
582             },
583              
584             'mtermvectors' => {
585             body => {},
586             doc => "docs-multi-termvectors",
587             parts => { index => {} },
588             paths => [
589             [ { index => 0 }, "{index}", "_mtermvectors" ],
590             [ {}, "_mtermvectors" ],
591             ],
592             qs => {
593             error_trace => "boolean",
594             field_statistics => "boolean",
595             fields => "list",
596             filter_path => "list",
597             human => "boolean",
598             ids => "list",
599             offsets => "boolean",
600             payloads => "boolean",
601             positions => "boolean",
602             preference => "string",
603             realtime => "boolean",
604             routing => "string",
605             term_statistics => "boolean",
606             version => "number",
607             version_type => "enum",
608             },
609             },
610              
611             'open_point_in_time' => {
612             body => {},
613             doc => "point-in-time-api",
614             method => "POST",
615             parts => { index => { multi => 1 } },
616             paths => [ [ { index => 0 }, "{index}", "_pit" ] ],
617             qs => {
618             error_trace => "boolean",
619             expand_wildcards => "enum",
620             filter_path => "list",
621             human => "boolean",
622             ignore_unavailable => "boolean",
623             keep_alive => "string",
624             preference => "string",
625             routing => "string",
626             },
627             },
628              
629             'ping' => {
630             doc => "index",
631             method => "HEAD",
632             parts => {},
633             paths => [ [ {} ] ],
634             qs => {
635             error_trace => "boolean",
636             filter_path => "list",
637             human => "boolean"
638             },
639             },
640              
641             'put_script' => {
642             body => { required => 1 },
643             doc => "modules-scripting",
644             method => "PUT",
645             parts => { context => {}, id => {} },
646             paths => [
647             [ { context => 2, id => 1 }, "_scripts", "{id}", "{context}" ],
648             [ { id => 1 }, "_scripts", "{id}" ],
649             ],
650             qs => {
651             error_trace => "boolean",
652             filter_path => "list",
653             human => "boolean",
654             master_timeout => "time",
655             timeout => "time",
656             },
657             },
658              
659             'rank_eval' => {
660             body => { required => 1 },
661             doc => "search-rank-eval",
662             parts => { index => { multi => 1 } },
663             paths => [
664             [ { index => 0 }, "{index}", "_rank_eval" ],
665             [ {}, "_rank_eval" ]
666             ],
667             qs => {
668             allow_no_indices => "boolean",
669             error_trace => "boolean",
670             expand_wildcards => "enum",
671             filter_path => "list",
672             human => "boolean",
673             ignore_unavailable => "boolean",
674             search_type => "enum",
675             },
676             },
677              
678             'reindex' => {
679             body => { required => 1 },
680             doc => "docs-reindex",
681             method => "POST",
682             parts => {},
683             paths => [ [ {}, "_reindex" ] ],
684             qs => {
685             error_trace => "boolean",
686             filter_path => "list",
687             human => "boolean",
688             max_docs => "number",
689             refresh => "boolean",
690             requests_per_second => "number",
691             scroll => "time",
692             slices => "number|string",
693             timeout => "time",
694             wait_for_active_shards => "string",
695             wait_for_completion => "boolean",
696             },
697             },
698              
699             'reindex_rethrottle' => {
700             doc => "docs-reindex",
701             method => "POST",
702             parts => { task_id => {} },
703             paths =>
704             [ [ { task_id => 1 }, "_reindex", "{task_id}", "_rethrottle" ] ],
705             qs => {
706             error_trace => "boolean",
707             filter_path => "list",
708             human => "boolean",
709             requests_per_second => "number",
710             },
711             },
712              
713             'render_search_template' => {
714             body => {},
715             doc => "render-search-template-api",
716             parts => { id => {} },
717             paths => [
718             [ { id => 2 }, "_render", "template", "{id}" ],
719             [ {}, "_render", "template" ],
720             ],
721             qs => {
722             error_trace => "boolean",
723             filter_path => "list",
724             human => "boolean"
725             },
726             },
727              
728             'scripts_painless_execute' => {
729             body => {},
730             doc => "painless-execute-api",
731             parts => {},
732             paths => [ [ {}, "_scripts", "painless", "_execute" ] ],
733             qs => {
734             error_trace => "boolean",
735             filter_path => "list",
736             human => "boolean"
737             },
738             },
739              
740             'scroll' => {
741             body => {},
742             doc => "",
743             parts => { scroll_id => {} },
744             paths => [
745             [ { scroll_id => 2 }, "_search", "scroll", "{scroll_id}" ],
746             [ {}, "_search", "scroll" ],
747             ],
748             qs => {
749             error_trace => "boolean",
750             filter_path => "list",
751             human => "boolean",
752             rest_total_hits_as_int => "boolean",
753             scroll => "time",
754             },
755             },
756              
757             'search' => {
758             body => {},
759             doc => "search-search",
760             parts => { index => { multi => 1 } },
761             paths =>
762             [ [ { index => 0 }, "{index}", "_search" ], [ {}, "_search" ] ],
763             qs => {
764             _source => "list",
765             _source_excludes => "list",
766             _source_includes => "list",
767             allow_no_indices => "boolean",
768             allow_partial_search_results => "boolean",
769             analyze_wildcard => "boolean",
770             analyzer => "string",
771             batched_reduce_size => "number",
772             ccs_minimize_roundtrips => "boolean",
773             default_operator => "enum",
774             df => "string",
775             docvalue_fields => "list",
776             error_trace => "boolean",
777             expand_wildcards => "enum",
778             explain => "boolean",
779             filter_path => "list",
780             force_synthetic_source => "boolean",
781             from => "number",
782             human => "boolean",
783             ignore_throttled => "boolean",
784             ignore_unavailable => "boolean",
785             include_named_queries_score => "boolean",
786             lenient => "boolean",
787             max_concurrent_shard_requests => "number",
788             min_compatible_shard_node => "string",
789             pre_filter_shard_size => "number",
790             preference => "string",
791             q => "string",
792             request_cache => "boolean",
793             rest_total_hits_as_int => "boolean",
794             routing => "list",
795             scroll => "time",
796             search_type => "enum",
797             seq_no_primary_term => "boolean",
798             size => "number",
799             sort => "list",
800             stats => "list",
801             stored_fields => "list",
802             suggest_field => "string",
803             suggest_mode => "enum",
804             suggest_size => "number",
805             suggest_text => "string",
806             terminate_after => "number",
807             timeout => "time",
808             track_scores => "boolean",
809             track_total_hits => "boolean|long",
810             typed_keys => "boolean",
811             version => "boolean",
812             },
813             },
814              
815             'search_mvt' => {
816             body => {},
817             doc => "search-vector-tile-api",
818             method => "POST",
819             parts => {
820             field => {},
821             index => { multi => 1 },
822             x => {},
823             y => {},
824             zoom => {}
825             },
826             paths => [
827             [ { field => 2, index => 0, x => 4, y => 5, zoom => 3 },
828             "{index}", "_mvt", "{field}", "{zoom}", "{x}", "{y}",
829             ],
830             ],
831             qs => {
832             error_trace => "boolean",
833             exact_bounds => "boolean",
834             extent => "int",
835             filter_path => "list",
836             grid_precision => "int",
837             grid_type => "enum",
838             human => "boolean",
839             size => "int",
840             track_total_hits => "boolean|long",
841             with_labels => "boolean",
842             },
843             },
844              
845             'search_shards' => {
846             doc => "search-shards",
847             parts => { index => { multi => 1 } },
848             paths => [
849             [ { index => 0 }, "{index}", "_search_shards" ],
850             [ {}, "_search_shards" ],
851             ],
852             qs => {
853             allow_no_indices => "boolean",
854             error_trace => "boolean",
855             expand_wildcards => "enum",
856             filter_path => "list",
857             human => "boolean",
858             ignore_unavailable => "boolean",
859             local => "boolean",
860             preference => "string",
861             routing => "string",
862             },
863             },
864              
865             'search_template' => {
866             body => { required => 1 },
867             doc => "search-template",
868             parts => { index => { multi => 1 } },
869             paths => [
870             [ { index => 0 }, "{index}", "_search", "template" ],
871             [ {}, "_search", "template" ],
872             ],
873             qs => {
874             allow_no_indices => "boolean",
875             ccs_minimize_roundtrips => "boolean",
876             error_trace => "boolean",
877             expand_wildcards => "enum",
878             explain => "boolean",
879             filter_path => "list",
880             human => "boolean",
881             ignore_throttled => "boolean",
882             ignore_unavailable => "boolean",
883             preference => "string",
884             profile => "boolean",
885             rest_total_hits_as_int => "boolean",
886             routing => "list",
887             scroll => "time",
888             search_type => "enum",
889             typed_keys => "boolean",
890             },
891             },
892              
893             'terms_enum' => {
894             body => {},
895             doc => "search-terms-enum",
896             parts => { index => { multi => 1 } },
897             paths => [ [ { index => 0 }, "{index}", "_terms_enum" ] ],
898             qs => {
899             error_trace => "boolean",
900             filter_path => "list",
901             human => "boolean"
902             },
903             },
904              
905             'termvectors' => {
906             body => {},
907             doc => "docs-termvectors",
908             parts => { id => {}, index => {} },
909             paths => [
910             [ { id => 2, index => 0 }, "{index}", "_termvectors", "{id}" ],
911             [ { index => 0 }, "{index}", "_termvectors" ],
912             ],
913             qs => {
914             error_trace => "boolean",
915             field_statistics => "boolean",
916             fields => "list",
917             filter_path => "list",
918             human => "boolean",
919             offsets => "boolean",
920             payloads => "boolean",
921             positions => "boolean",
922             preference => "string",
923             realtime => "boolean",
924             routing => "string",
925             term_statistics => "boolean",
926             version => "number",
927             version_type => "enum",
928             },
929             },
930              
931             'update' => {
932             body => { required => 1 },
933             doc => "docs-update",
934             method => "POST",
935             parts => { id => {}, index => {} },
936             paths =>
937             [ [ { id => 2, index => 0 }, "{index}", "_update", "{id}" ] ],
938             qs => {
939             _source => "list",
940             _source_excludes => "list",
941             _source_includes => "list",
942             error_trace => "boolean",
943             filter_path => "list",
944             human => "boolean",
945             if_primary_term => "number",
946             if_seq_no => "number",
947             lang => "string",
948             refresh => "enum",
949             require_alias => "boolean",
950             retry_on_conflict => "number",
951             routing => "string",
952             timeout => "time",
953             wait_for_active_shards => "string",
954             },
955             },
956              
957             'update_by_query' => {
958             body => {},
959             doc => "docs-update-by-query",
960             method => "POST",
961             parts => { index => { multi => 1 } },
962             paths => [ [ { index => 0 }, "{index}", "_update_by_query" ] ],
963             qs => {
964             allow_no_indices => "boolean",
965             analyze_wildcard => "boolean",
966             analyzer => "string",
967             conflicts => "enum",
968             default_operator => "enum",
969             df => "string",
970             error_trace => "boolean",
971             expand_wildcards => "enum",
972             filter_path => "list",
973             from => "number",
974             human => "boolean",
975             ignore_unavailable => "boolean",
976             lenient => "boolean",
977             max_docs => "number",
978             pipeline => "string",
979             preference => "string",
980             q => "string",
981             refresh => "boolean",
982             request_cache => "boolean",
983             requests_per_second => "number",
984             routing => "list",
985             scroll => "time",
986             scroll_size => "number",
987             search_timeout => "time",
988             search_type => "enum",
989             slices => "number|string",
990             sort => "list",
991             stats => "list",
992             terminate_after => "number",
993             timeout => "time",
994             version => "boolean",
995             version_type => "boolean",
996             wait_for_active_shards => "string",
997             wait_for_completion => "boolean",
998             },
999             },
1000              
1001             'update_by_query_rethrottle' => {
1002             doc => "docs-update-by-query",
1003             method => "POST",
1004             parts => { task_id => {} },
1005             paths => [
1006             [ { task_id => 1 }, "_update_by_query",
1007             "{task_id}", "_rethrottle",
1008             ],
1009             ],
1010             qs => {
1011             error_trace => "boolean",
1012             filter_path => "list",
1013             human => "boolean",
1014             requests_per_second => "number",
1015             },
1016             },
1017              
1018             'async_search.delete' => {
1019             doc => "async-search",
1020             method => "DELETE",
1021             parts => { id => {} },
1022             paths => [ [ { id => 1 }, "_async_search", "{id}" ] ],
1023             qs => {
1024             error_trace => "boolean",
1025             filter_path => "list",
1026             human => "boolean"
1027             },
1028             },
1029              
1030             'async_search.get' => {
1031             doc => "async-search",
1032             parts => { id => {} },
1033             paths => [ [ { id => 1 }, "_async_search", "{id}" ] ],
1034             qs => {
1035             error_trace => "boolean",
1036             filter_path => "list",
1037             human => "boolean",
1038             keep_alive => "time",
1039             typed_keys => "boolean",
1040             wait_for_completion_timeout => "time",
1041             },
1042             },
1043              
1044             'async_search.status' => {
1045             doc => "async-search",
1046             parts => { id => {} },
1047             paths => [ [ { id => 2 }, "_async_search", "status", "{id}" ] ],
1048             qs => {
1049             error_trace => "boolean",
1050             filter_path => "list",
1051             human => "boolean"
1052             },
1053             },
1054              
1055             'async_search.submit' => {
1056             body => {},
1057             doc => "async-search",
1058             method => "POST",
1059             parts => { index => { multi => 1 } },
1060             paths => [
1061             [ { index => 0 }, "{index}", "_async_search" ],
1062             [ {}, "_async_search" ],
1063             ],
1064             qs => {
1065             _source => "list",
1066             _source_excludes => "list",
1067             _source_includes => "list",
1068             allow_no_indices => "boolean",
1069             allow_partial_search_results => "boolean",
1070             analyze_wildcard => "boolean",
1071             analyzer => "string",
1072             batched_reduce_size => "number",
1073             default_operator => "enum",
1074             df => "string",
1075             docvalue_fields => "list",
1076             error_trace => "boolean",
1077             expand_wildcards => "enum",
1078             explain => "boolean",
1079             filter_path => "list",
1080             from => "number",
1081             human => "boolean",
1082             ignore_throttled => "boolean",
1083             ignore_unavailable => "boolean",
1084             keep_alive => "time",
1085             keep_on_completion => "boolean",
1086             lenient => "boolean",
1087             max_concurrent_shard_requests => "number",
1088             preference => "string",
1089             q => "string",
1090             request_cache => "boolean",
1091             routing => "list",
1092             search_type => "enum",
1093             seq_no_primary_term => "boolean",
1094             size => "number",
1095             sort => "list",
1096             stats => "list",
1097             stored_fields => "list",
1098             suggest_field => "string",
1099             suggest_mode => "enum",
1100             suggest_size => "number",
1101             suggest_text => "string",
1102             terminate_after => "number",
1103             timeout => "time",
1104             track_scores => "boolean",
1105             track_total_hits => "boolean|long",
1106             typed_keys => "boolean",
1107             version => "boolean",
1108             wait_for_completion_timeout => "time",
1109             },
1110             },
1111              
1112             'autoscaling.delete_autoscaling_policy' => {
1113             doc => "autoscaling-delete-autoscaling-policy",
1114             method => "DELETE",
1115             parts => { name => {} },
1116             paths => [ [ { name => 2 }, "_autoscaling", "policy", "{name}" ] ],
1117             qs => {
1118             error_trace => "boolean",
1119             filter_path => "list",
1120             human => "boolean"
1121             },
1122             },
1123              
1124             'autoscaling.get_autoscaling_capacity' => {
1125             doc => "autoscaling-get-autoscaling-capacity",
1126             parts => {},
1127             paths => [ [ {}, "_autoscaling", "capacity" ] ],
1128             qs => {
1129             error_trace => "boolean",
1130             filter_path => "list",
1131             human => "boolean"
1132             },
1133             },
1134              
1135             'autoscaling.get_autoscaling_policy' => {
1136             doc => "autoscaling-get-autoscaling-policy",
1137             parts => { name => {} },
1138             paths => [ [ { name => 2 }, "_autoscaling", "policy", "{name}" ] ],
1139             qs => {
1140             error_trace => "boolean",
1141             filter_path => "list",
1142             human => "boolean"
1143             },
1144             },
1145              
1146             'autoscaling.put_autoscaling_policy' => {
1147             body => { required => 1 },
1148             doc => "autoscaling-put-autoscaling-policy",
1149             method => "PUT",
1150             parts => { name => {} },
1151             paths => [ [ { name => 2 }, "_autoscaling", "policy", "{name}" ] ],
1152             qs => {
1153             error_trace => "boolean",
1154             filter_path => "list",
1155             human => "boolean"
1156             },
1157             },
1158              
1159             'cat.aliases' => {
1160             doc => "cat-alias",
1161             parts => { name => { multi => 1 } },
1162             paths => [
1163             [ { name => 2 }, "_cat", "aliases", "{name}" ],
1164             [ {}, "_cat", "aliases" ],
1165             ],
1166             qs => {
1167             error_trace => "boolean",
1168             expand_wildcards => "enum",
1169             filter_path => "list",
1170             format => "string",
1171             h => "list",
1172             help => "boolean",
1173             human => "boolean",
1174             local => "boolean",
1175             s => "list",
1176             v => "boolean",
1177             },
1178             },
1179              
1180             'cat.allocation' => {
1181             doc => "cat-allocation",
1182             parts => { node_id => { multi => 1 } },
1183             paths => [
1184             [ { node_id => 2 }, "_cat", "allocation", "{node_id}" ],
1185             [ {}, "_cat", "allocation" ],
1186             ],
1187             qs => {
1188             bytes => "enum",
1189             error_trace => "boolean",
1190             filter_path => "list",
1191             format => "string",
1192             h => "list",
1193             help => "boolean",
1194             human => "boolean",
1195             local => "boolean",
1196             master_timeout => "time",
1197             s => "list",
1198             v => "boolean",
1199             },
1200             },
1201              
1202             'cat.component_templates' => {
1203             doc => "cat-component-templates",
1204             parts => { name => {} },
1205             paths => [
1206             [ { name => 2 }, "_cat", "component_templates", "{name}" ],
1207             [ {}, "_cat", "component_templates" ],
1208             ],
1209             qs => {
1210             error_trace => "boolean",
1211             filter_path => "list",
1212             format => "string",
1213             h => "list",
1214             help => "boolean",
1215             human => "boolean",
1216             local => "boolean",
1217             master_timeout => "time",
1218             s => "list",
1219             v => "boolean",
1220             },
1221             },
1222              
1223             'cat.count' => {
1224             doc => "cat-count",
1225             parts => { index => { multi => 1 } },
1226             paths => [
1227             [ { index => 2 }, "_cat", "count", "{index}" ],
1228             [ {}, "_cat", "count" ],
1229             ],
1230             qs => {
1231             error_trace => "boolean",
1232             filter_path => "list",
1233             format => "string",
1234             h => "list",
1235             help => "boolean",
1236             human => "boolean",
1237             s => "list",
1238             v => "boolean",
1239             },
1240             },
1241              
1242             'cat.fielddata' => {
1243             doc => "cat-fielddata",
1244             parts => { fields => { multi => 1 } },
1245             paths => [
1246             [ { fields => 2 }, "_cat", "fielddata", "{fields}" ],
1247             [ {}, "_cat", "fielddata" ],
1248             ],
1249             qs => {
1250             bytes => "enum",
1251             error_trace => "boolean",
1252             filter_path => "list",
1253             format => "string",
1254             h => "list",
1255             help => "boolean",
1256             human => "boolean",
1257             s => "list",
1258             v => "boolean",
1259             },
1260             },
1261              
1262             'cat.health' => {
1263             doc => "cat-health",
1264             parts => {},
1265             paths => [ [ {}, "_cat", "health" ] ],
1266             qs => {
1267             error_trace => "boolean",
1268             filter_path => "list",
1269             format => "string",
1270             h => "list",
1271             help => "boolean",
1272             human => "boolean",
1273             s => "list",
1274             time => "enum",
1275             ts => "boolean",
1276             v => "boolean",
1277             },
1278             },
1279              
1280             'cat.help' => {
1281             doc => "cat",
1282             parts => {},
1283             paths => [ [ {}, "_cat" ] ],
1284             qs => {
1285             error_trace => "boolean",
1286             filter_path => "list",
1287             help => "boolean",
1288             human => "boolean",
1289             s => "list",
1290             },
1291             },
1292              
1293             'cat.indices' => {
1294             doc => "cat-indices",
1295             parts => { index => { multi => 1 } },
1296             paths => [
1297             [ { index => 2 }, "_cat", "indices", "{index}" ],
1298             [ {}, "_cat", "indices" ],
1299             ],
1300             qs => {
1301             bytes => "enum",
1302             error_trace => "boolean",
1303             expand_wildcards => "enum",
1304             filter_path => "list",
1305             format => "string",
1306             h => "list",
1307             health => "enum",
1308             help => "boolean",
1309             human => "boolean",
1310             include_unloaded_segments => "boolean",
1311             master_timeout => "time",
1312             pri => "boolean",
1313             s => "list",
1314             time => "enum",
1315             v => "boolean",
1316             },
1317             },
1318              
1319             'cat.master' => {
1320             doc => "cat-master",
1321             parts => {},
1322             paths => [ [ {}, "_cat", "master" ] ],
1323             qs => {
1324             error_trace => "boolean",
1325             filter_path => "list",
1326             format => "string",
1327             h => "list",
1328             help => "boolean",
1329             human => "boolean",
1330             local => "boolean",
1331             master_timeout => "time",
1332             s => "list",
1333             v => "boolean",
1334             },
1335             },
1336              
1337             'cat.ml_data_frame_analytics' => {
1338             doc => "cat-dfanalytics",
1339             parts => { id => {} },
1340             paths => [
1341             [ { id => 4 }, "_cat", "ml", "data_frame", "analytics", "{id}" ],
1342             [ {}, "_cat", "ml", "data_frame", "analytics" ],
1343             ],
1344             qs => {
1345             allow_no_match => "boolean",
1346             bytes => "enum",
1347             error_trace => "boolean",
1348             filter_path => "list",
1349             format => "string",
1350             h => "list",
1351             help => "boolean",
1352             human => "boolean",
1353             s => "list",
1354             time => "enum",
1355             v => "boolean",
1356             },
1357             },
1358              
1359             'cat.ml_datafeeds' => {
1360             doc => "cat-datafeeds",
1361             parts => { datafeed_id => {} },
1362             paths => [
1363             [ { datafeed_id => 3 }, "_cat",
1364             "ml", "datafeeds",
1365             "{datafeed_id}"
1366             ],
1367             [ {}, "_cat", "ml", "datafeeds" ],
1368             ],
1369             qs => {
1370             allow_no_match => "boolean",
1371             error_trace => "boolean",
1372             filter_path => "list",
1373             format => "string",
1374             h => "list",
1375             help => "boolean",
1376             human => "boolean",
1377             s => "list",
1378             time => "enum",
1379             v => "boolean",
1380             },
1381             },
1382              
1383             'cat.ml_jobs' => {
1384             doc => "cat-anomaly-detectors",
1385             parts => { job_id => {} },
1386             paths => [
1387             [ { job_id => 3 }, "_cat", "ml", "anomaly_detectors",
1388             "{job_id}"
1389             ],
1390             [ {}, "_cat", "ml", "anomaly_detectors" ],
1391             ],
1392             qs => {
1393             allow_no_match => "boolean",
1394             bytes => "enum",
1395             error_trace => "boolean",
1396             filter_path => "list",
1397             format => "string",
1398             h => "list",
1399             help => "boolean",
1400             human => "boolean",
1401             s => "list",
1402             time => "enum",
1403             v => "boolean",
1404             },
1405             },
1406              
1407             'cat.ml_trained_models' => {
1408             doc => "cat-trained-model",
1409             parts => { model_id => {} },
1410             paths => [
1411             [ { model_id => 3 }, "_cat",
1412             "ml", "trained_models",
1413             "{model_id}"
1414             ],
1415             [ {}, "_cat", "ml", "trained_models" ],
1416             ],
1417             qs => {
1418             allow_no_match => "boolean",
1419             bytes => "enum",
1420             error_trace => "boolean",
1421             filter_path => "list",
1422             format => "string",
1423             from => "int",
1424             h => "list",
1425             help => "boolean",
1426             human => "boolean",
1427             s => "list",
1428             size => "int",
1429             time => "enum",
1430             v => "boolean",
1431             },
1432             },
1433              
1434             'cat.nodeattrs' => {
1435             doc => "cat-nodeattrs",
1436             parts => {},
1437             paths => [ [ {}, "_cat", "nodeattrs" ] ],
1438             qs => {
1439             error_trace => "boolean",
1440             filter_path => "list",
1441             format => "string",
1442             h => "list",
1443             help => "boolean",
1444             human => "boolean",
1445             local => "boolean",
1446             master_timeout => "time",
1447             s => "list",
1448             v => "boolean",
1449             },
1450             },
1451              
1452             'cat.nodes' => {
1453             doc => "cat-nodes",
1454             parts => {},
1455             paths => [ [ {}, "_cat", "nodes" ] ],
1456             qs => {
1457             bytes => "enum",
1458             error_trace => "boolean",
1459             filter_path => "list",
1460             format => "string",
1461             full_id => "boolean",
1462             h => "list",
1463             help => "boolean",
1464             human => "boolean",
1465             include_unloaded_segments => "boolean",
1466             master_timeout => "time",
1467             s => "list",
1468             time => "enum",
1469             v => "boolean",
1470             },
1471             },
1472              
1473             'cat.pending_tasks' => {
1474             doc => "cat-pending-tasks",
1475             parts => {},
1476             paths => [ [ {}, "_cat", "pending_tasks" ] ],
1477             qs => {
1478             error_trace => "boolean",
1479             filter_path => "list",
1480             format => "string",
1481             h => "list",
1482             help => "boolean",
1483             human => "boolean",
1484             local => "boolean",
1485             master_timeout => "time",
1486             s => "list",
1487             time => "enum",
1488             v => "boolean",
1489             },
1490             },
1491              
1492             'cat.plugins' => {
1493             doc => "cat-plugins",
1494             parts => {},
1495             paths => [ [ {}, "_cat", "plugins" ] ],
1496             qs => {
1497             error_trace => "boolean",
1498             filter_path => "list",
1499             format => "string",
1500             h => "list",
1501             help => "boolean",
1502             human => "boolean",
1503             include_bootstrap => "boolean",
1504             local => "boolean",
1505             master_timeout => "time",
1506             s => "list",
1507             v => "boolean",
1508             },
1509             },
1510              
1511             'cat.recovery' => {
1512             doc => "cat-recovery",
1513             parts => { index => { multi => 1 } },
1514             paths => [
1515             [ { index => 2 }, "_cat", "recovery", "{index}" ],
1516             [ {}, "_cat", "recovery" ],
1517             ],
1518             qs => {
1519             active_only => "boolean",
1520             bytes => "enum",
1521             detailed => "boolean",
1522             error_trace => "boolean",
1523             filter_path => "list",
1524             format => "string",
1525             h => "list",
1526             help => "boolean",
1527             human => "boolean",
1528             s => "list",
1529             time => "enum",
1530             v => "boolean",
1531             },
1532             },
1533              
1534             'cat.repositories' => {
1535             doc => "cat-repositories",
1536             parts => {},
1537             paths => [ [ {}, "_cat", "repositories" ] ],
1538             qs => {
1539             error_trace => "boolean",
1540             filter_path => "list",
1541             format => "string",
1542             h => "list",
1543             help => "boolean",
1544             human => "boolean",
1545             local => "boolean",
1546             master_timeout => "time",
1547             s => "list",
1548             v => "boolean",
1549             },
1550             },
1551              
1552             'cat.segments' => {
1553             doc => "cat-segments",
1554             parts => { index => { multi => 1 } },
1555             paths => [
1556             [ { index => 2 }, "_cat", "segments", "{index}" ],
1557             [ {}, "_cat", "segments" ],
1558             ],
1559             qs => {
1560             bytes => "enum",
1561             error_trace => "boolean",
1562             filter_path => "list",
1563             format => "string",
1564             h => "list",
1565             help => "boolean",
1566             human => "boolean",
1567             s => "list",
1568             v => "boolean",
1569             },
1570             },
1571              
1572             'cat.shards' => {
1573             doc => "cat-shards",
1574             parts => { index => { multi => 1 } },
1575             paths => [
1576             [ { index => 2 }, "_cat", "shards", "{index}" ],
1577             [ {}, "_cat", "shards" ],
1578             ],
1579             qs => {
1580             bytes => "enum",
1581             error_trace => "boolean",
1582             filter_path => "list",
1583             format => "string",
1584             h => "list",
1585             help => "boolean",
1586             human => "boolean",
1587             master_timeout => "time",
1588             s => "list",
1589             time => "enum",
1590             v => "boolean",
1591             },
1592             },
1593              
1594             'cat.snapshots' => {
1595             doc => "cat-snapshots",
1596             parts => { repository => { multi => 1 } },
1597             paths => [
1598             [ { repository => 2 }, "_cat", "snapshots", "{repository}" ],
1599             [ {}, "_cat", "snapshots" ],
1600             ],
1601             qs => {
1602             error_trace => "boolean",
1603             filter_path => "list",
1604             format => "string",
1605             h => "list",
1606             help => "boolean",
1607             human => "boolean",
1608             ignore_unavailable => "boolean",
1609             master_timeout => "time",
1610             s => "list",
1611             time => "enum",
1612             v => "boolean",
1613             },
1614             },
1615              
1616             'cat.tasks' => {
1617             doc => "tasks",
1618             parts => {},
1619             paths => [ [ {}, "_cat", "tasks" ] ],
1620             qs => {
1621             actions => "list",
1622             detailed => "boolean",
1623             error_trace => "boolean",
1624             filter_path => "list",
1625             format => "string",
1626             h => "list",
1627             help => "boolean",
1628             human => "boolean",
1629             nodes => "list",
1630             parent_task_id => "string",
1631             s => "list",
1632             time => "enum",
1633             v => "boolean",
1634             },
1635             },
1636              
1637             'cat.templates' => {
1638             doc => "cat-templates",
1639             parts => { name => {} },
1640             paths => [
1641             [ { name => 2 }, "_cat", "templates", "{name}" ],
1642             [ {}, "_cat", "templates" ],
1643             ],
1644             qs => {
1645             error_trace => "boolean",
1646             filter_path => "list",
1647             format => "string",
1648             h => "list",
1649             help => "boolean",
1650             human => "boolean",
1651             local => "boolean",
1652             master_timeout => "time",
1653             s => "list",
1654             v => "boolean",
1655             },
1656             },
1657              
1658             'cat.thread_pool' => {
1659             doc => "cat-thread-pool",
1660             parts => { thread_pool_patterns => { multi => 1 } },
1661             paths => [
1662             [ { thread_pool_patterns => 2 }, "_cat",
1663             "thread_pool", "{thread_pool_patterns}",
1664             ],
1665             [ {}, "_cat", "thread_pool" ],
1666             ],
1667             qs => {
1668             error_trace => "boolean",
1669             filter_path => "list",
1670             format => "string",
1671             h => "list",
1672             help => "boolean",
1673             human => "boolean",
1674             local => "boolean",
1675             master_timeout => "time",
1676             s => "list",
1677             time => "enum",
1678             v => "boolean",
1679             },
1680             },
1681              
1682             'cat.transforms' => {
1683             doc => "cat-transforms",
1684             parts => { transform_id => {} },
1685             paths => [
1686             [ { transform_id => 2 }, "_cat", "transforms", "{transform_id}" ],
1687             [ {}, "_cat", "transforms" ],
1688             ],
1689             qs => {
1690             allow_no_match => "boolean",
1691             error_trace => "boolean",
1692             filter_path => "list",
1693             format => "string",
1694             from => "int",
1695             h => "list",
1696             help => "boolean",
1697             human => "boolean",
1698             s => "list",
1699             size => "int",
1700             time => "enum",
1701             v => "boolean",
1702             },
1703             },
1704              
1705             'ccr.delete_auto_follow_pattern' => {
1706             doc => "ccr-delete-auto-follow-pattern",
1707             method => "DELETE",
1708             parts => { name => {} },
1709             paths => [ [ { name => 2 }, "_ccr", "auto_follow", "{name}" ] ],
1710             qs => {
1711             error_trace => "boolean",
1712             filter_path => "list",
1713             human => "boolean"
1714             },
1715             },
1716              
1717             'ccr.follow' => {
1718             body => { required => 1 },
1719             doc => "ccr-put-follow",
1720             method => "PUT",
1721             parts => { index => {} },
1722             paths => [ [ { index => 0 }, "{index}", "_ccr", "follow" ] ],
1723             qs => {
1724             error_trace => "boolean",
1725             filter_path => "list",
1726             human => "boolean",
1727             wait_for_active_shards => "string",
1728             },
1729             },
1730              
1731             'ccr.follow_info' => {
1732             doc => "ccr-get-follow-info",
1733             parts => { index => { multi => 1 } },
1734             paths => [ [ { index => 0 }, "{index}", "_ccr", "info" ] ],
1735             qs => {
1736             error_trace => "boolean",
1737             filter_path => "list",
1738             human => "boolean"
1739             },
1740             },
1741              
1742             'ccr.follow_stats' => {
1743             doc => "ccr-get-follow-stats",
1744             parts => { index => { multi => 1 } },
1745             paths => [ [ { index => 0 }, "{index}", "_ccr", "stats" ] ],
1746             qs => {
1747             error_trace => "boolean",
1748             filter_path => "list",
1749             human => "boolean"
1750             },
1751             },
1752              
1753             'ccr.forget_follower' => {
1754             body => { required => 1 },
1755             doc => "ccr-post-forget-follower",
1756             method => "POST",
1757             parts => { index => {} },
1758             paths => [ [ { index => 0 }, "{index}", "_ccr", "forget_follower" ] ],
1759             qs => {
1760             error_trace => "boolean",
1761             filter_path => "list",
1762             human => "boolean"
1763             },
1764             },
1765              
1766             'ccr.get_auto_follow_pattern' => {
1767             doc => "ccr-get-auto-follow-pattern",
1768             parts => { name => {} },
1769             paths => [
1770             [ { name => 2 }, "_ccr", "auto_follow", "{name}" ],
1771             [ {}, "_ccr", "auto_follow" ],
1772             ],
1773             qs => {
1774             error_trace => "boolean",
1775             filter_path => "list",
1776             human => "boolean"
1777             },
1778             },
1779              
1780             'ccr.pause_auto_follow_pattern' => {
1781             doc => "ccr-pause-auto-follow-pattern",
1782             method => "POST",
1783             parts => { name => {} },
1784             paths =>
1785             [ [ { name => 2 }, "_ccr", "auto_follow", "{name}", "pause" ] ],
1786             qs => {
1787             error_trace => "boolean",
1788             filter_path => "list",
1789             human => "boolean"
1790             },
1791             },
1792              
1793             'ccr.pause_follow' => {
1794             doc => "ccr-post-pause-follow",
1795             method => "POST",
1796             parts => { index => {} },
1797             paths => [ [ { index => 0 }, "{index}", "_ccr", "pause_follow" ] ],
1798             qs => {
1799             error_trace => "boolean",
1800             filter_path => "list",
1801             human => "boolean"
1802             },
1803             },
1804              
1805             'ccr.put_auto_follow_pattern' => {
1806             body => { required => 1 },
1807             doc => "ccr-put-auto-follow-pattern",
1808             method => "PUT",
1809             parts => { name => {} },
1810             paths => [ [ { name => 2 }, "_ccr", "auto_follow", "{name}" ] ],
1811             qs => {
1812             error_trace => "boolean",
1813             filter_path => "list",
1814             human => "boolean"
1815             },
1816             },
1817              
1818             'ccr.resume_auto_follow_pattern' => {
1819             doc => "ccr-resume-auto-follow-pattern",
1820             method => "POST",
1821             parts => { name => {} },
1822             paths =>
1823             [ [ { name => 2 }, "_ccr", "auto_follow", "{name}", "resume" ] ],
1824             qs => {
1825             error_trace => "boolean",
1826             filter_path => "list",
1827             human => "boolean"
1828             },
1829             },
1830              
1831             'ccr.resume_follow' => {
1832             body => {},
1833             doc => "ccr-post-resume-follow",
1834             method => "POST",
1835             parts => { index => {} },
1836             paths => [ [ { index => 0 }, "{index}", "_ccr", "resume_follow" ] ],
1837             qs => {
1838             error_trace => "boolean",
1839             filter_path => "list",
1840             human => "boolean"
1841             },
1842             },
1843              
1844             'ccr.stats' => {
1845             doc => "ccr-get-stats",
1846             parts => {},
1847             paths => [ [ {}, "_ccr", "stats" ] ],
1848             qs => {
1849             error_trace => "boolean",
1850             filter_path => "list",
1851             human => "boolean"
1852             },
1853             },
1854              
1855             'ccr.unfollow' => {
1856             doc => "ccr-post-unfollow",
1857             method => "POST",
1858             parts => { index => {} },
1859             paths => [ [ { index => 0 }, "{index}", "_ccr", "unfollow" ] ],
1860             qs => {
1861             error_trace => "boolean",
1862             filter_path => "list",
1863             human => "boolean"
1864             },
1865             },
1866              
1867             'cluster.allocation_explain' => {
1868             body => {},
1869             doc => "cluster-allocation-explain",
1870             parts => {},
1871             paths => [ [ {}, "_cluster", "allocation", "explain" ] ],
1872             qs => {
1873             error_trace => "boolean",
1874             filter_path => "list",
1875             human => "boolean",
1876             include_disk_info => "boolean",
1877             include_yes_decisions => "boolean",
1878             },
1879             },
1880              
1881             'cluster.delete_component_template' => {
1882             doc => "indices-component-template",
1883             method => "DELETE",
1884             parts => { name => {} },
1885             paths => [ [ { name => 1 }, "_component_template", "{name}" ] ],
1886             qs => {
1887             error_trace => "boolean",
1888             filter_path => "list",
1889             human => "boolean",
1890             master_timeout => "time",
1891             timeout => "time",
1892             },
1893             },
1894              
1895             'cluster.delete_voting_config_exclusions' => {
1896             doc => "voting-config-exclusions",
1897             method => "DELETE",
1898             parts => {},
1899             paths => [ [ {}, "_cluster", "voting_config_exclusions" ] ],
1900             qs => {
1901             error_trace => "boolean",
1902             filter_path => "list",
1903             human => "boolean",
1904             master_timeout => "time",
1905             wait_for_removal => "boolean",
1906             },
1907             },
1908              
1909             'cluster.exists_component_template' => {
1910             doc => "indices-component-template",
1911             method => "HEAD",
1912             parts => { name => {} },
1913             paths => [ [ { name => 1 }, "_component_template", "{name}" ] ],
1914             qs => {
1915             error_trace => "boolean",
1916             filter_path => "list",
1917             human => "boolean",
1918             local => "boolean",
1919             master_timeout => "time",
1920             },
1921             },
1922              
1923             'cluster.get_component_template' => {
1924             doc => "indices-component-template",
1925             parts => { name => { multi => 1 } },
1926             paths => [
1927             [ { name => 1 }, "_component_template", "{name}" ],
1928             [ {}, "_component_template" ],
1929             ],
1930             qs => {
1931             error_trace => "boolean",
1932             filter_path => "list",
1933             human => "boolean",
1934             include_defaults => "boolean",
1935             local => "boolean",
1936             master_timeout => "time",
1937             },
1938             },
1939              
1940             'cluster.get_settings' => {
1941             doc => "cluster-get-settings",
1942             parts => {},
1943             paths => [ [ {}, "_cluster", "settings" ] ],
1944             qs => {
1945             error_trace => "boolean",
1946             filter_path => "list",
1947             flat_settings => "boolean",
1948             human => "boolean",
1949             include_defaults => "boolean",
1950             master_timeout => "time",
1951             timeout => "time",
1952             },
1953             },
1954              
1955             'cluster.health' => {
1956             doc => "cluster-health",
1957             parts => { index => { multi => 1 } },
1958             paths => [
1959             [ { index => 2 }, "_cluster", "health", "{index}" ],
1960             [ {}, "_cluster", "health" ],
1961             ],
1962             qs => {
1963             error_trace => "boolean",
1964             expand_wildcards => "enum",
1965             filter_path => "list",
1966             human => "boolean",
1967             level => "enum",
1968             local => "boolean",
1969             master_timeout => "time",
1970             timeout => "time",
1971             wait_for_active_shards => "string",
1972             wait_for_events => "enum",
1973             wait_for_no_initializing_shards => "boolean",
1974             wait_for_no_relocating_shards => "boolean",
1975             wait_for_nodes => "string",
1976             wait_for_status => "enum",
1977             },
1978             },
1979              
1980             'cluster.info' => {
1981             doc => "cluster-info",
1982             parts => { target => { multi => 1 } },
1983             paths => [ [ { target => 1 }, "_info", "{target}" ] ],
1984             qs => {
1985             error_trace => "boolean",
1986             filter_path => "list",
1987             human => "boolean"
1988             },
1989             },
1990              
1991             'cluster.pending_tasks' => {
1992             doc => "cluster-pending",
1993             parts => {},
1994             paths => [ [ {}, "_cluster", "pending_tasks" ] ],
1995             qs => {
1996             error_trace => "boolean",
1997             filter_path => "list",
1998             human => "boolean",
1999             local => "boolean",
2000             master_timeout => "time",
2001             },
2002             },
2003              
2004             'cluster.post_voting_config_exclusions' => {
2005             doc => "voting-config-exclusions",
2006             method => "POST",
2007             parts => {},
2008             paths => [ [ {}, "_cluster", "voting_config_exclusions" ] ],
2009             qs => {
2010             error_trace => "boolean",
2011             filter_path => "list",
2012             human => "boolean",
2013             master_timeout => "time",
2014             node_ids => "string",
2015             node_names => "string",
2016             timeout => "time",
2017             },
2018             },
2019              
2020             'cluster.put_component_template' => {
2021             body => { required => 1 },
2022             doc => "indices-component-template",
2023             method => "PUT",
2024             parts => { name => {} },
2025             paths => [ [ { name => 1 }, "_component_template", "{name}" ] ],
2026             qs => {
2027             create => "boolean",
2028             error_trace => "boolean",
2029             filter_path => "list",
2030             human => "boolean",
2031             master_timeout => "time",
2032             timeout => "time",
2033             },
2034             },
2035              
2036             'cluster.put_settings' => {
2037             body => { required => 1 },
2038             doc => "cluster-update-settings",
2039             method => "PUT",
2040             parts => {},
2041             paths => [ [ {}, "_cluster", "settings" ] ],
2042             qs => {
2043             error_trace => "boolean",
2044             filter_path => "list",
2045             flat_settings => "boolean",
2046             human => "boolean",
2047             master_timeout => "time",
2048             timeout => "time",
2049             },
2050             },
2051              
2052             'cluster.remote_info' => {
2053             doc => "cluster-remote-info",
2054             parts => {},
2055             paths => [ [ {}, "_remote", "info" ] ],
2056             qs => {
2057             error_trace => "boolean",
2058             filter_path => "list",
2059             human => "boolean"
2060             },
2061             },
2062              
2063             'cluster.reroute' => {
2064             body => {},
2065             doc => "cluster-reroute",
2066             method => "POST",
2067             parts => {},
2068             paths => [ [ {}, "_cluster", "reroute" ] ],
2069             qs => {
2070             dry_run => "boolean",
2071             error_trace => "boolean",
2072             explain => "boolean",
2073             filter_path => "list",
2074             human => "boolean",
2075             master_timeout => "time",
2076             metric => "list",
2077             retry_failed => "boolean",
2078             timeout => "time",
2079             },
2080             },
2081              
2082             'cluster.state' => {
2083             doc => "cluster-state",
2084             parts => { index => { multi => 1 }, metric => { multi => 1 } },
2085             paths => [
2086             [ { index => 3, metric => 2 }, "_cluster",
2087             "state", "{metric}",
2088             "{index}",
2089             ],
2090             [ { metric => 2 }, "_cluster", "state", "{metric}" ],
2091             [ {}, "_cluster", "state" ],
2092             ],
2093             qs => {
2094             allow_no_indices => "boolean",
2095             error_trace => "boolean",
2096             expand_wildcards => "enum",
2097             filter_path => "list",
2098             flat_settings => "boolean",
2099             human => "boolean",
2100             ignore_unavailable => "boolean",
2101             local => "boolean",
2102             master_timeout => "time",
2103             wait_for_metadata_version => "number",
2104             wait_for_timeout => "time",
2105             },
2106             },
2107              
2108             'cluster.stats' => {
2109             doc => "cluster-stats",
2110             parts => { node_id => { multi => 1 } },
2111             paths => [
2112             [ { node_id => 3 }, "_cluster", "stats", "nodes", "{node_id}" ],
2113             [ {}, "_cluster", "stats" ],
2114             ],
2115             qs => {
2116             error_trace => "boolean",
2117             filter_path => "list",
2118             flat_settings => "boolean",
2119             human => "boolean",
2120             timeout => "time",
2121             },
2122             },
2123              
2124             'connector.check_in' => {
2125             doc => "check-in-connector-api",
2126             method => "PUT",
2127             parts => { connector_id => {} },
2128             paths => [
2129             [ { connector_id => 1 }, "_connector",
2130             "{connector_id}", "_check_in",
2131             ],
2132             ],
2133             qs => {
2134             error_trace => "boolean",
2135             filter_path => "list",
2136             human => "boolean"
2137             },
2138             },
2139              
2140             'connector.delete' => {
2141             doc => "delete-connector-api",
2142             method => "DELETE",
2143             parts => { connector_id => {} },
2144             paths =>
2145             [ [ { connector_id => 1 }, "_connector", "{connector_id}" ] ],
2146             qs => {
2147             error_trace => "boolean",
2148             filter_path => "list",
2149             human => "boolean"
2150             },
2151             },
2152              
2153             'connector.get' => {
2154             doc => "get-connector-api",
2155             parts => { connector_id => {} },
2156             paths =>
2157             [ [ { connector_id => 1 }, "_connector", "{connector_id}" ] ],
2158             qs => {
2159             error_trace => "boolean",
2160             filter_path => "list",
2161             human => "boolean"
2162             },
2163             },
2164              
2165             'connector.last_sync' => {
2166             body => { required => 1 },
2167             doc => "update-connector-last-sync-api",
2168             method => "PUT",
2169             parts => { connector_id => {} },
2170             paths => [
2171             [ { connector_id => 1 }, "_connector",
2172             "{connector_id}", "_last_sync",
2173             ],
2174             ],
2175             qs => {
2176             error_trace => "boolean",
2177             filter_path => "list",
2178             human => "boolean"
2179             },
2180             },
2181              
2182             'connector.list' => {
2183             doc => "list-connector-api",
2184             parts => {},
2185             paths => [ [ {}, "_connector" ] ],
2186             qs => {
2187             error_trace => "boolean",
2188             filter_path => "list",
2189             from => "int",
2190             human => "boolean",
2191             size => "int",
2192             },
2193             },
2194              
2195             'connector.post' => {
2196             body => { required => 1 },
2197             doc => "create-connector-api",
2198             method => "POST",
2199             parts => {},
2200             paths => [ [ {}, "_connector" ] ],
2201             qs => {
2202             error_trace => "boolean",
2203             filter_path => "list",
2204             human => "boolean"
2205             },
2206             },
2207              
2208             'connector.put' => {
2209             body => { required => 1 },
2210             doc => "create-connector-api",
2211             method => "PUT",
2212             parts => { connector_id => {} },
2213             paths =>
2214             [ [ { connector_id => 1 }, "_connector", "{connector_id}" ] ],
2215             qs => {
2216             error_trace => "boolean",
2217             filter_path => "list",
2218             human => "boolean"
2219             },
2220             },
2221              
2222             'connector.update_configuration' => {
2223             body => { required => 1 },
2224             doc => "update-connector-configuration-api",
2225             method => "PUT",
2226             parts => { connector_id => {} },
2227             paths => [
2228             [ { connector_id => 1 }, "_connector",
2229             "{connector_id}", "_configuration",
2230             ],
2231             ],
2232             qs => {
2233             error_trace => "boolean",
2234             filter_path => "list",
2235             human => "boolean"
2236             },
2237             },
2238              
2239             'connector.update_error' => {
2240             body => { required => 1 },
2241             doc => "update-connector-error-api",
2242             method => "PUT",
2243             parts => { connector_id => {} },
2244             paths => [
2245             [ { connector_id => 1 }, "_connector",
2246             "{connector_id}", "_error"
2247             ],
2248             ],
2249             qs => {
2250             error_trace => "boolean",
2251             filter_path => "list",
2252             human => "boolean"
2253             },
2254             },
2255              
2256             'connector.update_filtering' => {
2257             body => { required => 1 },
2258             doc => "update-connector-filtering-api",
2259             method => "PUT",
2260             parts => { connector_id => {} },
2261             paths => [
2262             [ { connector_id => 1 }, "_connector",
2263             "{connector_id}", "_filtering",
2264             ],
2265             ],
2266             qs => {
2267             error_trace => "boolean",
2268             filter_path => "list",
2269             human => "boolean"
2270             },
2271             },
2272              
2273             'connector.update_name' => {
2274             body => { required => 1 },
2275             doc => "update-connector-name-description-api",
2276             method => "PUT",
2277             parts => { connector_id => {} },
2278             paths => [
2279             [ { connector_id => 1 }, "_connector", "{connector_id}",
2280             "_name"
2281             ],
2282             ],
2283             qs => {
2284             error_trace => "boolean",
2285             filter_path => "list",
2286             human => "boolean"
2287             },
2288             },
2289              
2290             'connector.update_pipeline' => {
2291             body => { required => 1 },
2292             doc => "update-connector-pipeline-api",
2293             method => "PUT",
2294             parts => { connector_id => {} },
2295             paths => [
2296             [ { connector_id => 1 }, "_connector",
2297             "{connector_id}", "_pipeline",
2298             ],
2299             ],
2300             qs => {
2301             error_trace => "boolean",
2302             filter_path => "list",
2303             human => "boolean"
2304             },
2305             },
2306              
2307             'connector.update_scheduling' => {
2308             body => { required => 1 },
2309             doc => "update-connector-scheduling-api",
2310             method => "PUT",
2311             parts => { connector_id => {} },
2312             paths => [
2313             [ { connector_id => 1 }, "_connector",
2314             "{connector_id}", "_scheduling",
2315             ],
2316             ],
2317             qs => {
2318             error_trace => "boolean",
2319             filter_path => "list",
2320             human => "boolean"
2321             },
2322             },
2323              
2324             'connector_sync_job.cancel' => {
2325             doc => "cancel-connector-sync-job-api",
2326             method => "PUT",
2327             parts => { connector_sync_job_id => {} },
2328             paths => [
2329             [ { connector_sync_job_id => 2 }, "_connector",
2330             "_sync_job", "{connector_sync_job_id}",
2331             "_cancel",
2332             ],
2333             ],
2334             qs => {
2335             error_trace => "boolean",
2336             filter_path => "list",
2337             human => "boolean"
2338             },
2339             },
2340              
2341             'connector_sync_job.check_in' => {
2342             doc => "check-in-connector-sync-job-api",
2343             method => "PUT",
2344             parts => { connector_sync_job_id => {} },
2345             paths => [
2346             [ { connector_sync_job_id => 2 }, "_connector",
2347             "_sync_job", "{connector_sync_job_id}",
2348             "_check_in",
2349             ],
2350             ],
2351             qs => {
2352             error_trace => "boolean",
2353             filter_path => "list",
2354             human => "boolean"
2355             },
2356             },
2357              
2358             'connector_sync_job.delete' => {
2359             doc => "delete-connector-sync-job-api",
2360             method => "DELETE",
2361             parts => { connector_sync_job_id => {} },
2362             paths => [
2363             [ { connector_sync_job_id => 2 }, "_connector",
2364             "_sync_job", "{connector_sync_job_id}",
2365             ],
2366             ],
2367             qs => {
2368             error_trace => "boolean",
2369             filter_path => "list",
2370             human => "boolean"
2371             },
2372             },
2373              
2374             'connector_sync_job.error' => {
2375             body => { required => 1 },
2376             doc => "set-connector-sync-job-error-api",
2377             method => "PUT",
2378             parts => { connector_sync_job_id => {} },
2379             paths => [
2380             [ { connector_sync_job_id => 2 }, "_connector",
2381             "_sync_job", "{connector_sync_job_id}",
2382             "_error",
2383             ],
2384             ],
2385             qs => {
2386             error_trace => "boolean",
2387             filter_path => "list",
2388             human => "boolean"
2389             },
2390             },
2391              
2392             'connector_sync_job.get' => {
2393             doc => "get-connector-sync-job-api",
2394             parts => { connector_sync_job_id => {} },
2395             paths => [
2396             [ { connector_sync_job_id => 2 }, "_connector",
2397             "_sync_job", "{connector_sync_job_id}",
2398             ],
2399             ],
2400             qs => {
2401             error_trace => "boolean",
2402             filter_path => "list",
2403             human => "boolean"
2404             },
2405             },
2406              
2407             'connector_sync_job.list' => {
2408             doc => "list-connector-sync-jobs-api",
2409             parts => {},
2410             paths => [ [ {}, "_connector", "_sync_job" ] ],
2411             qs => {
2412             connector_id => "string",
2413             error_trace => "boolean",
2414             filter_path => "list",
2415             from => "int",
2416             human => "boolean",
2417             size => "int",
2418             status => "string",
2419             },
2420             },
2421              
2422             'connector_sync_job.post' => {
2423             body => { required => 1 },
2424             doc => "create-connector-sync-job-api",
2425             method => "POST",
2426             parts => {},
2427             paths => [ [ {}, "_connector", "_sync_job" ] ],
2428             qs => {
2429             error_trace => "boolean",
2430             filter_path => "list",
2431             human => "boolean"
2432             },
2433             },
2434              
2435             'connector_sync_job.update_stats' => {
2436             body => { required => 1 },
2437             doc => "set-connector-sync-job-stats-api",
2438             method => "PUT",
2439             parts => { connector_sync_job_id => {} },
2440             paths => [
2441             [ { connector_sync_job_id => 2 }, "_connector",
2442             "_sync_job", "{connector_sync_job_id}",
2443             "_stats",
2444             ],
2445             ],
2446             qs => {
2447             error_trace => "boolean",
2448             filter_path => "list",
2449             human => "boolean"
2450             },
2451             },
2452              
2453             'dangling_indices.delete_dangling_index' => {
2454             doc => "modules-gateway-dangling-indices",
2455             method => "DELETE",
2456             parts => { index_uuid => {} },
2457             paths => [ [ { index_uuid => 1 }, "_dangling", "{index_uuid}" ] ],
2458             qs => {
2459             accept_data_loss => "boolean",
2460             error_trace => "boolean",
2461             filter_path => "list",
2462             human => "boolean",
2463             master_timeout => "time",
2464             timeout => "time",
2465             },
2466             },
2467              
2468             'dangling_indices.import_dangling_index' => {
2469             doc => "modules-gateway-dangling-indices",
2470             method => "POST",
2471             parts => { index_uuid => {} },
2472             paths => [ [ { index_uuid => 1 }, "_dangling", "{index_uuid}" ] ],
2473             qs => {
2474             accept_data_loss => "boolean",
2475             error_trace => "boolean",
2476             filter_path => "list",
2477             human => "boolean",
2478             master_timeout => "time",
2479             timeout => "time",
2480             },
2481             },
2482              
2483             'dangling_indices.list_dangling_indices' => {
2484             doc => "modules-gateway-dangling-indices",
2485             parts => {},
2486             paths => [ [ {}, "_dangling" ] ],
2487             qs => {
2488             error_trace => "boolean",
2489             filter_path => "list",
2490             human => "boolean"
2491             },
2492             },
2493              
2494             'enrich.delete_policy' => {
2495             doc => "delete-enrich-policy-api",
2496             method => "DELETE",
2497             parts => { name => {} },
2498             paths => [ [ { name => 2 }, "_enrich", "policy", "{name}" ] ],
2499             qs => {
2500             error_trace => "boolean",
2501             filter_path => "list",
2502             human => "boolean"
2503             },
2504             },
2505              
2506             'enrich.execute_policy' => {
2507             doc => "execute-enrich-policy-api",
2508             method => "PUT",
2509             parts => { name => {} },
2510             paths =>
2511             [ [ { name => 2 }, "_enrich", "policy", "{name}", "_execute" ] ],
2512             qs => {
2513             error_trace => "boolean",
2514             filter_path => "list",
2515             human => "boolean",
2516             wait_for_completion => "boolean",
2517             },
2518             },
2519              
2520             'enrich.get_policy' => {
2521             doc => "get-enrich-policy-api",
2522             parts => { name => { multi => 1 } },
2523             paths => [
2524             [ { name => 2 }, "_enrich", "policy", "{name}" ],
2525             [ {}, "_enrich", "policy" ],
2526             ],
2527             qs => {
2528             error_trace => "boolean",
2529             filter_path => "list",
2530             human => "boolean"
2531             },
2532             },
2533              
2534             'enrich.put_policy' => {
2535             body => { required => 1 },
2536             doc => "put-enrich-policy-api",
2537             method => "PUT",
2538             parts => { name => {} },
2539             paths => [ [ { name => 2 }, "_enrich", "policy", "{name}" ] ],
2540             qs => {
2541             error_trace => "boolean",
2542             filter_path => "list",
2543             human => "boolean"
2544             },
2545             },
2546              
2547             'enrich.stats' => {
2548             doc => "enrich-stats-api",
2549             parts => {},
2550             paths => [ [ {}, "_enrich", "_stats" ] ],
2551             qs => {
2552             error_trace => "boolean",
2553             filter_path => "list",
2554             human => "boolean"
2555             },
2556             },
2557              
2558             'eql.delete' => {
2559             doc => "eql-search-api",
2560             method => "DELETE",
2561             parts => { id => {} },
2562             paths => [ [ { id => 2 }, "_eql", "search", "{id}" ] ],
2563             qs => {
2564             error_trace => "boolean",
2565             filter_path => "list",
2566             human => "boolean"
2567             },
2568             },
2569              
2570             'eql.get' => {
2571             doc => "eql-search-api",
2572             parts => { id => {} },
2573             paths => [ [ { id => 2 }, "_eql", "search", "{id}" ] ],
2574             qs => {
2575             error_trace => "boolean",
2576             filter_path => "list",
2577             human => "boolean",
2578             keep_alive => "time",
2579             wait_for_completion_timeout => "time",
2580             },
2581             },
2582              
2583             'eql.get_status' => {
2584             doc => "eql-search-api",
2585             parts => { id => {} },
2586             paths => [ [ { id => 3 }, "_eql", "search", "status", "{id}" ] ],
2587             qs => {
2588             error_trace => "boolean",
2589             filter_path => "list",
2590             human => "boolean"
2591             },
2592             },
2593              
2594             'eql.search' => {
2595             body => { required => 1 },
2596             doc => "eql-search-api",
2597             parts => { index => {} },
2598             paths => [ [ { index => 0 }, "{index}", "_eql", "search" ] ],
2599             qs => {
2600             error_trace => "boolean",
2601             filter_path => "list",
2602             human => "boolean",
2603             keep_alive => "time",
2604             keep_on_completion => "boolean",
2605             wait_for_completion_timeout => "time",
2606             },
2607             },
2608              
2609             'esql.query' => {
2610             body => { required => 1 },
2611             doc => "esql-query-api",
2612             method => "POST",
2613             parts => {},
2614             paths => [ [ {}, "_query" ] ],
2615             qs => {
2616             delimiter => "string",
2617             error_trace => "boolean",
2618             filter_path => "list",
2619             format => "string",
2620             human => "boolean",
2621             },
2622             },
2623              
2624             'features.get_features' => {
2625             doc => "get-features-api",
2626             parts => {},
2627             paths => [ [ {}, "_features" ] ],
2628             qs => {
2629             error_trace => "boolean",
2630             filter_path => "list",
2631             human => "boolean",
2632             master_timeout => "time",
2633             },
2634             },
2635              
2636             'features.reset_features' => {
2637             doc => "modules-snapshots",
2638             method => "POST",
2639             parts => {},
2640             paths => [ [ {}, "_features", "_reset" ] ],
2641             qs => {
2642             error_trace => "boolean",
2643             filter_path => "list",
2644             human => "boolean"
2645             },
2646             },
2647              
2648             'fleet.delete_secret' => {
2649             method => "DELETE",
2650             parts => { id => {} },
2651             paths => [ [ { id => 2 }, "_fleet", "secret", "{id}" ] ],
2652             qs => {
2653             error_trace => "boolean",
2654             filter_path => "list",
2655             human => "boolean"
2656             },
2657             },
2658              
2659             'fleet.get_secret' => {
2660             parts => { id => {} },
2661             paths => [ [ { id => 2 }, "_fleet", "secret", "{id}" ] ],
2662             qs => {
2663             error_trace => "boolean",
2664             filter_path => "list",
2665             human => "boolean"
2666             },
2667             },
2668              
2669             'fleet.global_checkpoints' => {
2670             doc => "get-global-checkpoints",
2671             parts => { index => {} },
2672             paths =>
2673             [ [ { index => 0 }, "{index}", "_fleet", "global_checkpoints" ] ],
2674             qs => {
2675             checkpoints => "list",
2676             error_trace => "boolean",
2677             filter_path => "list",
2678             human => "boolean",
2679             timeout => "time",
2680             wait_for_advance => "boolean",
2681             wait_for_index => "boolean",
2682             },
2683             },
2684              
2685             'fleet.msearch' => {
2686             body => { required => 1 },
2687             parts => { index => {} },
2688             paths => [
2689             [ { index => 0 }, "{index}", "_fleet", "_fleet_msearch" ],
2690             [ {}, "_fleet", "_fleet_msearch" ],
2691             ],
2692             qs => {
2693             error_trace => "boolean",
2694             filter_path => "list",
2695             human => "boolean"
2696             },
2697             serialize => "bulk",
2698             },
2699              
2700             'fleet.post_secret' => {
2701             body => { required => 1 },
2702             method => "POST",
2703             parts => {},
2704             paths => [ [ {}, "_fleet", "secret" ] ],
2705             qs => {
2706             error_trace => "boolean",
2707             filter_path => "list",
2708             human => "boolean"
2709             },
2710             },
2711              
2712             'fleet.search' => {
2713             body => {},
2714             parts => { index => {} },
2715             paths => [ [ { index => 0 }, "{index}", "_fleet", "_fleet_search" ] ],
2716             qs => {
2717             allow_partial_search_results => "boolean",
2718             error_trace => "boolean",
2719             filter_path => "list",
2720             human => "boolean",
2721             wait_for_checkpoints => "list",
2722             wait_for_checkpoints_timeout => "time",
2723             },
2724             },
2725              
2726             'graph.explore' => {
2727             body => {},
2728             doc => "graph-explore-api",
2729             parts => { index => { multi => 1 } },
2730             paths => [ [ { index => 0 }, "{index}", "_graph", "explore" ] ],
2731             qs => {
2732             error_trace => "boolean",
2733             filter_path => "list",
2734             human => "boolean",
2735             routing => "string",
2736             timeout => "time",
2737             },
2738             },
2739              
2740             'ilm.delete_lifecycle' => {
2741             doc => "ilm-delete-lifecycle",
2742             method => "DELETE",
2743             parts => { policy => {} },
2744             paths => [ [ { policy => 2 }, "_ilm", "policy", "{policy}" ] ],
2745             qs => {
2746             error_trace => "boolean",
2747             filter_path => "list",
2748             human => "boolean"
2749             },
2750             },
2751              
2752             'ilm.explain_lifecycle' => {
2753             doc => "ilm-explain-lifecycle",
2754             parts => { index => {} },
2755             paths => [ [ { index => 0 }, "{index}", "_ilm", "explain" ] ],
2756             qs => {
2757             error_trace => "boolean",
2758             filter_path => "list",
2759             human => "boolean",
2760             only_errors => "boolean",
2761             only_managed => "boolean",
2762             },
2763             },
2764              
2765             'ilm.get_lifecycle' => {
2766             doc => "ilm-get-lifecycle",
2767             parts => { policy => {} },
2768             paths => [
2769             [ { policy => 2 }, "_ilm", "policy", "{policy}" ],
2770             [ {}, "_ilm", "policy" ],
2771             ],
2772             qs => {
2773             error_trace => "boolean",
2774             filter_path => "list",
2775             human => "boolean"
2776             },
2777             },
2778              
2779             'ilm.get_status' => {
2780             doc => "ilm-get-status",
2781             parts => {},
2782             paths => [ [ {}, "_ilm", "status" ] ],
2783             qs => {
2784             error_trace => "boolean",
2785             filter_path => "list",
2786             human => "boolean"
2787             },
2788             },
2789              
2790             'ilm.migrate_to_data_tiers' => {
2791             body => {},
2792             doc => "ilm-migrate-to-data-tiers",
2793             method => "POST",
2794             parts => {},
2795             paths => [ [ {}, "_ilm", "migrate_to_data_tiers" ] ],
2796             qs => {
2797             dry_run => "boolean",
2798             error_trace => "boolean",
2799             filter_path => "list",
2800             human => "boolean",
2801             },
2802             },
2803              
2804             'ilm.move_to_step' => {
2805             body => {},
2806             doc => "ilm-move-to-step",
2807             method => "POST",
2808             parts => { index => {} },
2809             paths => [ [ { index => 2 }, "_ilm", "move", "{index}" ] ],
2810             qs => {
2811             error_trace => "boolean",
2812             filter_path => "list",
2813             human => "boolean"
2814             },
2815             },
2816              
2817             'ilm.put_lifecycle' => {
2818             body => {},
2819             doc => "ilm-put-lifecycle",
2820             method => "PUT",
2821             parts => { policy => {} },
2822             paths => [ [ { policy => 2 }, "_ilm", "policy", "{policy}" ] ],
2823             qs => {
2824             error_trace => "boolean",
2825             filter_path => "list",
2826             human => "boolean"
2827             },
2828             },
2829              
2830             'ilm.remove_policy' => {
2831             doc => "ilm-remove-policy",
2832             method => "POST",
2833             parts => { index => {} },
2834             paths => [ [ { index => 0 }, "{index}", "_ilm", "remove" ] ],
2835             qs => {
2836             error_trace => "boolean",
2837             filter_path => "list",
2838             human => "boolean"
2839             },
2840             },
2841              
2842             'ilm.retry' => {
2843             doc => "ilm-retry-policy",
2844             method => "POST",
2845             parts => { index => {} },
2846             paths => [ [ { index => 0 }, "{index}", "_ilm", "retry" ] ],
2847             qs => {
2848             error_trace => "boolean",
2849             filter_path => "list",
2850             human => "boolean"
2851             },
2852             },
2853              
2854             'ilm.start' => {
2855             doc => "ilm-start",
2856             method => "POST",
2857             parts => {},
2858             paths => [ [ {}, "_ilm", "start" ] ],
2859             qs => {
2860             error_trace => "boolean",
2861             filter_path => "list",
2862             human => "boolean"
2863             },
2864             },
2865              
2866             'ilm.stop' => {
2867             doc => "ilm-stop",
2868             method => "POST",
2869             parts => {},
2870             paths => [ [ {}, "_ilm", "stop" ] ],
2871             qs => {
2872             error_trace => "boolean",
2873             filter_path => "list",
2874             human => "boolean"
2875             },
2876             },
2877              
2878             'indices.add_block' => {
2879             doc => "index-modules-blocks",
2880             method => "PUT",
2881             parts => { block => {}, index => { multi => 1 } },
2882             paths => [
2883             [ { block => 2, index => 0 }, "{index}", "_block", "{block}" ]
2884             ],
2885             qs => {
2886             allow_no_indices => "boolean",
2887             error_trace => "boolean",
2888             expand_wildcards => "enum",
2889             filter_path => "list",
2890             human => "boolean",
2891             ignore_unavailable => "boolean",
2892             master_timeout => "time",
2893             timeout => "time",
2894             },
2895             },
2896              
2897             'indices.analyze' => {
2898             body => {},
2899             doc => "indices-analyze",
2900             parts => { index => {} },
2901             paths =>
2902             [ [ { index => 0 }, "{index}", "_analyze" ], [ {}, "_analyze" ] ],
2903             qs => {
2904             error_trace => "boolean",
2905             filter_path => "list",
2906             human => "boolean"
2907             },
2908             },
2909              
2910             'indices.clear_cache' => {
2911             doc => "indices-clearcache",
2912             method => "POST",
2913             parts => { index => { multi => 1 } },
2914             paths => [
2915             [ { index => 0 }, "{index}", "_cache", "clear" ],
2916             [ {}, "_cache", "clear" ],
2917             ],
2918             qs => {
2919             allow_no_indices => "boolean",
2920             error_trace => "boolean",
2921             expand_wildcards => "enum",
2922             fielddata => "boolean",
2923             fields => "list",
2924             filter_path => "list",
2925             human => "boolean",
2926             ignore_unavailable => "boolean",
2927             query => "boolean",
2928             request => "boolean",
2929             },
2930             },
2931              
2932             'indices.clone' => {
2933             body => {},
2934             doc => "indices-clone-index",
2935             method => "PUT",
2936             parts => { index => {}, target => {} },
2937             paths => [
2938             [ { index => 0, target => 2 }, "{index}", "_clone", "{target}" ],
2939             ],
2940             qs => {
2941             error_trace => "boolean",
2942             filter_path => "list",
2943             human => "boolean",
2944             master_timeout => "time",
2945             timeout => "time",
2946             wait_for_active_shards => "string",
2947             },
2948             },
2949              
2950             'indices.close' => {
2951             doc => "indices-open-close",
2952             method => "POST",
2953             parts => { index => { multi => 1 } },
2954             paths => [ [ { index => 0 }, "{index}", "_close" ] ],
2955             qs => {
2956             allow_no_indices => "boolean",
2957             error_trace => "boolean",
2958             expand_wildcards => "enum",
2959             filter_path => "list",
2960             human => "boolean",
2961             ignore_unavailable => "boolean",
2962             master_timeout => "time",
2963             timeout => "time",
2964             wait_for_active_shards => "string",
2965             },
2966             },
2967              
2968             'indices.create' => {
2969             body => {},
2970             doc => "indices-create-index",
2971             method => "PUT",
2972             parts => { index => {} },
2973             paths => [ [ { index => 0 }, "{index}" ] ],
2974             qs => {
2975             error_trace => "boolean",
2976             filter_path => "list",
2977             human => "boolean",
2978             master_timeout => "time",
2979             timeout => "time",
2980             wait_for_active_shards => "string",
2981             },
2982             },
2983              
2984             'indices.create_data_stream' => {
2985             doc => "data-streams",
2986             method => "PUT",
2987             parts => { name => {} },
2988             paths => [ [ { name => 1 }, "_data_stream", "{name}" ] ],
2989             qs => {
2990             error_trace => "boolean",
2991             filter_path => "list",
2992             human => "boolean"
2993             },
2994             },
2995              
2996             'indices.data_streams_stats' => {
2997             doc => "data-streams",
2998             parts => { name => { multi => 1 } },
2999             paths => [
3000             [ { name => 1 }, "_data_stream", "{name}", "_stats" ],
3001             [ {}, "_data_stream", "_stats" ],
3002             ],
3003             qs => {
3004             error_trace => "boolean",
3005             filter_path => "list",
3006             human => "boolean"
3007             },
3008             },
3009              
3010             'indices.delete' => {
3011             doc => "indices-delete-index",
3012             method => "DELETE",
3013             parts => { index => { multi => 1 } },
3014             paths => [ [ { index => 0 }, "{index}" ] ],
3015             qs => {
3016             allow_no_indices => "boolean",
3017             error_trace => "boolean",
3018             expand_wildcards => "enum",
3019             filter_path => "list",
3020             human => "boolean",
3021             ignore_unavailable => "boolean",
3022             master_timeout => "time",
3023             timeout => "time",
3024             },
3025             },
3026              
3027             'indices.delete_alias' => {
3028             doc => "indices-aliases",
3029             method => "DELETE",
3030             parts => { index => { multi => 1 }, name => { multi => 1 } },
3031             paths =>
3032             [ [ { index => 0, name => 2 }, "{index}", "_alias", "{name}" ] ],
3033             qs => {
3034             error_trace => "boolean",
3035             filter_path => "list",
3036             human => "boolean",
3037             master_timeout => "time",
3038             timeout => "time",
3039             },
3040             },
3041              
3042             'indices.delete_data_lifecycle' => {
3043             doc => "data-streams-delete-lifecycle",
3044             method => "DELETE",
3045             parts => { name => { multi => 1 } },
3046             paths =>
3047             [ [ { name => 1 }, "_data_stream", "{name}", "_lifecycle" ] ],
3048             qs => {
3049             error_trace => "boolean",
3050             expand_wildcards => "enum",
3051             filter_path => "list",
3052             human => "boolean",
3053             master_timeout => "time",
3054             timeout => "time",
3055             },
3056             },
3057              
3058             'indices.delete_data_stream' => {
3059             doc => "data-streams",
3060             method => "DELETE",
3061             parts => { name => { multi => 1 } },
3062             paths => [ [ { name => 1 }, "_data_stream", "{name}" ] ],
3063             qs => {
3064             error_trace => "boolean",
3065             expand_wildcards => "enum",
3066             filter_path => "list",
3067             human => "boolean",
3068             },
3069             },
3070              
3071             'indices.delete_index_template' => {
3072             doc => "indices-delete-template",
3073             method => "DELETE",
3074             parts => { name => {} },
3075             paths => [ [ { name => 1 }, "_index_template", "{name}" ] ],
3076             qs => {
3077             error_trace => "boolean",
3078             filter_path => "list",
3079             human => "boolean",
3080             master_timeout => "time",
3081             timeout => "time",
3082             },
3083             },
3084              
3085             'indices.delete_template' => {
3086             doc => "indices-delete-template-v1",
3087             method => "DELETE",
3088             parts => { name => {} },
3089             paths => [ [ { name => 1 }, "_template", "{name}" ] ],
3090             qs => {
3091             error_trace => "boolean",
3092             filter_path => "list",
3093             human => "boolean",
3094             master_timeout => "time",
3095             timeout => "time",
3096             },
3097             },
3098              
3099             'indices.disk_usage' => {
3100             doc => "indices-disk-usage",
3101             method => "POST",
3102             parts => { index => {} },
3103             paths => [ [ { index => 0 }, "{index}", "_disk_usage" ] ],
3104             qs => {
3105             allow_no_indices => "boolean",
3106             error_trace => "boolean",
3107             expand_wildcards => "enum",
3108             filter_path => "list",
3109             flush => "boolean",
3110             human => "boolean",
3111             ignore_unavailable => "boolean",
3112             run_expensive_tasks => "boolean",
3113             },
3114             },
3115              
3116             'indices.downsample' => {
3117             body => { required => 1 },
3118             doc => "xpack-rollup",
3119             method => "POST",
3120             parts =>
3121             { index => { required => 1 }, target_index => { required => 1 } },
3122             paths => [
3123             [ { index => 0, target_index => 2 }, "{index}",
3124             "_downsample", "{target_index}",
3125             ],
3126             ],
3127             qs => {
3128             error_trace => "boolean",
3129             filter_path => "list",
3130             human => "boolean"
3131             },
3132             },
3133              
3134             'indices.exists' => {
3135             doc => "indices-exists",
3136             method => "HEAD",
3137             parts => { index => { multi => 1 } },
3138             paths => [ [ { index => 0 }, "{index}" ] ],
3139             qs => {
3140             allow_no_indices => "boolean",
3141             error_trace => "boolean",
3142             expand_wildcards => "enum",
3143             filter_path => "list",
3144             flat_settings => "boolean",
3145             human => "boolean",
3146             ignore_unavailable => "boolean",
3147             include_defaults => "boolean",
3148             local => "boolean",
3149             },
3150             },
3151              
3152             'indices.exists_alias' => {
3153             doc => "indices-aliases",
3154             method => "HEAD",
3155             parts => { index => { multi => 1 }, name => { multi => 1 } },
3156             paths => [
3157             [ { index => 0, name => 2 }, "{index}", "_alias", "{name}" ],
3158             [ { name => 1 }, "_alias", "{name}" ],
3159             ],
3160             qs => {
3161             allow_no_indices => "boolean",
3162             error_trace => "boolean",
3163             expand_wildcards => "enum",
3164             filter_path => "list",
3165             human => "boolean",
3166             ignore_unavailable => "boolean",
3167             local => "boolean",
3168             },
3169             },
3170              
3171             'indices.exists_index_template' => {
3172             doc => "index-templates",
3173             method => "HEAD",
3174             parts => { name => {} },
3175             paths => [ [ { name => 1 }, "_index_template", "{name}" ] ],
3176             qs => {
3177             error_trace => "boolean",
3178             filter_path => "list",
3179             flat_settings => "boolean",
3180             human => "boolean",
3181             local => "boolean",
3182             master_timeout => "time",
3183             },
3184             },
3185              
3186             'indices.exists_template' => {
3187             doc => "indices-template-exists-v1",
3188             method => "HEAD",
3189             parts => { name => { multi => 1 } },
3190             paths => [ [ { name => 1 }, "_template", "{name}" ] ],
3191             qs => {
3192             error_trace => "boolean",
3193             filter_path => "list",
3194             flat_settings => "boolean",
3195             human => "boolean",
3196             local => "boolean",
3197             master_timeout => "time",
3198             },
3199             },
3200              
3201             'indices.explain_data_lifecycle' => {
3202             doc => "data-streams-explain-lifecycle",
3203             parts => { index => {} },
3204             paths => [ [ { index => 0 }, "{index}", "_lifecycle", "explain" ] ],
3205             qs => {
3206             error_trace => "boolean",
3207             filter_path => "list",
3208             human => "boolean",
3209             include_defaults => "boolean",
3210             master_timeout => "time",
3211             },
3212             },
3213              
3214             'indices.field_usage_stats' => {
3215             doc => "field-usage-stats",
3216             parts => { index => {} },
3217             paths => [ [ { index => 0 }, "{index}", "_field_usage_stats" ] ],
3218             qs => {
3219             allow_no_indices => "boolean",
3220             error_trace => "boolean",
3221             expand_wildcards => "enum",
3222             fields => "list",
3223             filter_path => "list",
3224             human => "boolean",
3225             ignore_unavailable => "boolean",
3226             },
3227             },
3228              
3229             'indices.flush' => {
3230             doc => "indices-flush",
3231             method => "POST",
3232             parts => { index => { multi => 1 } },
3233             paths =>
3234             [ [ { index => 0 }, "{index}", "_flush" ], [ {}, "_flush" ] ],
3235             qs => {
3236             allow_no_indices => "boolean",
3237             error_trace => "boolean",
3238             expand_wildcards => "enum",
3239             filter_path => "list",
3240             force => "boolean",
3241             human => "boolean",
3242             ignore_unavailable => "boolean",
3243             wait_if_ongoing => "boolean",
3244             },
3245             },
3246              
3247             'indices.forcemerge' => {
3248             doc => "indices-forcemerge",
3249             method => "POST",
3250             parts => { index => { multi => 1 } },
3251             paths => [
3252             [ { index => 0 }, "{index}", "_forcemerge" ],
3253             [ {}, "_forcemerge" ],
3254             ],
3255             qs => {
3256             allow_no_indices => "boolean",
3257             error_trace => "boolean",
3258             expand_wildcards => "enum",
3259             filter_path => "list",
3260             flush => "boolean",
3261             human => "boolean",
3262             ignore_unavailable => "boolean",
3263             max_num_segments => "number",
3264             only_expunge_deletes => "boolean",
3265             wait_for_completion => "boolean",
3266             },
3267             },
3268              
3269             'indices.get' => {
3270             doc => "indices-get-index",
3271             parts => { index => { multi => 1 } },
3272             paths => [ [ { index => 0 }, "{index}" ] ],
3273             qs => {
3274             allow_no_indices => "boolean",
3275             error_trace => "boolean",
3276             expand_wildcards => "enum",
3277             features => "enum",
3278             filter_path => "list",
3279             flat_settings => "boolean",
3280             human => "boolean",
3281             ignore_unavailable => "boolean",
3282             include_defaults => "boolean",
3283             local => "boolean",
3284             master_timeout => "time",
3285             },
3286             },
3287              
3288             'indices.get_alias' => {
3289             doc => "indices-aliases",
3290             parts => { index => { multi => 1 }, name => { multi => 1 } },
3291             paths => [
3292             [ { index => 0, name => 2 }, "{index}", "_alias", "{name}" ],
3293             [ { index => 0 }, "{index}", "_alias" ],
3294             [ { name => 1 }, "_alias", "{name}" ],
3295             [ {}, "_alias" ],
3296             ],
3297             qs => {
3298             allow_no_indices => "boolean",
3299             error_trace => "boolean",
3300             expand_wildcards => "enum",
3301             filter_path => "list",
3302             human => "boolean",
3303             ignore_unavailable => "boolean",
3304             local => "boolean",
3305             },
3306             },
3307              
3308             'indices.get_data_lifecycle' => {
3309             doc => "data-streams-get-lifecycle",
3310             parts => { name => { multi => 1 } },
3311             paths =>
3312             [ [ { name => 1 }, "_data_stream", "{name}", "_lifecycle" ] ],
3313             qs => {
3314             error_trace => "boolean",
3315             expand_wildcards => "enum",
3316             filter_path => "list",
3317             human => "boolean",
3318             include_defaults => "boolean",
3319             },
3320             },
3321              
3322             'indices.get_data_stream' => {
3323             doc => "data-streams",
3324             parts => { name => { multi => 1 } },
3325             paths => [
3326             [ { name => 1 }, "_data_stream", "{name}" ],
3327             [ {}, "_data_stream" ],
3328             ],
3329             qs => {
3330             error_trace => "boolean",
3331             expand_wildcards => "enum",
3332             filter_path => "list",
3333             human => "boolean",
3334             include_defaults => "boolean",
3335             },
3336             },
3337              
3338             'indices.get_field_mapping' => {
3339             doc => "indices-get-field-mapping",
3340             parts => { fields => { multi => 1 }, index => { multi => 1 } },
3341             paths => [
3342             [ { fields => 3, index => 0 }, "{index}",
3343             "_mapping", "field",
3344             "{fields}",
3345             ],
3346             [ { fields => 2 }, "_mapping", "field", "{fields}" ],
3347             ],
3348             qs => {
3349             allow_no_indices => "boolean",
3350             error_trace => "boolean",
3351             expand_wildcards => "enum",
3352             filter_path => "list",
3353             human => "boolean",
3354             ignore_unavailable => "boolean",
3355             include_defaults => "boolean",
3356             local => "boolean",
3357             },
3358             },
3359              
3360             'indices.get_index_template' => {
3361             doc => "indices-get-template",
3362             parts => { name => {} },
3363             paths => [
3364             [ { name => 1 }, "_index_template", "{name}" ],
3365             [ {}, "_index_template" ],
3366             ],
3367             qs => {
3368             error_trace => "boolean",
3369             filter_path => "list",
3370             flat_settings => "boolean",
3371             human => "boolean",
3372             include_defaults => "boolean",
3373             local => "boolean",
3374             master_timeout => "time",
3375             },
3376             },
3377              
3378             'indices.get_mapping' => {
3379             doc => "indices-get-mapping",
3380             parts => { index => { multi => 1 } },
3381             paths =>
3382             [ [ { index => 0 }, "{index}", "_mapping" ], [ {}, "_mapping" ] ],
3383             qs => {
3384             allow_no_indices => "boolean",
3385             error_trace => "boolean",
3386             expand_wildcards => "enum",
3387             filter_path => "list",
3388             human => "boolean",
3389             ignore_unavailable => "boolean",
3390             local => "boolean",
3391             master_timeout => "time",
3392             },
3393             },
3394              
3395             'indices.get_settings' => {
3396             doc => "indices-get-settings",
3397             parts => { index => { multi => 1 }, name => { multi => 1 } },
3398             paths => [
3399             [ { index => 0, name => 2 }, "{index}", "_settings", "{name}" ],
3400             [ { index => 0 }, "{index}", "_settings" ],
3401             [ { name => 1 }, "_settings", "{name}" ],
3402             [ {}, "_settings" ],
3403             ],
3404             qs => {
3405             allow_no_indices => "boolean",
3406             error_trace => "boolean",
3407             expand_wildcards => "enum",
3408             filter_path => "list",
3409             flat_settings => "boolean",
3410             human => "boolean",
3411             ignore_unavailable => "boolean",
3412             include_defaults => "boolean",
3413             local => "boolean",
3414             master_timeout => "time",
3415             },
3416             },
3417              
3418             'indices.get_template' => {
3419             doc => "indices-get-template-v1",
3420             parts => { name => { multi => 1 } },
3421             paths =>
3422             [ [ { name => 1 }, "_template", "{name}" ], [ {}, "_template" ] ],
3423             qs => {
3424             error_trace => "boolean",
3425             filter_path => "list",
3426             flat_settings => "boolean",
3427             human => "boolean",
3428             local => "boolean",
3429             master_timeout => "time",
3430             },
3431             },
3432              
3433             'indices.migrate_to_data_stream' => {
3434             doc => "data-streams",
3435             method => "POST",
3436             parts => { name => {} },
3437             paths => [ [ { name => 2 }, "_data_stream", "_migrate", "{name}" ] ],
3438             qs => {
3439             error_trace => "boolean",
3440             filter_path => "list",
3441             human => "boolean"
3442             },
3443             },
3444              
3445             'indices.modify_data_stream' => {
3446             body => { required => 1 },
3447             doc => "data-streams",
3448             method => "POST",
3449             parts => {},
3450             paths => [ [ {}, "_data_stream", "_modify" ] ],
3451             qs => {
3452             error_trace => "boolean",
3453             filter_path => "list",
3454             human => "boolean"
3455             },
3456             },
3457              
3458             'indices.open' => {
3459             doc => "indices-open-close",
3460             method => "POST",
3461             parts => { index => { multi => 1 } },
3462             paths => [ [ { index => 0 }, "{index}", "_open" ] ],
3463             qs => {
3464             allow_no_indices => "boolean",
3465             error_trace => "boolean",
3466             expand_wildcards => "enum",
3467             filter_path => "list",
3468             human => "boolean",
3469             ignore_unavailable => "boolean",
3470             master_timeout => "time",
3471             timeout => "time",
3472             wait_for_active_shards => "string",
3473             },
3474             },
3475              
3476             'indices.promote_data_stream' => {
3477             doc => "data-streams",
3478             method => "POST",
3479             parts => { name => {} },
3480             paths => [ [ { name => 2 }, "_data_stream", "_promote", "{name}" ] ],
3481             qs => {
3482             error_trace => "boolean",
3483             filter_path => "list",
3484             human => "boolean"
3485             },
3486             },
3487              
3488             'indices.put_alias' => {
3489             body => {},
3490             doc => "indices-aliases",
3491             method => "PUT",
3492             parts => { index => { multi => 1 }, name => {} },
3493             paths =>
3494             [ [ { index => 0, name => 2 }, "{index}", "_alias", "{name}" ] ],
3495             qs => {
3496             error_trace => "boolean",
3497             filter_path => "list",
3498             human => "boolean",
3499             master_timeout => "time",
3500             timeout => "time",
3501             },
3502             },
3503              
3504             'indices.put_data_lifecycle' => {
3505             body => {},
3506             doc => "data-streams-put-lifecycle",
3507             method => "PUT",
3508             parts => { name => { multi => 1 } },
3509             paths =>
3510             [ [ { name => 1 }, "_data_stream", "{name}", "_lifecycle" ] ],
3511             qs => {
3512             error_trace => "boolean",
3513             expand_wildcards => "enum",
3514             filter_path => "list",
3515             human => "boolean",
3516             master_timeout => "time",
3517             timeout => "time",
3518             },
3519             },
3520              
3521             'indices.put_index_template' => {
3522             body => { required => 1 },
3523             doc => "indices-put-template",
3524             method => "PUT",
3525             parts => { name => {} },
3526             paths => [ [ { name => 1 }, "_index_template", "{name}" ] ],
3527             qs => {
3528             cause => "string",
3529             create => "boolean",
3530             error_trace => "boolean",
3531             filter_path => "list",
3532             human => "boolean",
3533             master_timeout => "time",
3534             },
3535             },
3536              
3537             'indices.put_mapping' => {
3538             body => { required => 1 },
3539             doc => "indices-put-mapping",
3540             method => "PUT",
3541             parts => { index => { multi => 1 } },
3542             paths => [ [ { index => 0 }, "{index}", "_mapping" ] ],
3543             qs => {
3544             allow_no_indices => "boolean",
3545             error_trace => "boolean",
3546             expand_wildcards => "enum",
3547             filter_path => "list",
3548             human => "boolean",
3549             ignore_unavailable => "boolean",
3550             master_timeout => "time",
3551             timeout => "time",
3552             write_index_only => "boolean",
3553             },
3554             },
3555              
3556             'indices.put_settings' => {
3557             body => { required => 1 },
3558             doc => "indices-update-settings",
3559             method => "PUT",
3560             parts => { index => { multi => 1 } },
3561             paths => [
3562             [ { index => 0 }, "{index}", "_settings" ],
3563             [ {}, "_settings" ]
3564             ],
3565             qs => {
3566             allow_no_indices => "boolean",
3567             error_trace => "boolean",
3568             expand_wildcards => "enum",
3569             filter_path => "list",
3570             flat_settings => "boolean",
3571             human => "boolean",
3572             ignore_unavailable => "boolean",
3573             master_timeout => "time",
3574             preserve_existing => "boolean",
3575             reopen => "boolean",
3576             timeout => "time",
3577             },
3578             },
3579              
3580             'indices.put_template' => {
3581             body => { required => 1 },
3582             doc => "indices-templates-v1",
3583             method => "PUT",
3584             parts => { name => {} },
3585             paths => [ [ { name => 1 }, "_template", "{name}" ] ],
3586             qs => {
3587             create => "boolean",
3588             error_trace => "boolean",
3589             filter_path => "list",
3590             human => "boolean",
3591             master_timeout => "time",
3592             order => "number",
3593             },
3594             },
3595              
3596             'indices.recovery' => {
3597             doc => "indices-recovery",
3598             parts => { index => { multi => 1 } },
3599             paths => [
3600             [ { index => 0 }, "{index}", "_recovery" ],
3601             [ {}, "_recovery" ]
3602             ],
3603             qs => {
3604             active_only => "boolean",
3605             detailed => "boolean",
3606             error_trace => "boolean",
3607             filter_path => "list",
3608             human => "boolean",
3609             },
3610             },
3611              
3612             'indices.refresh' => {
3613             doc => "indices-refresh",
3614             method => "POST",
3615             parts => { index => { multi => 1 } },
3616             paths =>
3617             [ [ { index => 0 }, "{index}", "_refresh" ], [ {}, "_refresh" ] ],
3618             qs => {
3619             allow_no_indices => "boolean",
3620             error_trace => "boolean",
3621             expand_wildcards => "enum",
3622             filter_path => "list",
3623             human => "boolean",
3624             ignore_unavailable => "boolean",
3625             },
3626             },
3627              
3628             'indices.reload_search_analyzers' => {
3629             doc => "indices-reload-analyzers",
3630             parts => { index => { multi => 1 } },
3631             paths =>
3632             [ [ { index => 0 }, "{index}", "_reload_search_analyzers" ] ],
3633             qs => {
3634             allow_no_indices => "boolean",
3635             error_trace => "boolean",
3636             expand_wildcards => "enum",
3637             filter_path => "list",
3638             human => "boolean",
3639             ignore_unavailable => "boolean",
3640             resource => "string",
3641             },
3642             },
3643              
3644             'indices.resolve_index' => {
3645             doc => "indices-resolve-index-api",
3646             parts => { name => { multi => 1 } },
3647             paths => [ [ { name => 2 }, "_resolve", "index", "{name}" ] ],
3648             qs => {
3649             error_trace => "boolean",
3650             expand_wildcards => "enum",
3651             filter_path => "list",
3652             human => "boolean",
3653             },
3654             },
3655              
3656             'indices.rollover' => {
3657             body => {},
3658             doc => "indices-rollover-index",
3659             method => "POST",
3660             parts => { alias => {}, new_index => {} },
3661             paths => [
3662             [ { alias => 0, new_index => 2 }, "{alias}",
3663             "_rollover", "{new_index}",
3664             ],
3665             [ { alias => 0 }, "{alias}", "_rollover" ],
3666             ],
3667             qs => {
3668             dry_run => "boolean",
3669             error_trace => "boolean",
3670             filter_path => "list",
3671             human => "boolean",
3672             master_timeout => "time",
3673             timeout => "time",
3674             wait_for_active_shards => "string",
3675             },
3676             },
3677              
3678             'indices.segments' => {
3679             doc => "indices-segments",
3680             parts => { index => { multi => 1 } },
3681             paths => [
3682             [ { index => 0 }, "{index}", "_segments" ],
3683             [ {}, "_segments" ]
3684             ],
3685             qs => {
3686             allow_no_indices => "boolean",
3687             error_trace => "boolean",
3688             expand_wildcards => "enum",
3689             filter_path => "list",
3690             human => "boolean",
3691             ignore_unavailable => "boolean",
3692             verbose => "boolean",
3693             },
3694             },
3695              
3696             'indices.shard_stores' => {
3697             doc => "indices-shards-stores",
3698             parts => { index => { multi => 1 } },
3699             paths => [
3700             [ { index => 0 }, "{index}", "_shard_stores" ],
3701             [ {}, "_shard_stores" ],
3702             ],
3703             qs => {
3704             allow_no_indices => "boolean",
3705             error_trace => "boolean",
3706             expand_wildcards => "enum",
3707             filter_path => "list",
3708             human => "boolean",
3709             ignore_unavailable => "boolean",
3710             status => "list",
3711             },
3712             },
3713              
3714             'indices.shrink' => {
3715             body => {},
3716             doc => "indices-shrink-index",
3717             method => "PUT",
3718             parts => { index => {}, target => {} },
3719             paths => [
3720             [ { index => 0, target => 2 }, "{index}", "_shrink", "{target}" ],
3721             ],
3722             qs => {
3723             error_trace => "boolean",
3724             filter_path => "list",
3725             human => "boolean",
3726             master_timeout => "time",
3727             timeout => "time",
3728             wait_for_active_shards => "string",
3729             },
3730             },
3731              
3732             'indices.simulate_index_template' => {
3733             body => {},
3734             doc => "indices-simulate-index",
3735             method => "POST",
3736             parts => { name => {} },
3737             paths => [
3738             [ { name => 2 }, "_index_template", "_simulate_index", "{name}" ],
3739             ],
3740             qs => {
3741             cause => "string",
3742             create => "boolean",
3743             error_trace => "boolean",
3744             filter_path => "list",
3745             human => "boolean",
3746             include_defaults => "boolean",
3747             master_timeout => "time",
3748             },
3749             },
3750              
3751             'indices.simulate_template' => {
3752             body => {},
3753             doc => "indices-simulate-template",
3754             method => "POST",
3755             parts => { name => {} },
3756             paths => [
3757             [ { name => 2 }, "_index_template", "_simulate", "{name}" ],
3758             [ {}, "_index_template", "_simulate" ],
3759             ],
3760             qs => {
3761             cause => "string",
3762             create => "boolean",
3763             error_trace => "boolean",
3764             filter_path => "list",
3765             human => "boolean",
3766             include_defaults => "boolean",
3767             master_timeout => "time",
3768             },
3769             },
3770              
3771             'indices.split' => {
3772             body => {},
3773             doc => "indices-split-index",
3774             method => "PUT",
3775             parts => { index => {}, target => {} },
3776             paths => [
3777             [ { index => 0, target => 2 }, "{index}", "_split", "{target}" ],
3778             ],
3779             qs => {
3780             error_trace => "boolean",
3781             filter_path => "list",
3782             human => "boolean",
3783             master_timeout => "time",
3784             timeout => "time",
3785             wait_for_active_shards => "string",
3786             },
3787             },
3788              
3789             'indices.stats' => {
3790             doc => "indices-stats",
3791             parts => { index => { multi => 1 }, metric => { multi => 1 } },
3792             paths => [
3793             [ { index => 0, metric => 2 }, "{index}", "_stats", "{metric}" ],
3794             [ { index => 0 }, "{index}", "_stats" ],
3795             [ { metric => 1 }, "_stats", "{metric}" ],
3796             [ {}, "_stats" ],
3797             ],
3798             qs => {
3799             completion_fields => "list",
3800             error_trace => "boolean",
3801             expand_wildcards => "enum",
3802             fielddata_fields => "list",
3803             fields => "list",
3804             filter_path => "list",
3805             forbid_closed_indices => "boolean",
3806             groups => "list",
3807             human => "boolean",
3808             include_segment_file_sizes => "boolean",
3809             include_unloaded_segments => "boolean",
3810             level => "enum",
3811             },
3812             },
3813              
3814             'indices.unfreeze' => {
3815             doc => "unfreeze-index-api",
3816             method => "POST",
3817             parts => { index => {} },
3818             paths => [ [ { index => 0 }, "{index}", "_unfreeze" ] ],
3819             qs => {
3820             allow_no_indices => "boolean",
3821             error_trace => "boolean",
3822             expand_wildcards => "enum",
3823             filter_path => "list",
3824             human => "boolean",
3825             ignore_unavailable => "boolean",
3826             master_timeout => "time",
3827             timeout => "time",
3828             wait_for_active_shards => "string",
3829             },
3830             },
3831              
3832             'indices.update_aliases' => {
3833             body => { required => 1 },
3834             doc => "indices-aliases",
3835             method => "POST",
3836             parts => {},
3837             paths => [ [ {}, "_aliases" ] ],
3838             qs => {
3839             error_trace => "boolean",
3840             filter_path => "list",
3841             human => "boolean",
3842             master_timeout => "time",
3843             timeout => "time",
3844             },
3845             },
3846              
3847             'indices.validate_query' => {
3848             body => {},
3849             doc => "search-validate",
3850             parts => { index => { multi => 1 } },
3851             paths => [
3852             [ { index => 0 }, "{index}", "_validate", "query" ],
3853             [ {}, "_validate", "query" ],
3854             ],
3855             qs => {
3856             all_shards => "boolean",
3857             allow_no_indices => "boolean",
3858             analyze_wildcard => "boolean",
3859             analyzer => "string",
3860             default_operator => "enum",
3861             df => "string",
3862             error_trace => "boolean",
3863             expand_wildcards => "enum",
3864             explain => "boolean",
3865             filter_path => "list",
3866             human => "boolean",
3867             ignore_unavailable => "boolean",
3868             lenient => "boolean",
3869             q => "string",
3870             rewrite => "boolean",
3871             },
3872             },
3873              
3874             'inference.delete_model' => {
3875             doc => "delete-inference-api",
3876             method => "DELETE",
3877             parts => { model_id => {}, task_type => {} },
3878             paths => [
3879             [ { model_id => 2, task_type => 1 }, "_inference",
3880             "{task_type}", "{model_id}",
3881             ],
3882             ],
3883             qs => {
3884             error_trace => "boolean",
3885             filter_path => "list",
3886             human => "boolean"
3887             },
3888             },
3889              
3890             'inference.get_model' => {
3891             doc => "get-inference-api",
3892             parts => { model_id => {}, task_type => {} },
3893             paths => [
3894             [ { model_id => 2, task_type => 1 }, "_inference",
3895             "{task_type}", "{model_id}",
3896             ],
3897             ],
3898             qs => {
3899             error_trace => "boolean",
3900             filter_path => "list",
3901             human => "boolean"
3902             },
3903             },
3904              
3905             'inference.inference' => {
3906             body => {},
3907             doc => "post-inference-api",
3908             method => "POST",
3909             parts => { model_id => {}, task_type => {} },
3910             paths => [
3911             [ { model_id => 2, task_type => 1 }, "_inference",
3912             "{task_type}", "{model_id}",
3913             ],
3914             ],
3915             qs => {
3916             error_trace => "boolean",
3917             filter_path => "list",
3918             human => "boolean"
3919             },
3920             },
3921              
3922             'inference.put_model' => {
3923             body => {},
3924             doc => "put-inference-api",
3925             method => "PUT",
3926             parts => { model_id => {}, task_type => {} },
3927             paths => [
3928             [ { model_id => 2, task_type => 1 }, "_inference",
3929             "{task_type}", "{model_id}",
3930             ],
3931             ],
3932             qs => {
3933             error_trace => "boolean",
3934             filter_path => "list",
3935             human => "boolean"
3936             },
3937             },
3938              
3939             'ingest.delete_pipeline' => {
3940             doc => "delete-pipeline-api",
3941             method => "DELETE",
3942             parts => { id => {} },
3943             paths => [ [ { id => 2 }, "_ingest", "pipeline", "{id}" ] ],
3944             qs => {
3945             error_trace => "boolean",
3946             filter_path => "list",
3947             human => "boolean",
3948             master_timeout => "time",
3949             timeout => "time",
3950             },
3951             },
3952              
3953             'ingest.geo_ip_stats' => {
3954             doc => "geoip-stats-api",
3955             parts => {},
3956             paths => [ [ {}, "_ingest", "geoip", "stats" ] ],
3957             qs => {
3958             error_trace => "boolean",
3959             filter_path => "list",
3960             human => "boolean"
3961             },
3962             },
3963              
3964             'ingest.get_pipeline' => {
3965             doc => "get-pipeline-api",
3966             parts => { id => {} },
3967             paths => [
3968             [ { id => 2 }, "_ingest", "pipeline", "{id}" ],
3969             [ {}, "_ingest", "pipeline" ],
3970             ],
3971             qs => {
3972             error_trace => "boolean",
3973             filter_path => "list",
3974             human => "boolean",
3975             master_timeout => "time",
3976             summary => "boolean",
3977             },
3978             },
3979              
3980             'ingest.processor_grok' => {
3981             doc => "",
3982             parts => {},
3983             paths => [ [ {}, "_ingest", "processor", "grok" ] ],
3984             qs => {
3985             error_trace => "boolean",
3986             filter_path => "list",
3987             human => "boolean"
3988             },
3989             },
3990              
3991             'ingest.put_pipeline' => {
3992             body => { required => 1 },
3993             doc => "put-pipeline-api",
3994             method => "PUT",
3995             parts => { id => {} },
3996             paths => [ [ { id => 2 }, "_ingest", "pipeline", "{id}" ] ],
3997             qs => {
3998             error_trace => "boolean",
3999             filter_path => "list",
4000             human => "boolean",
4001             if_version => "int",
4002             master_timeout => "time",
4003             timeout => "time",
4004             },
4005             },
4006              
4007             'ingest.simulate' => {
4008             body => { required => 1 },
4009             doc => "simulate-pipeline-api",
4010             parts => { id => {} },
4011             paths => [
4012             [ { id => 2 }, "_ingest", "pipeline", "{id}", "_simulate" ],
4013             [ {}, "_ingest", "pipeline", "_simulate" ],
4014             ],
4015             qs => {
4016             error_trace => "boolean",
4017             filter_path => "list",
4018             human => "boolean",
4019             verbose => "boolean",
4020             },
4021             },
4022              
4023             'license.delete' => {
4024             doc => "delete-license",
4025             method => "DELETE",
4026             parts => {},
4027             paths => [ [ {}, "_license" ] ],
4028             qs => {
4029             error_trace => "boolean",
4030             filter_path => "list",
4031             human => "boolean"
4032             },
4033             },
4034              
4035             'license.get' => {
4036             doc => "get-license",
4037             parts => {},
4038             paths => [ [ {}, "_license" ] ],
4039             qs => {
4040             accept_enterprise => "boolean",
4041             error_trace => "boolean",
4042             filter_path => "list",
4043             human => "boolean",
4044             local => "boolean",
4045             },
4046             },
4047              
4048             'license.get_basic_status' => {
4049             doc => "get-basic-status",
4050             parts => {},
4051             paths => [ [ {}, "_license", "basic_status" ] ],
4052             qs => {
4053             error_trace => "boolean",
4054             filter_path => "list",
4055             human => "boolean"
4056             },
4057             },
4058              
4059             'license.get_trial_status' => {
4060             doc => "get-trial-status",
4061             parts => {},
4062             paths => [ [ {}, "_license", "trial_status" ] ],
4063             qs => {
4064             error_trace => "boolean",
4065             filter_path => "list",
4066             human => "boolean"
4067             },
4068             },
4069              
4070             'license.post' => {
4071             body => {},
4072             doc => "update-license",
4073             method => "PUT",
4074             parts => {},
4075             paths => [ [ {}, "_license" ] ],
4076             qs => {
4077             acknowledge => "boolean",
4078             error_trace => "boolean",
4079             filter_path => "list",
4080             human => "boolean",
4081             },
4082             },
4083              
4084             'license.post_start_basic' => {
4085             doc => "start-basic",
4086             method => "POST",
4087             parts => {},
4088             paths => [ [ {}, "_license", "start_basic" ] ],
4089             qs => {
4090             acknowledge => "boolean",
4091             error_trace => "boolean",
4092             filter_path => "list",
4093             human => "boolean",
4094             },
4095             },
4096              
4097             'license.post_start_trial' => {
4098             doc => "start-trial",
4099             method => "POST",
4100             parts => {},
4101             paths => [ [ {}, "_license", "start_trial" ] ],
4102             qs => {
4103             acknowledge => "boolean",
4104             error_trace => "boolean",
4105             filter_path => "list",
4106             human => "boolean",
4107             type => "string",
4108             },
4109             },
4110              
4111             'logstash.delete_pipeline' => {
4112             doc => "logstash-api-delete-pipeline",
4113             method => "DELETE",
4114             parts => { id => {} },
4115             paths => [ [ { id => 2 }, "_logstash", "pipeline", "{id}" ] ],
4116             qs => {
4117             error_trace => "boolean",
4118             filter_path => "list",
4119             human => "boolean"
4120             },
4121             },
4122              
4123             'logstash.get_pipeline' => {
4124             doc => "logstash-api-get-pipeline",
4125             parts => { id => {} },
4126             paths => [
4127             [ { id => 2 }, "_logstash", "pipeline", "{id}" ],
4128             [ {}, "_logstash", "pipeline" ],
4129             ],
4130             qs => {
4131             error_trace => "boolean",
4132             filter_path => "list",
4133             human => "boolean"
4134             },
4135             },
4136              
4137             'logstash.put_pipeline' => {
4138             body => { required => 1 },
4139             doc => "logstash-api-put-pipeline",
4140             method => "PUT",
4141             parts => { id => {} },
4142             paths => [ [ { id => 2 }, "_logstash", "pipeline", "{id}" ] ],
4143             qs => {
4144             error_trace => "boolean",
4145             filter_path => "list",
4146             human => "boolean"
4147             },
4148             },
4149              
4150             'migration.deprecations' => {
4151             doc => "migration-api-deprecation",
4152             parts => { index => {} },
4153             paths => [
4154             [ { index => 0 }, "{index}", "_migration", "deprecations" ],
4155             [ {}, "_migration", "deprecations" ],
4156             ],
4157             qs => {
4158             error_trace => "boolean",
4159             filter_path => "list",
4160             human => "boolean"
4161             },
4162             },
4163              
4164             'migration.get_feature_upgrade_status' => {
4165             doc => "migration-api-feature-upgrade",
4166             parts => {},
4167             paths => [ [ {}, "_migration", "system_features" ] ],
4168             qs => {
4169             error_trace => "boolean",
4170             filter_path => "list",
4171             human => "boolean"
4172             },
4173             },
4174              
4175             'migration.post_feature_upgrade' => {
4176             doc => "migration-api-feature-upgrade",
4177             method => "POST",
4178             parts => {},
4179             paths => [ [ {}, "_migration", "system_features" ] ],
4180             qs => {
4181             error_trace => "boolean",
4182             filter_path => "list",
4183             human => "boolean"
4184             },
4185             },
4186              
4187             'ml.clear_trained_model_deployment_cache' => {
4188             doc => "clear-trained-model-deployment-cache",
4189             method => "POST",
4190             parts => { model_id => { required => 1 } },
4191             paths => [
4192             [ { model_id => 2 }, "_ml",
4193             "trained_models", "{model_id}",
4194             "deployment", "cache",
4195             "_clear",
4196             ],
4197             ],
4198             qs => {
4199             error_trace => "boolean",
4200             filter_path => "list",
4201             human => "boolean"
4202             },
4203             },
4204              
4205             'ml.close_job' => {
4206             body => {},
4207             doc => "ml-close-job",
4208             method => "POST",
4209             parts => { job_id => {} },
4210             paths => [
4211             [ { job_id => 2 }, "_ml",
4212             "anomaly_detectors", "{job_id}",
4213             "_close",
4214             ],
4215             ],
4216             qs => {
4217             allow_no_match => "boolean",
4218             error_trace => "boolean",
4219             filter_path => "list",
4220             force => "boolean",
4221             human => "boolean",
4222             timeout => "time",
4223             },
4224             },
4225              
4226             'ml.delete_calendar' => {
4227             doc => "ml-delete-calendar",
4228             method => "DELETE",
4229             parts => { calendar_id => {} },
4230             paths =>
4231             [ [ { calendar_id => 2 }, "_ml", "calendars", "{calendar_id}" ] ],
4232             qs => {
4233             error_trace => "boolean",
4234             filter_path => "list",
4235             human => "boolean"
4236             },
4237             },
4238              
4239             'ml.delete_calendar_event' => {
4240             doc => "ml-delete-calendar-event",
4241             method => "DELETE",
4242             parts => { calendar_id => {}, event_id => {} },
4243             paths => [
4244             [ { calendar_id => 2, event_id => 4 }, "_ml",
4245             "calendars", "{calendar_id}",
4246             "events", "{event_id}",
4247             ],
4248             ],
4249             qs => {
4250             error_trace => "boolean",
4251             filter_path => "list",
4252             human => "boolean"
4253             },
4254             },
4255              
4256             'ml.delete_calendar_job' => {
4257             doc => "ml-delete-calendar-job",
4258             method => "DELETE",
4259             parts => { calendar_id => {}, job_id => {} },
4260             paths => [
4261             [ { calendar_id => 2, job_id => 4 },
4262             "_ml", "calendars", "{calendar_id}", "jobs", "{job_id}",
4263             ],
4264             ],
4265             qs => {
4266             error_trace => "boolean",
4267             filter_path => "list",
4268             human => "boolean"
4269             },
4270             },
4271              
4272             'ml.delete_data_frame_analytics' => {
4273             doc => "delete-dfanalytics",
4274             method => "DELETE",
4275             parts => { id => {} },
4276             paths =>
4277             [ [ { id => 3 }, "_ml", "data_frame", "analytics", "{id}" ] ],
4278             qs => {
4279             error_trace => "boolean",
4280             filter_path => "list",
4281             force => "boolean",
4282             human => "boolean",
4283             timeout => "time",
4284             },
4285             },
4286              
4287             'ml.delete_datafeed' => {
4288             doc => "ml-delete-datafeed",
4289             method => "DELETE",
4290             parts => { datafeed_id => {} },
4291             paths =>
4292             [ [ { datafeed_id => 2 }, "_ml", "datafeeds", "{datafeed_id}" ] ],
4293             qs => {
4294             error_trace => "boolean",
4295             filter_path => "list",
4296             force => "boolean",
4297             human => "boolean",
4298             },
4299             },
4300              
4301             'ml.delete_expired_data' => {
4302             body => {},
4303             doc => "ml-delete-expired-data",
4304             method => "DELETE",
4305             parts => { job_id => {} },
4306             paths => [
4307             [ { job_id => 2 }, "_ml", "_delete_expired_data", "{job_id}" ],
4308             [ {}, "_ml", "_delete_expired_data" ],
4309             ],
4310             qs => {
4311             error_trace => "boolean",
4312             filter_path => "list",
4313             human => "boolean",
4314             requests_per_second => "number",
4315             timeout => "time",
4316             },
4317             },
4318              
4319             'ml.delete_filter' => {
4320             doc => "ml-delete-filter",
4321             method => "DELETE",
4322             parts => { filter_id => {} },
4323             paths => [ [ { filter_id => 2 }, "_ml", "filters", "{filter_id}" ] ],
4324             qs => {
4325             error_trace => "boolean",
4326             filter_path => "list",
4327             human => "boolean"
4328             },
4329             },
4330              
4331             'ml.delete_forecast' => {
4332             doc => "ml-delete-forecast",
4333             method => "DELETE",
4334             parts => { forecast_id => {}, job_id => {} },
4335             paths => [
4336             [ { forecast_id => 4, job_id => 2 }, "_ml",
4337             "anomaly_detectors", "{job_id}",
4338             "_forecast", "{forecast_id}",
4339             ],
4340             [ { job_id => 2 }, "_ml",
4341             "anomaly_detectors", "{job_id}",
4342             "_forecast",
4343             ],
4344             ],
4345             qs => {
4346             allow_no_forecasts => "boolean",
4347             error_trace => "boolean",
4348             filter_path => "list",
4349             human => "boolean",
4350             timeout => "time",
4351             },
4352             },
4353              
4354             'ml.delete_job' => {
4355             doc => "ml-delete-job",
4356             method => "DELETE",
4357             parts => { job_id => {} },
4358             paths =>
4359             [ [ { job_id => 2 }, "_ml", "anomaly_detectors", "{job_id}" ] ],
4360             qs => {
4361             delete_user_annotations => "boolean",
4362             error_trace => "boolean",
4363             filter_path => "list",
4364             force => "boolean",
4365             human => "boolean",
4366             wait_for_completion => "boolean",
4367             },
4368             },
4369              
4370             'ml.delete_model_snapshot' => {
4371             doc => "ml-delete-snapshot",
4372             method => "DELETE",
4373             parts => { job_id => {}, snapshot_id => {} },
4374             paths => [
4375             [ { job_id => 2, snapshot_id => 4 }, "_ml",
4376             "anomaly_detectors", "{job_id}",
4377             "model_snapshots", "{snapshot_id}",
4378             ],
4379             ],
4380             qs => {
4381             error_trace => "boolean",
4382             filter_path => "list",
4383             human => "boolean"
4384             },
4385             },
4386              
4387             'ml.delete_trained_model' => {
4388             doc => "delete-trained-models",
4389             method => "DELETE",
4390             parts => { model_id => {} },
4391             paths =>
4392             [ [ { model_id => 2 }, "_ml", "trained_models", "{model_id}" ] ],
4393             qs => {
4394             error_trace => "boolean",
4395             filter_path => "list",
4396             force => "boolean",
4397             human => "boolean",
4398             timeout => "time",
4399             },
4400             },
4401              
4402             'ml.delete_trained_model_alias' => {
4403             doc => "delete-trained-models-aliases",
4404             method => "DELETE",
4405             parts => { model_alias => {}, model_id => {} },
4406             paths => [
4407             [ { model_alias => 4, model_id => 2 }, "_ml",
4408             "trained_models", "{model_id}",
4409             "model_aliases", "{model_alias}",
4410             ],
4411             ],
4412             qs => {
4413             error_trace => "boolean",
4414             filter_path => "list",
4415             human => "boolean"
4416             },
4417             },
4418              
4419             'ml.estimate_model_memory' => {
4420             body => { required => 1 },
4421             doc => "ml-apis",
4422             method => "POST",
4423             parts => {},
4424             paths =>
4425             [ [ {}, "_ml", "anomaly_detectors", "_estimate_model_memory" ] ],
4426             qs => {
4427             error_trace => "boolean",
4428             filter_path => "list",
4429             human => "boolean"
4430             },
4431             },
4432              
4433             'ml.evaluate_data_frame' => {
4434             body => { required => 1 },
4435             doc => "evaluate-dfanalytics",
4436             method => "POST",
4437             parts => {},
4438             paths => [ [ {}, "_ml", "data_frame", "_evaluate" ] ],
4439             qs => {
4440             error_trace => "boolean",
4441             filter_path => "list",
4442             human => "boolean"
4443             },
4444             },
4445              
4446             'ml.explain_data_frame_analytics' => {
4447             body => {},
4448             doc => "explain-dfanalytics",
4449             parts => { id => {} },
4450             paths => [
4451             [ { id => 3 }, "_ml", "data_frame", "analytics",
4452             "{id}", "_explain"
4453             ],
4454             [ {}, "_ml", "data_frame", "analytics", "_explain" ],
4455             ],
4456             qs => {
4457             error_trace => "boolean",
4458             filter_path => "list",
4459             human => "boolean"
4460             },
4461             },
4462              
4463             'ml.flush_job' => {
4464             body => {},
4465             doc => "ml-flush-job",
4466             method => "POST",
4467             parts => { job_id => {} },
4468             paths => [
4469             [ { job_id => 2 }, "_ml",
4470             "anomaly_detectors", "{job_id}",
4471             "_flush",
4472             ],
4473             ],
4474             qs => {
4475             advance_time => "string",
4476             calc_interim => "boolean",
4477             end => "string",
4478             error_trace => "boolean",
4479             filter_path => "list",
4480             human => "boolean",
4481             skip_time => "string",
4482             start => "string",
4483             },
4484             },
4485              
4486             'ml.forecast' => {
4487             body => {},
4488             doc => "ml-forecast",
4489             method => "POST",
4490             parts => { job_id => {} },
4491             paths => [
4492             [ { job_id => 2 }, "_ml",
4493             "anomaly_detectors", "{job_id}",
4494             "_forecast",
4495             ],
4496             ],
4497             qs => {
4498             duration => "time",
4499             error_trace => "boolean",
4500             expires_in => "time",
4501             filter_path => "list",
4502             human => "boolean",
4503             max_model_memory => "string",
4504             },
4505             },
4506              
4507             'ml.get_buckets' => {
4508             body => {},
4509             doc => "ml-get-bucket",
4510             parts => { job_id => {}, timestamp => {} },
4511             paths => [
4512             [ { job_id => 2, timestamp => 5 }, "_ml",
4513             "anomaly_detectors", "{job_id}",
4514             "results", "buckets",
4515             "{timestamp}",
4516             ],
4517             [ { job_id => 2 }, "_ml",
4518             "anomaly_detectors", "{job_id}",
4519             "results", "buckets",
4520             ],
4521             ],
4522             qs => {
4523             anomaly_score => "double",
4524             desc => "boolean",
4525             end => "string",
4526             error_trace => "boolean",
4527             exclude_interim => "boolean",
4528             expand => "boolean",
4529             filter_path => "list",
4530             from => "int",
4531             human => "boolean",
4532             size => "int",
4533             sort => "string",
4534             start => "string",
4535             },
4536             },
4537              
4538             'ml.get_calendar_events' => {
4539             doc => "ml-get-calendar-event",
4540             parts => { calendar_id => {} },
4541             paths => [
4542             [ { calendar_id => 2 }, "_ml",
4543             "calendars", "{calendar_id}",
4544             "events",
4545             ],
4546             ],
4547             qs => {
4548             end => "time",
4549             error_trace => "boolean",
4550             filter_path => "list",
4551             from => "int",
4552             human => "boolean",
4553             job_id => "string",
4554             size => "int",
4555             start => "string",
4556             },
4557             },
4558              
4559             'ml.get_calendars' => {
4560             body => {},
4561             doc => "ml-get-calendar",
4562             parts => { calendar_id => {} },
4563             paths => [
4564             [ { calendar_id => 2 }, "_ml", "calendars", "{calendar_id}" ],
4565             [ {}, "_ml", "calendars" ],
4566             ],
4567             qs => {
4568             error_trace => "boolean",
4569             filter_path => "list",
4570             from => "int",
4571             human => "boolean",
4572             size => "int",
4573             },
4574             },
4575              
4576             'ml.get_categories' => {
4577             body => {},
4578             doc => "ml-get-category",
4579             parts => { category_id => {}, job_id => {} },
4580             paths => [
4581             [ { category_id => 5, job_id => 2 }, "_ml",
4582             "anomaly_detectors", "{job_id}",
4583             "results", "categories",
4584             "{category_id}",
4585             ],
4586             [ { job_id => 2 }, "_ml",
4587             "anomaly_detectors", "{job_id}",
4588             "results", "categories",
4589             ],
4590             ],
4591             qs => {
4592             error_trace => "boolean",
4593             filter_path => "list",
4594             from => "int",
4595             human => "boolean",
4596             partition_field_value => "string",
4597             size => "int",
4598             },
4599             },
4600              
4601             'ml.get_data_frame_analytics' => {
4602             doc => "get-dfanalytics",
4603             parts => { id => {} },
4604             paths => [
4605             [ { id => 3 }, "_ml", "data_frame", "analytics", "{id}" ],
4606             [ {}, "_ml", "data_frame", "analytics" ],
4607             ],
4608             qs => {
4609             allow_no_match => "boolean",
4610             error_trace => "boolean",
4611             exclude_generated => "boolean",
4612             filter_path => "list",
4613             from => "int",
4614             human => "boolean",
4615             size => "int",
4616             },
4617             },
4618              
4619             'ml.get_data_frame_analytics_stats' => {
4620             doc => "get-dfanalytics-stats",
4621             parts => { id => {} },
4622             paths => [
4623             [ { id => 3 }, "_ml", "data_frame", "analytics",
4624             "{id}", "_stats"
4625             ],
4626             [ {}, "_ml", "data_frame", "analytics", "_stats" ],
4627             ],
4628             qs => {
4629             allow_no_match => "boolean",
4630             error_trace => "boolean",
4631             filter_path => "list",
4632             from => "int",
4633             human => "boolean",
4634             size => "int",
4635             verbose => "boolean",
4636             },
4637             },
4638              
4639             'ml.get_datafeed_stats' => {
4640             doc => "ml-get-datafeed-stats",
4641             parts => { datafeed_id => {} },
4642             paths => [
4643             [ { datafeed_id => 2 }, "_ml",
4644             "datafeeds", "{datafeed_id}",
4645             "_stats",
4646             ],
4647             [ {}, "_ml", "datafeeds", "_stats" ],
4648             ],
4649             qs => {
4650             allow_no_match => "boolean",
4651             error_trace => "boolean",
4652             filter_path => "list",
4653             human => "boolean",
4654             },
4655             },
4656              
4657             'ml.get_datafeeds' => {
4658             doc => "ml-get-datafeed",
4659             parts => { datafeed_id => {} },
4660             paths => [
4661             [ { datafeed_id => 2 }, "_ml", "datafeeds", "{datafeed_id}" ],
4662             [ {}, "_ml", "datafeeds" ],
4663             ],
4664             qs => {
4665             allow_no_match => "boolean",
4666             error_trace => "boolean",
4667             exclude_generated => "boolean",
4668             filter_path => "list",
4669             human => "boolean",
4670             },
4671             },
4672              
4673             'ml.get_filters' => {
4674             doc => "ml-get-filter",
4675             parts => { filter_id => {} },
4676             paths => [
4677             [ { filter_id => 2 }, "_ml", "filters", "{filter_id}" ],
4678             [ {}, "_ml", "filters" ],
4679             ],
4680             qs => {
4681             error_trace => "boolean",
4682             filter_path => "list",
4683             from => "int",
4684             human => "boolean",
4685             size => "int",
4686             },
4687             },
4688              
4689             'ml.get_influencers' => {
4690             body => {},
4691             doc => "ml-get-influencer",
4692             parts => { job_id => {} },
4693             paths => [
4694             [ { job_id => 2 }, "_ml",
4695             "anomaly_detectors", "{job_id}",
4696             "results", "influencers",
4697             ],
4698             ],
4699             qs => {
4700             desc => "boolean",
4701             end => "string",
4702             error_trace => "boolean",
4703             exclude_interim => "boolean",
4704             filter_path => "list",
4705             from => "int",
4706             human => "boolean",
4707             influencer_score => "double",
4708             size => "int",
4709             sort => "string",
4710             start => "string",
4711             },
4712             },
4713              
4714             'ml.get_job_stats' => {
4715             doc => "ml-get-job-stats",
4716             parts => { job_id => {} },
4717             paths => [
4718             [ { job_id => 2 }, "_ml",
4719             "anomaly_detectors", "{job_id}",
4720             "_stats",
4721             ],
4722             [ {}, "_ml", "anomaly_detectors", "_stats" ],
4723             ],
4724             qs => {
4725             allow_no_match => "boolean",
4726             error_trace => "boolean",
4727             filter_path => "list",
4728             human => "boolean",
4729             },
4730             },
4731              
4732             'ml.get_jobs' => {
4733             doc => "ml-get-job",
4734             parts => { job_id => {} },
4735             paths => [
4736             [ { job_id => 2 }, "_ml", "anomaly_detectors", "{job_id}" ],
4737             [ {}, "_ml", "anomaly_detectors" ],
4738             ],
4739             qs => {
4740             allow_no_match => "boolean",
4741             error_trace => "boolean",
4742             exclude_generated => "boolean",
4743             filter_path => "list",
4744             human => "boolean",
4745             },
4746             },
4747              
4748             'ml.get_memory_stats' => {
4749             doc => "get-ml-memory",
4750             parts => { node_id => {} },
4751             paths => [
4752             [ { node_id => 2 }, "_ml", "memory", "{node_id}", "_stats" ],
4753             [ {}, "_ml", "memory", "_stats" ],
4754             ],
4755             qs => {
4756             error_trace => "boolean",
4757             filter_path => "list",
4758             human => "boolean",
4759             master_timeout => "time",
4760             timeout => "time",
4761             },
4762             },
4763              
4764             'ml.get_model_snapshot_upgrade_stats' => {
4765             doc => "ml-get-job-model-snapshot-upgrade-stats",
4766             parts => { job_id => {}, snapshot_id => {} },
4767             paths => [
4768             [ { job_id => 2, snapshot_id => 4 }, "_ml",
4769             "anomaly_detectors", "{job_id}",
4770             "model_snapshots", "{snapshot_id}",
4771             "_upgrade", "_stats",
4772             ],
4773             ],
4774             qs => {
4775             allow_no_match => "boolean",
4776             error_trace => "boolean",
4777             filter_path => "list",
4778             human => "boolean",
4779             },
4780             },
4781              
4782             'ml.get_model_snapshots' => {
4783             body => {},
4784             doc => "ml-get-snapshot",
4785             parts => { job_id => {}, snapshot_id => {} },
4786             paths => [
4787             [ { job_id => 2, snapshot_id => 4 }, "_ml",
4788             "anomaly_detectors", "{job_id}",
4789             "model_snapshots", "{snapshot_id}",
4790             ],
4791             [ { job_id => 2 }, "_ml",
4792             "anomaly_detectors", "{job_id}",
4793             "model_snapshots",
4794             ],
4795             ],
4796             qs => {
4797             desc => "boolean",
4798             end => "time",
4799             error_trace => "boolean",
4800             filter_path => "list",
4801             from => "int",
4802             human => "boolean",
4803             size => "int",
4804             sort => "string",
4805             start => "time",
4806             },
4807             },
4808              
4809             'ml.get_overall_buckets' => {
4810             body => {},
4811             doc => "ml-get-overall-buckets",
4812             parts => { job_id => {} },
4813             paths => [
4814             [ { job_id => 2 }, "_ml",
4815             "anomaly_detectors", "{job_id}",
4816             "results", "overall_buckets",
4817             ],
4818             ],
4819             qs => {
4820             allow_no_match => "boolean",
4821             bucket_span => "string",
4822             end => "string",
4823             error_trace => "boolean",
4824             exclude_interim => "boolean",
4825             filter_path => "list",
4826             human => "boolean",
4827             overall_score => "double",
4828             start => "string",
4829             top_n => "int",
4830             },
4831             },
4832              
4833             'ml.get_records' => {
4834             body => {},
4835             doc => "ml-get-record",
4836             parts => { job_id => {} },
4837             paths => [
4838             [ { job_id => 2 }, "_ml",
4839             "anomaly_detectors", "{job_id}",
4840             "results", "records",
4841             ],
4842             ],
4843             qs => {
4844             desc => "boolean",
4845             end => "string",
4846             error_trace => "boolean",
4847             exclude_interim => "boolean",
4848             filter_path => "list",
4849             from => "int",
4850             human => "boolean",
4851             record_score => "double",
4852             size => "int",
4853             sort => "string",
4854             start => "string",
4855             },
4856             },
4857              
4858             'ml.get_trained_models' => {
4859             doc => "get-trained-models",
4860             parts => { model_id => {} },
4861             paths => [
4862             [ { model_id => 2 }, "_ml", "trained_models", "{model_id}" ],
4863             [ {}, "_ml", "trained_models" ],
4864             ],
4865             qs => {
4866             allow_no_match => "boolean",
4867             decompress_definition => "boolean",
4868             error_trace => "boolean",
4869             exclude_generated => "boolean",
4870             filter_path => "list",
4871             from => "int",
4872             human => "boolean",
4873             include => "string",
4874             include_model_definition => "boolean",
4875             size => "int",
4876             tags => "list",
4877             },
4878             },
4879              
4880             'ml.get_trained_models_stats' => {
4881             doc => "get-trained-models-stats",
4882             parts => { model_id => {} },
4883             paths => [
4884             [ { model_id => 2 }, "_ml",
4885             "trained_models", "{model_id}",
4886             "_stats",
4887             ],
4888             [ {}, "_ml", "trained_models", "_stats" ],
4889             ],
4890             qs => {
4891             allow_no_match => "boolean",
4892             error_trace => "boolean",
4893             filter_path => "list",
4894             from => "int",
4895             human => "boolean",
4896             size => "int",
4897             },
4898             },
4899              
4900             'ml.infer_trained_model' => {
4901             body => { required => 1 },
4902             doc => "infer-trained-model",
4903             method => "POST",
4904             parts => { model_id => { required => 1 } },
4905             paths => [
4906             [ { model_id => 2 }, "_ml",
4907             "trained_models", "{model_id}",
4908             "_infer",
4909             ],
4910             ],
4911             qs => {
4912             error_trace => "boolean",
4913             filter_path => "list",
4914             human => "boolean",
4915             timeout => "time",
4916             },
4917             },
4918              
4919             'ml.info' => {
4920             doc => "get-ml-info",
4921             parts => {},
4922             paths => [ [ {}, "_ml", "info" ] ],
4923             qs => {
4924             error_trace => "boolean",
4925             filter_path => "list",
4926             human => "boolean"
4927             },
4928             },
4929              
4930             'ml.open_job' => {
4931             body => {},
4932             doc => "ml-open-job",
4933             method => "POST",
4934             parts => { job_id => {} },
4935             paths => [
4936             [ { job_id => 2 }, "_ml",
4937             "anomaly_detectors", "{job_id}",
4938             "_open"
4939             ],
4940             ],
4941             qs => {
4942             error_trace => "boolean",
4943             filter_path => "list",
4944             human => "boolean"
4945             },
4946             },
4947              
4948             'ml.post_calendar_events' => {
4949             body => { required => 1 },
4950             doc => "ml-post-calendar-event",
4951             method => "POST",
4952             parts => { calendar_id => {} },
4953             paths => [
4954             [ { calendar_id => 2 }, "_ml",
4955             "calendars", "{calendar_id}",
4956             "events",
4957             ],
4958             ],
4959             qs => {
4960             error_trace => "boolean",
4961             filter_path => "list",
4962             human => "boolean"
4963             },
4964             },
4965              
4966             'ml.post_data' => {
4967             body => { required => 1 },
4968             doc => "ml-post-data",
4969             method => "POST",
4970             parts => { job_id => {} },
4971             paths => [
4972             [ { job_id => 2 }, "_ml",
4973             "anomaly_detectors", "{job_id}",
4974             "_data"
4975             ],
4976             ],
4977             qs => {
4978             error_trace => "boolean",
4979             filter_path => "list",
4980             human => "boolean",
4981             reset_end => "string",
4982             reset_start => "string",
4983             },
4984             serialize => "bulk",
4985             },
4986              
4987             'ml.preview_data_frame_analytics' => {
4988             body => {},
4989             doc => "preview-dfanalytics",
4990             parts => { id => {} },
4991             paths => [
4992             [ { id => 3 }, "_ml", "data_frame", "analytics",
4993             "{id}", "_preview"
4994             ],
4995             [ {}, "_ml", "data_frame", "analytics", "_preview" ],
4996             ],
4997             qs => {
4998             error_trace => "boolean",
4999             filter_path => "list",
5000             human => "boolean"
5001             },
5002             },
5003              
5004             'ml.preview_datafeed' => {
5005             body => {},
5006             doc => "ml-preview-datafeed",
5007             parts => { datafeed_id => {} },
5008             paths => [
5009             [ { datafeed_id => 2 }, "_ml",
5010             "datafeeds", "{datafeed_id}",
5011             "_preview",
5012             ],
5013             [ {}, "_ml", "datafeeds", "_preview" ],
5014             ],
5015             qs => {
5016             end => "string",
5017             error_trace => "boolean",
5018             filter_path => "list",
5019             human => "boolean",
5020             start => "string",
5021             },
5022             },
5023              
5024             'ml.put_calendar' => {
5025             body => {},
5026             doc => "ml-put-calendar",
5027             method => "PUT",
5028             parts => { calendar_id => {} },
5029             paths =>
5030             [ [ { calendar_id => 2 }, "_ml", "calendars", "{calendar_id}" ] ],
5031             qs => {
5032             error_trace => "boolean",
5033             filter_path => "list",
5034             human => "boolean"
5035             },
5036             },
5037              
5038             'ml.put_calendar_job' => {
5039             doc => "ml-put-calendar-job",
5040             method => "PUT",
5041             parts => { calendar_id => {}, job_id => {} },
5042             paths => [
5043             [ { calendar_id => 2, job_id => 4 },
5044             "_ml", "calendars", "{calendar_id}", "jobs", "{job_id}",
5045             ],
5046             ],
5047             qs => {
5048             error_trace => "boolean",
5049             filter_path => "list",
5050             human => "boolean"
5051             },
5052             },
5053              
5054             'ml.put_data_frame_analytics' => {
5055             body => { required => 1 },
5056             doc => "put-dfanalytics",
5057             method => "PUT",
5058             parts => { id => {} },
5059             paths =>
5060             [ [ { id => 3 }, "_ml", "data_frame", "analytics", "{id}" ] ],
5061             qs => {
5062             error_trace => "boolean",
5063             filter_path => "list",
5064             human => "boolean"
5065             },
5066             },
5067              
5068             'ml.put_datafeed' => {
5069             body => { required => 1 },
5070             doc => "ml-put-datafeed",
5071             method => "PUT",
5072             parts => { datafeed_id => {} },
5073             paths =>
5074             [ [ { datafeed_id => 2 }, "_ml", "datafeeds", "{datafeed_id}" ] ],
5075             qs => {
5076             allow_no_indices => "boolean",
5077             error_trace => "boolean",
5078             expand_wildcards => "enum",
5079             filter_path => "list",
5080             human => "boolean",
5081             ignore_throttled => "boolean",
5082             ignore_unavailable => "boolean",
5083             },
5084             },
5085              
5086             'ml.put_filter' => {
5087             body => { required => 1 },
5088             doc => "ml-put-filter",
5089             method => "PUT",
5090             parts => { filter_id => {} },
5091             paths => [ [ { filter_id => 2 }, "_ml", "filters", "{filter_id}" ] ],
5092             qs => {
5093             error_trace => "boolean",
5094             filter_path => "list",
5095             human => "boolean"
5096             },
5097             },
5098              
5099             'ml.put_job' => {
5100             body => { required => 1 },
5101             doc => "ml-put-job",
5102             method => "PUT",
5103             parts => { job_id => {} },
5104             paths =>
5105             [ [ { job_id => 2 }, "_ml", "anomaly_detectors", "{job_id}" ] ],
5106             qs => {
5107             allow_no_indices => "boolean",
5108             error_trace => "boolean",
5109             expand_wildcards => "enum",
5110             filter_path => "list",
5111             human => "boolean",
5112             ignore_throttled => "boolean",
5113             ignore_unavailable => "boolean",
5114             },
5115             },
5116              
5117             'ml.put_trained_model' => {
5118             body => { required => 1 },
5119             doc => "put-trained-models",
5120             method => "PUT",
5121             parts => { model_id => {} },
5122             paths =>
5123             [ [ { model_id => 2 }, "_ml", "trained_models", "{model_id}" ] ],
5124             qs => {
5125             defer_definition_decompression => "boolean",
5126             error_trace => "boolean",
5127             filter_path => "list",
5128             human => "boolean",
5129             wait_for_completion => "boolean",
5130             },
5131             },
5132              
5133             'ml.put_trained_model_alias' => {
5134             doc => "put-trained-models-aliases",
5135             method => "PUT",
5136             parts => { model_alias => {}, model_id => {} },
5137             paths => [
5138             [ { model_alias => 4, model_id => 2 }, "_ml",
5139             "trained_models", "{model_id}",
5140             "model_aliases", "{model_alias}",
5141             ],
5142             ],
5143             qs => {
5144             error_trace => "boolean",
5145             filter_path => "list",
5146             human => "boolean",
5147             reassign => "boolean",
5148             },
5149             },
5150              
5151             'ml.put_trained_model_definition_part' => {
5152             body => { required => 1 },
5153             doc => "put-trained-model-definition-part",
5154             method => "PUT",
5155             parts => { model_id => {}, part => {} },
5156             paths => [
5157             [ { model_id => 2, part => 4 }, "_ml",
5158             "trained_models", "{model_id}",
5159             "definition", "{part}",
5160             ],
5161             ],
5162             qs => {
5163             error_trace => "boolean",
5164             filter_path => "list",
5165             human => "boolean"
5166             },
5167             },
5168              
5169             'ml.put_trained_model_vocabulary' => {
5170             body => { required => 1 },
5171             doc => "put-trained-model-vocabulary",
5172             method => "PUT",
5173             parts => { model_id => {} },
5174             paths => [
5175             [ { model_id => 2 }, "_ml",
5176             "trained_models", "{model_id}",
5177             "vocabulary",
5178             ],
5179             ],
5180             qs => {
5181             error_trace => "boolean",
5182             filter_path => "list",
5183             human => "boolean"
5184             },
5185             },
5186              
5187             'ml.reset_job' => {
5188             doc => "ml-reset-job",
5189             method => "POST",
5190             parts => { job_id => {} },
5191             paths => [
5192             [ { job_id => 2 }, "_ml",
5193             "anomaly_detectors", "{job_id}",
5194             "_reset",
5195             ],
5196             ],
5197             qs => {
5198             delete_user_annotations => "boolean",
5199             error_trace => "boolean",
5200             filter_path => "list",
5201             human => "boolean",
5202             wait_for_completion => "boolean",
5203             },
5204             },
5205              
5206             'ml.revert_model_snapshot' => {
5207             body => {},
5208             doc => "ml-revert-snapshot",
5209             method => "POST",
5210             parts => { job_id => {}, snapshot_id => {} },
5211             paths => [
5212             [ { job_id => 2, snapshot_id => 4 }, "_ml",
5213             "anomaly_detectors", "{job_id}",
5214             "model_snapshots", "{snapshot_id}",
5215             "_revert",
5216             ],
5217             ],
5218             qs => {
5219             delete_intervening_results => "boolean",
5220             error_trace => "boolean",
5221             filter_path => "list",
5222             human => "boolean",
5223             },
5224             },
5225              
5226             'ml.set_upgrade_mode' => {
5227             doc => "ml-set-upgrade-mode",
5228             method => "POST",
5229             parts => {},
5230             paths => [ [ {}, "_ml", "set_upgrade_mode" ] ],
5231             qs => {
5232             enabled => "boolean",
5233             error_trace => "boolean",
5234             filter_path => "list",
5235             human => "boolean",
5236             timeout => "time",
5237             },
5238             },
5239              
5240             'ml.start_data_frame_analytics' => {
5241             body => {},
5242             doc => "start-dfanalytics",
5243             method => "POST",
5244             parts => { id => {} },
5245             paths => [
5246             [ { id => 3 }, "_ml", "data_frame", "analytics",
5247             "{id}", "_start"
5248             ],
5249             ],
5250             qs => {
5251             error_trace => "boolean",
5252             filter_path => "list",
5253             human => "boolean",
5254             timeout => "time",
5255             },
5256             },
5257              
5258             'ml.start_datafeed' => {
5259             body => {},
5260             doc => "ml-start-datafeed",
5261             method => "POST",
5262             parts => { datafeed_id => {} },
5263             paths => [
5264             [ { datafeed_id => 2 }, "_ml",
5265             "datafeeds", "{datafeed_id}",
5266             "_start",
5267             ],
5268             ],
5269             qs => {
5270             end => "string",
5271             error_trace => "boolean",
5272             filter_path => "list",
5273             human => "boolean",
5274             start => "string",
5275             timeout => "time",
5276             },
5277             },
5278              
5279             'ml.start_trained_model_deployment' => {
5280             doc => "start-trained-model-deployment",
5281             method => "POST",
5282             parts => { model_id => { required => 1 } },
5283             paths => [
5284             [ { model_id => 2 }, "_ml",
5285             "trained_models", "{model_id}",
5286             "deployment", "_start",
5287             ],
5288             ],
5289             qs => {
5290             cache_size => "string",
5291             deployment_id => "string",
5292             error_trace => "boolean",
5293             filter_path => "list",
5294             human => "boolean",
5295             number_of_allocations => "int",
5296             priority => "string",
5297             queue_capacity => "int",
5298             threads_per_allocation => "int",
5299             timeout => "time",
5300             wait_for => "string",
5301             },
5302             },
5303              
5304             'ml.stop_data_frame_analytics' => {
5305             body => {},
5306             doc => "stop-dfanalytics",
5307             method => "POST",
5308             parts => { id => {} },
5309             paths => [
5310             [ { id => 3 }, "_ml", "data_frame", "analytics", "{id}",
5311             "_stop"
5312             ],
5313             ],
5314             qs => {
5315             allow_no_match => "boolean",
5316             error_trace => "boolean",
5317             filter_path => "list",
5318             force => "boolean",
5319             human => "boolean",
5320             timeout => "time",
5321             },
5322             },
5323              
5324             'ml.stop_datafeed' => {
5325             body => {},
5326             doc => "ml-stop-datafeed",
5327             method => "POST",
5328             parts => { datafeed_id => {} },
5329             paths => [
5330             [ { datafeed_id => 2 }, "_ml",
5331             "datafeeds", "{datafeed_id}",
5332             "_stop",
5333             ],
5334             ],
5335             qs => {
5336             allow_no_datafeeds => "boolean",
5337             allow_no_match => "boolean",
5338             error_trace => "boolean",
5339             filter_path => "list",
5340             force => "boolean",
5341             human => "boolean",
5342             timeout => "time",
5343             },
5344             },
5345              
5346             'ml.stop_trained_model_deployment' => {
5347             body => {},
5348             doc => "stop-trained-model-deployment",
5349             method => "POST",
5350             parts => { model_id => { required => 1 } },
5351             paths => [
5352             [ { model_id => 2 }, "_ml",
5353             "trained_models", "{model_id}",
5354             "deployment", "_stop",
5355             ],
5356             ],
5357             qs => {
5358             allow_no_match => "boolean",
5359             error_trace => "boolean",
5360             filter_path => "list",
5361             force => "boolean",
5362             human => "boolean",
5363             },
5364             },
5365              
5366             'ml.update_data_frame_analytics' => {
5367             body => { required => 1 },
5368             doc => "update-dfanalytics",
5369             method => "POST",
5370             parts => { id => {} },
5371             paths => [
5372             [ { id => 3 }, "_ml", "data_frame", "analytics",
5373             "{id}", "_update"
5374             ],
5375             ],
5376             qs => {
5377             error_trace => "boolean",
5378             filter_path => "list",
5379             human => "boolean"
5380             },
5381             },
5382              
5383             'ml.update_datafeed' => {
5384             body => { required => 1 },
5385             doc => "ml-update-datafeed",
5386             method => "POST",
5387             parts => { datafeed_id => {} },
5388             paths => [
5389             [ { datafeed_id => 2 }, "_ml",
5390             "datafeeds", "{datafeed_id}",
5391             "_update",
5392             ],
5393             ],
5394             qs => {
5395             allow_no_indices => "boolean",
5396             error_trace => "boolean",
5397             expand_wildcards => "enum",
5398             filter_path => "list",
5399             human => "boolean",
5400             ignore_throttled => "boolean",
5401             ignore_unavailable => "boolean",
5402             },
5403             },
5404              
5405             'ml.update_filter' => {
5406             body => { required => 1 },
5407             doc => "ml-update-filter",
5408             method => "POST",
5409             parts => { filter_id => {} },
5410             paths => [
5411             [ { filter_id => 2 }, "_ml", "filters", "{filter_id}",
5412             "_update"
5413             ],
5414             ],
5415             qs => {
5416             error_trace => "boolean",
5417             filter_path => "list",
5418             human => "boolean"
5419             },
5420             },
5421              
5422             'ml.update_job' => {
5423             body => { required => 1 },
5424             doc => "ml-update-job",
5425             method => "POST",
5426             parts => { job_id => {} },
5427             paths => [
5428             [ { job_id => 2 }, "_ml",
5429             "anomaly_detectors", "{job_id}",
5430             "_update",
5431             ],
5432             ],
5433             qs => {
5434             error_trace => "boolean",
5435             filter_path => "list",
5436             human => "boolean"
5437             },
5438             },
5439              
5440             'ml.update_model_snapshot' => {
5441             body => { required => 1 },
5442             doc => "ml-update-snapshot",
5443             method => "POST",
5444             parts => { job_id => {}, snapshot_id => {} },
5445             paths => [
5446             [ { job_id => 2, snapshot_id => 4 }, "_ml",
5447             "anomaly_detectors", "{job_id}",
5448             "model_snapshots", "{snapshot_id}",
5449             "_update",
5450             ],
5451             ],
5452             qs => {
5453             error_trace => "boolean",
5454             filter_path => "list",
5455             human => "boolean"
5456             },
5457             },
5458              
5459             'ml.update_trained_model_deployment' => {
5460             body => { required => 1 },
5461             doc => "update-trained-model-deployment",
5462             method => "POST",
5463             parts => { model_id => {} },
5464             paths => [
5465             [ { model_id => 2 }, "_ml",
5466             "trained_models", "{model_id}",
5467             "deployment", "_update",
5468             ],
5469             ],
5470             qs => {
5471             error_trace => "boolean",
5472             filter_path => "list",
5473             human => "boolean"
5474             },
5475             },
5476              
5477             'ml.upgrade_job_snapshot' => {
5478             doc => "ml-upgrade-job-model-snapshot",
5479             method => "POST",
5480             parts => { job_id => {}, snapshot_id => {} },
5481             paths => [
5482             [ { job_id => 2, snapshot_id => 4 }, "_ml",
5483             "anomaly_detectors", "{job_id}",
5484             "model_snapshots", "{snapshot_id}",
5485             "_upgrade",
5486             ],
5487             ],
5488             qs => {
5489             error_trace => "boolean",
5490             filter_path => "list",
5491             human => "boolean",
5492             timeout => "time",
5493             wait_for_completion => "boolean",
5494             },
5495             },
5496              
5497             'ml.validate' => {
5498             body => { required => 1 },
5499             doc => "ml-jobs",
5500             method => "POST",
5501             parts => {},
5502             paths => [ [ {}, "_ml", "anomaly_detectors", "_validate" ] ],
5503             qs => {
5504             error_trace => "boolean",
5505             filter_path => "list",
5506             human => "boolean"
5507             },
5508             },
5509              
5510             'ml.validate_detector' => {
5511             body => { required => 1 },
5512             doc => "ml-jobs",
5513             method => "POST",
5514             parts => {},
5515             paths =>
5516             [ [ {}, "_ml", "anomaly_detectors", "_validate", "detector" ] ],
5517             qs => {
5518             error_trace => "boolean",
5519             filter_path => "list",
5520             human => "boolean"
5521             },
5522             },
5523              
5524             'monitoring.bulk' => {
5525             body => { required => 1 },
5526             doc => "monitor-elasticsearch-cluster",
5527             method => "POST",
5528             parts => { type => {} },
5529             paths => [
5530             [ { type => 1 }, "_monitoring", "{type}", "bulk" ],
5531             [ {}, "_monitoring", "bulk" ],
5532             ],
5533             qs => {
5534             error_trace => "boolean",
5535             filter_path => "list",
5536             human => "boolean",
5537             interval => "string",
5538             system_api_version => "string",
5539             system_id => "string",
5540             },
5541             serialize => "bulk",
5542             },
5543              
5544             'nodes.clear_repositories_metering_archive' => {
5545             doc => "clear-repositories-metering-archive-api",
5546             method => "DELETE",
5547             parts => { max_archive_version => {}, node_id => { multi => 1 } },
5548             paths => [
5549             [ { max_archive_version => 3, node_id => 1 },
5550             "_nodes", "{node_id}", "_repositories_metering",
5551             "{max_archive_version}",
5552             ],
5553             ],
5554             qs => {
5555             error_trace => "boolean",
5556             filter_path => "list",
5557             human => "boolean"
5558             },
5559             },
5560              
5561             'nodes.get_repositories_metering_info' => {
5562             doc => "get-repositories-metering-api",
5563             parts => { node_id => { multi => 1 } },
5564             paths => [
5565             [ { node_id => 1 }, "_nodes",
5566             "{node_id}", "_repositories_metering",
5567             ],
5568             ],
5569             qs => {
5570             error_trace => "boolean",
5571             filter_path => "list",
5572             human => "boolean"
5573             },
5574             },
5575              
5576             'nodes.hot_threads' => {
5577             doc => "cluster-nodes-hot-threads",
5578             parts => { node_id => { multi => 1 } },
5579             paths => [
5580             [ { node_id => 1 }, "_nodes", "{node_id}", "hot_threads" ],
5581             [ {}, "_nodes", "hot_threads" ],
5582             ],
5583             qs => {
5584             error_trace => "boolean",
5585             filter_path => "list",
5586             human => "boolean",
5587             ignore_idle_threads => "boolean",
5588             interval => "time",
5589             snapshots => "number",
5590             sort => "enum",
5591             threads => "number",
5592             timeout => "time",
5593             type => "enum",
5594             },
5595             },
5596              
5597             'nodes.info' => {
5598             doc => "cluster-nodes-info",
5599             parts => { metric => { multi => 1 }, node_id => { multi => 1 } },
5600             paths => [
5601             [ { metric => 2, node_id => 1 }, "_nodes",
5602             "{node_id}", "{metric}",
5603             ],
5604             [ { metric => 1 }, "_nodes", "{metric}" ],
5605             [ { node_id => 1 }, "_nodes", "{node_id}" ],
5606             [ {}, "_nodes" ],
5607             ],
5608             qs => {
5609             error_trace => "boolean",
5610             filter_path => "list",
5611             flat_settings => "boolean",
5612             human => "boolean",
5613             timeout => "time",
5614             },
5615             },
5616              
5617             'nodes.reload_secure_settings' => {
5618             body => {},
5619             doc => "",
5620             method => "POST",
5621             parts => { node_id => { multi => 1 } },
5622             paths => [
5623             [ { node_id => 1 }, "_nodes",
5624             "{node_id}", "reload_secure_settings",
5625             ],
5626             [ {}, "_nodes", "reload_secure_settings" ],
5627             ],
5628             qs => {
5629             error_trace => "boolean",
5630             filter_path => "list",
5631             human => "boolean",
5632             timeout => "time",
5633             },
5634             },
5635              
5636             'nodes.stats' => {
5637             doc => "cluster-nodes-stats",
5638             parts => {
5639             index_metric => { multi => 1 },
5640             metric => { multi => 1 },
5641             node_id => { multi => 1 },
5642             },
5643             paths => [
5644             [ { index_metric => 4, metric => 3, node_id => 1 },
5645             "_nodes", "{node_id}", "stats", "{metric}", "{index_metric}",
5646             ],
5647             [ { index_metric => 3, metric => 2 }, "_nodes",
5648             "stats", "{metric}",
5649             "{index_metric}",
5650             ],
5651             [ { metric => 3, node_id => 1 }, "_nodes",
5652             "{node_id}", "stats",
5653             "{metric}",
5654             ],
5655             [ { metric => 2 }, "_nodes", "stats", "{metric}" ],
5656             [ { node_id => 1 }, "_nodes", "{node_id}", "stats" ],
5657             [ {}, "_nodes", "stats" ],
5658             ],
5659             qs => {
5660             completion_fields => "list",
5661             error_trace => "boolean",
5662             fielddata_fields => "list",
5663             fields => "list",
5664             filter_path => "list",
5665             groups => "boolean",
5666             human => "boolean",
5667             include_segment_file_sizes => "boolean",
5668             include_unloaded_segments => "boolean",
5669             level => "enum",
5670             timeout => "time",
5671             types => "list",
5672             },
5673             },
5674              
5675             'nodes.usage' => {
5676             doc => "cluster-nodes-usage",
5677             parts => { metric => { multi => 1 }, node_id => { multi => 1 } },
5678             paths => [
5679             [ { metric => 3, node_id => 1 }, "_nodes",
5680             "{node_id}", "usage",
5681             "{metric}",
5682             ],
5683             [ { metric => 2 }, "_nodes", "usage", "{metric}" ],
5684             [ { node_id => 1 }, "_nodes", "{node_id}", "usage" ],
5685             [ {}, "_nodes", "usage" ],
5686             ],
5687             qs => {
5688             error_trace => "boolean",
5689             filter_path => "list",
5690             human => "boolean",
5691             timeout => "time",
5692             },
5693             },
5694              
5695             'profiling.status' => {
5696             doc => "universal-profiling",
5697             parts => {},
5698             paths => [ [ {}, "_profiling", "status" ] ],
5699             qs => {
5700             error_trace => "boolean",
5701             filter_path => "list",
5702             human => "boolean",
5703             master_timeout => "time",
5704             timeout => "time",
5705             wait_for_resources_created => "boolean",
5706             },
5707             },
5708              
5709             'query_ruleset.delete' => {
5710             doc => "delete-query-ruleset",
5711             method => "DELETE",
5712             parts => { ruleset_id => {} },
5713             paths => [ [ { ruleset_id => 1 }, "_query_rules", "{ruleset_id}" ] ],
5714             qs => {
5715             error_trace => "boolean",
5716             filter_path => "list",
5717             human => "boolean"
5718             },
5719             },
5720              
5721             'query_ruleset.get' => {
5722             doc => "get-query-ruleset",
5723             parts => { ruleset_id => {} },
5724             paths => [ [ { ruleset_id => 1 }, "_query_rules", "{ruleset_id}" ] ],
5725             qs => {
5726             error_trace => "boolean",
5727             filter_path => "list",
5728             human => "boolean"
5729             },
5730             },
5731              
5732             'query_ruleset.list' => {
5733             doc => "list-query-rulesets",
5734             parts => {},
5735             paths => [ [ {}, "_query_rules" ] ],
5736             qs => {
5737             error_trace => "boolean",
5738             filter_path => "list",
5739             from => "int",
5740             human => "boolean",
5741             size => "int",
5742             },
5743             },
5744              
5745             'query_ruleset.put' => {
5746             body => { required => 1 },
5747             doc => "put-query-ruleset",
5748             method => "PUT",
5749             parts => { ruleset_id => {} },
5750             paths => [ [ { ruleset_id => 1 }, "_query_rules", "{ruleset_id}" ] ],
5751             qs => {
5752             error_trace => "boolean",
5753             filter_path => "list",
5754             human => "boolean"
5755             },
5756             },
5757              
5758             'rollup.delete_job' => {
5759             doc => "rollup-delete-job",
5760             method => "DELETE",
5761             parts => { id => {} },
5762             paths => [ [ { id => 2 }, "_rollup", "job", "{id}" ] ],
5763             qs => {
5764             error_trace => "boolean",
5765             filter_path => "list",
5766             human => "boolean"
5767             },
5768             },
5769              
5770             'rollup.get_jobs' => {
5771             doc => "rollup-get-job",
5772             parts => { id => {} },
5773             paths => [
5774             [ { id => 2 }, "_rollup", "job", "{id}" ],
5775             [ {}, "_rollup", "job" ],
5776             ],
5777             qs => {
5778             error_trace => "boolean",
5779             filter_path => "list",
5780             human => "boolean"
5781             },
5782             },
5783              
5784             'rollup.get_rollup_caps' => {
5785             doc => "rollup-get-rollup-caps",
5786             parts => { id => {} },
5787             paths => [
5788             [ { id => 2 }, "_rollup", "data", "{id}" ],
5789             [ {}, "_rollup", "data" ],
5790             ],
5791             qs => {
5792             error_trace => "boolean",
5793             filter_path => "list",
5794             human => "boolean"
5795             },
5796             },
5797              
5798             'rollup.get_rollup_index_caps' => {
5799             doc => "rollup-get-rollup-index-caps",
5800             parts => { index => {} },
5801             paths => [ [ { index => 0 }, "{index}", "_rollup", "data" ] ],
5802             qs => {
5803             error_trace => "boolean",
5804             filter_path => "list",
5805             human => "boolean"
5806             },
5807             },
5808              
5809             'rollup.put_job' => {
5810             body => { required => 1 },
5811             doc => "rollup-put-job",
5812             method => "PUT",
5813             parts => { id => {} },
5814             paths => [ [ { id => 2 }, "_rollup", "job", "{id}" ] ],
5815             qs => {
5816             error_trace => "boolean",
5817             filter_path => "list",
5818             human => "boolean"
5819             },
5820             },
5821              
5822             'rollup.rollup_search' => {
5823             body => { required => 1 },
5824             doc => "rollup-search",
5825             parts => { index => { multi => 1 } },
5826             paths => [ [ { index => 0 }, "{index}", "_rollup_search" ] ],
5827             qs => {
5828             error_trace => "boolean",
5829             filter_path => "list",
5830             human => "boolean",
5831             rest_total_hits_as_int => "boolean",
5832             typed_keys => "boolean",
5833             },
5834             },
5835              
5836             'rollup.start_job' => {
5837             doc => "rollup-start-job",
5838             method => "POST",
5839             parts => { id => {} },
5840             paths => [ [ { id => 2 }, "_rollup", "job", "{id}", "_start" ] ],
5841             qs => {
5842             error_trace => "boolean",
5843             filter_path => "list",
5844             human => "boolean"
5845             },
5846             },
5847              
5848             'rollup.stop_job' => {
5849             doc => "rollup-stop-job",
5850             method => "POST",
5851             parts => { id => {} },
5852             paths => [ [ { id => 2 }, "_rollup", "job", "{id}", "_stop" ] ],
5853             qs => {
5854             error_trace => "boolean",
5855             filter_path => "list",
5856             human => "boolean",
5857             timeout => "time",
5858             wait_for_completion => "boolean",
5859             },
5860             },
5861              
5862             'search_application.delete' => {
5863             doc => "delete-search-application",
5864             method => "DELETE",
5865             parts => { name => {} },
5866             paths => [
5867             [ { name => 2 }, "_application", "search_application", "{name}" ],
5868             ],
5869             qs => {
5870             error_trace => "boolean",
5871             filter_path => "list",
5872             human => "boolean"
5873             },
5874             },
5875              
5876             'search_application.delete_behavioral_analytics' => {
5877             doc => "delete-analytics-collection",
5878             method => "DELETE",
5879             parts => { name => {} },
5880             paths => [ [ { name => 2 }, "_application", "analytics", "{name}" ] ],
5881             qs => {
5882             error_trace => "boolean",
5883             filter_path => "list",
5884             human => "boolean"
5885             },
5886             },
5887              
5888             'search_application.get' => {
5889             doc => "get-search-application",
5890             parts => { name => {} },
5891             paths => [
5892             [ { name => 2 }, "_application", "search_application", "{name}" ],
5893             ],
5894             qs => {
5895             error_trace => "boolean",
5896             filter_path => "list",
5897             human => "boolean"
5898             },
5899             },
5900              
5901             'search_application.get_behavioral_analytics' => {
5902             doc => "list-analytics-collection",
5903             parts => { name => { multi => 1 } },
5904             paths => [
5905             [ { name => 2 }, "_application", "analytics", "{name}" ],
5906             [ {}, "_application", "analytics" ],
5907             ],
5908             qs => {
5909             error_trace => "boolean",
5910             filter_path => "list",
5911             human => "boolean"
5912             },
5913             },
5914              
5915             'search_application.list' => {
5916             doc => "list-search-applications",
5917             parts => {},
5918             paths => [ [ {}, "_application", "search_application" ] ],
5919             qs => {
5920             error_trace => "boolean",
5921             filter_path => "list",
5922             from => "int",
5923             human => "boolean",
5924             q => "string",
5925             size => "int",
5926             },
5927             },
5928              
5929             'search_application.post_behavioral_analytics_event' => {
5930             body => { required => 1 },
5931             doc => "",
5932             method => "POST",
5933             parts => { collection_name => {}, event_type => {} },
5934             paths => [
5935             [ { collection_name => 2, event_type => 4 },
5936             "_application", "analytics", "{collection_name}", "event",
5937             "{event_type}",
5938             ],
5939             ],
5940             qs => {
5941             debug => "boolean",
5942             error_trace => "boolean",
5943             filter_path => "list",
5944             human => "boolean",
5945             },
5946             },
5947              
5948             'search_application.put' => {
5949             body => { required => 1 },
5950             doc => "put-search-application",
5951             method => "PUT",
5952             parts => { name => {} },
5953             paths => [
5954             [ { name => 2 }, "_application", "search_application", "{name}" ],
5955             ],
5956             qs => {
5957             create => "boolean",
5958             error_trace => "boolean",
5959             filter_path => "list",
5960             human => "boolean",
5961             },
5962             },
5963              
5964             'search_application.put_behavioral_analytics' => {
5965             doc => "put-analytics-collection",
5966             method => "PUT",
5967             parts => { name => {} },
5968             paths => [ [ { name => 2 }, "_application", "analytics", "{name}" ] ],
5969             qs => {
5970             error_trace => "boolean",
5971             filter_path => "list",
5972             human => "boolean"
5973             },
5974             },
5975              
5976             'search_application.render_query' => {
5977             body => {},
5978             doc => "search-application-render-query",
5979             method => "POST",
5980             parts => { name => {} },
5981             paths => [
5982             [ { name => 2 }, "_application",
5983             "search_application", "{name}",
5984             "_render_query",
5985             ],
5986             ],
5987             qs => {
5988             error_trace => "boolean",
5989             filter_path => "list",
5990             human => "boolean"
5991             },
5992             },
5993              
5994             'search_application.search' => {
5995             body => {},
5996             doc => "search-application-search",
5997             parts => { name => {} },
5998             paths => [
5999             [ { name => 2 }, "_application",
6000             "search_application", "{name}",
6001             "_search",
6002             ],
6003             ],
6004             qs => {
6005             error_trace => "boolean",
6006             filter_path => "list",
6007             human => "boolean"
6008             },
6009             },
6010              
6011             'searchable_snapshots.cache_stats' => {
6012             doc => "searchable-snapshots-apis",
6013             parts => { node_id => { multi => 1 } },
6014             paths => [
6015             [ { node_id => 1 }, "_searchable_snapshots",
6016             "{node_id}", "cache",
6017             "stats",
6018             ],
6019             [ {}, "_searchable_snapshots", "cache", "stats" ],
6020             ],
6021             qs => {
6022             error_trace => "boolean",
6023             filter_path => "list",
6024             human => "boolean"
6025             },
6026             },
6027              
6028             'searchable_snapshots.clear_cache' => {
6029             doc => "searchable-snapshots-apis",
6030             method => "POST",
6031             parts => { index => { multi => 1 } },
6032             paths => [
6033             [ { index => 0 }, "{index}",
6034             "_searchable_snapshots", "cache",
6035             "clear",
6036             ],
6037             [ {}, "_searchable_snapshots", "cache", "clear" ],
6038             ],
6039             qs => {
6040             allow_no_indices => "boolean",
6041             error_trace => "boolean",
6042             expand_wildcards => "enum",
6043             filter_path => "list",
6044             human => "boolean",
6045             ignore_unavailable => "boolean",
6046             },
6047             },
6048              
6049             'searchable_snapshots.mount' => {
6050             body => { required => 1 },
6051             doc => "searchable-snapshots-api-mount-snapshot",
6052             method => "POST",
6053             parts => { repository => {}, snapshot => {} },
6054             paths => [
6055             [ { repository => 1, snapshot => 2 }, "_snapshot",
6056             "{repository}", "{snapshot}",
6057             "_mount",
6058             ],
6059             ],
6060             qs => {
6061             error_trace => "boolean",
6062             filter_path => "list",
6063             human => "boolean",
6064             master_timeout => "time",
6065             storage => "string",
6066             wait_for_completion => "boolean",
6067             },
6068             },
6069              
6070             'searchable_snapshots.stats' => {
6071             doc => "searchable-snapshots-apis",
6072             parts => { index => { multi => 1 } },
6073             paths => [
6074             [ { index => 0 }, "{index}", "_searchable_snapshots", "stats" ],
6075             [ {}, "_searchable_snapshots", "stats" ],
6076             ],
6077             qs => {
6078             error_trace => "boolean",
6079             filter_path => "list",
6080             human => "boolean",
6081             level => "enum",
6082             },
6083             },
6084              
6085             'security.activate_user_profile' => {
6086             body => { required => 1 },
6087             doc => "security-api-activate-user-profile",
6088             method => "POST",
6089             parts => {},
6090             paths => [ [ {}, "_security", "profile", "_activate" ] ],
6091             qs => {
6092             error_trace => "boolean",
6093             filter_path => "list",
6094             human => "boolean"
6095             },
6096             },
6097              
6098             'security.authenticate' => {
6099             doc => "security-api-authenticate",
6100             parts => {},
6101             paths => [ [ {}, "_security", "_authenticate" ] ],
6102             qs => {
6103             error_trace => "boolean",
6104             filter_path => "list",
6105             human => "boolean"
6106             },
6107             },
6108              
6109             'security.bulk_update_api_keys' => {
6110             body => { required => 1 },
6111             doc => "security-api-bulk-update-api-keys",
6112             method => "POST",
6113             parts => {},
6114             paths => [ [ {}, "_security", "api_key", "_bulk_update" ] ],
6115             qs => {
6116             error_trace => "boolean",
6117             filter_path => "list",
6118             human => "boolean"
6119             },
6120             },
6121              
6122             'security.change_password' => {
6123             body => { required => 1 },
6124             doc => "security-api-change-password",
6125             method => "PUT",
6126             parts => { username => {} },
6127             paths => [
6128             [ { username => 2 }, "_security",
6129             "user", "{username}",
6130             "_password",
6131             ],
6132             [ {}, "_security", "user", "_password" ],
6133             ],
6134             qs => {
6135             error_trace => "boolean",
6136             filter_path => "list",
6137             human => "boolean",
6138             refresh => "enum",
6139             },
6140             },
6141              
6142             'security.clear_api_key_cache' => {
6143             doc => "security-api-clear-api-key-cache",
6144             method => "POST",
6145             parts => { ids => { multi => 1 } },
6146             paths => [
6147             [ { ids => 2 }, "_security", "api_key", "{ids}", "_clear_cache" ],
6148             ],
6149             qs => {
6150             error_trace => "boolean",
6151             filter_path => "list",
6152             human => "boolean"
6153             },
6154             },
6155              
6156             'security.clear_cached_privileges' => {
6157             doc => "security-api-clear-privilege-cache",
6158             method => "POST",
6159             parts => { application => { multi => 1 } },
6160             paths => [
6161             [ { application => 2 }, "_security",
6162             "privilege", "{application}",
6163             "_clear_cache",
6164             ],
6165             ],
6166             qs => {
6167             error_trace => "boolean",
6168             filter_path => "list",
6169             human => "boolean"
6170             },
6171             },
6172              
6173             'security.clear_cached_realms' => {
6174             doc => "security-api-clear-cache",
6175             method => "POST",
6176             parts => { realms => { multi => 1 } },
6177             paths => [
6178             [ { realms => 2 }, "_security", "realm", "{realms}",
6179             "_clear_cache",
6180             ],
6181             ],
6182             qs => {
6183             error_trace => "boolean",
6184             filter_path => "list",
6185             human => "boolean",
6186             usernames => "list",
6187             },
6188             },
6189              
6190             'security.clear_cached_roles' => {
6191             doc => "security-api-clear-role-cache",
6192             method => "POST",
6193             parts => { name => { multi => 1 } },
6194             paths => [
6195             [ { name => 2 }, "_security", "role", "{name}", "_clear_cache" ],
6196             ],
6197             qs => {
6198             error_trace => "boolean",
6199             filter_path => "list",
6200             human => "boolean"
6201             },
6202             },
6203              
6204             'security.clear_cached_service_tokens' => {
6205             doc => "security-api-clear-service-token-caches",
6206             method => "POST",
6207             parts => { name => { multi => 1 }, namespace => {}, service => {} },
6208             paths => [
6209             [ { name => 6, namespace => 2, service => 3 }, "_security",
6210             "service", "{namespace}",
6211             "{service}", "credential",
6212             "token", "{name}",
6213             "_clear_cache",
6214             ],
6215             ],
6216             qs => {
6217             error_trace => "boolean",
6218             filter_path => "list",
6219             human => "boolean"
6220             },
6221             },
6222              
6223             'security.create_api_key' => {
6224             body => { required => 1 },
6225             doc => "security-api-create-api-key",
6226             method => "PUT",
6227             parts => {},
6228             paths => [ [ {}, "_security", "api_key" ] ],
6229             qs => {
6230             error_trace => "boolean",
6231             filter_path => "list",
6232             human => "boolean",
6233             refresh => "enum",
6234             },
6235             },
6236              
6237             'security.create_cross_cluster_api_key' => {
6238             body => { required => 1 },
6239             doc => "security-api-create-cross-cluster-api-key",
6240             method => "POST",
6241             parts => {},
6242             paths => [ [ {}, "_security", "cross_cluster", "api_key" ] ],
6243             qs => {
6244             error_trace => "boolean",
6245             filter_path => "list",
6246             human => "boolean"
6247             },
6248             },
6249              
6250             'security.create_service_token' => {
6251             doc => "security-api-create-service-token",
6252             method => "POST",
6253             parts => { name => {}, namespace => {}, service => {} },
6254             paths => [
6255             [ { name => 6, namespace => 2, service => 3 }, "_security",
6256             "service", "{namespace}",
6257             "{service}", "credential",
6258             "token", "{name}",
6259             ],
6260             [ { namespace => 2, service => 3 }, "_security",
6261             "service", "{namespace}",
6262             "{service}", "credential",
6263             "token",
6264             ],
6265             ],
6266             qs => {
6267             error_trace => "boolean",
6268             filter_path => "list",
6269             human => "boolean",
6270             refresh => "enum",
6271             },
6272             },
6273              
6274             'security.delete_privileges' => {
6275             doc => "security-api-delete-privilege",
6276             method => "DELETE",
6277             parts => { application => {}, name => {} },
6278             paths => [
6279             [ { application => 2, name => 3 }, "_security",
6280             "privilege", "{application}",
6281             "{name}",
6282             ],
6283             ],
6284             qs => {
6285             error_trace => "boolean",
6286             filter_path => "list",
6287             human => "boolean",
6288             refresh => "enum",
6289             },
6290             },
6291              
6292             'security.delete_role' => {
6293             doc => "security-api-delete-role",
6294             method => "DELETE",
6295             parts => { name => {} },
6296             paths => [ [ { name => 2 }, "_security", "role", "{name}" ] ],
6297             qs => {
6298             error_trace => "boolean",
6299             filter_path => "list",
6300             human => "boolean",
6301             refresh => "enum",
6302             },
6303             },
6304              
6305             'security.delete_role_mapping' => {
6306             doc => "security-api-delete-role-mapping",
6307             method => "DELETE",
6308             parts => { name => {} },
6309             paths => [ [ { name => 2 }, "_security", "role_mapping", "{name}" ] ],
6310             qs => {
6311             error_trace => "boolean",
6312             filter_path => "list",
6313             human => "boolean",
6314             refresh => "enum",
6315             },
6316             },
6317              
6318             'security.delete_service_token' => {
6319             doc => "security-api-delete-service-token",
6320             method => "DELETE",
6321             parts => { name => {}, namespace => {}, service => {} },
6322             paths => [
6323             [ { name => 6, namespace => 2, service => 3 }, "_security",
6324             "service", "{namespace}",
6325             "{service}", "credential",
6326             "token", "{name}",
6327             ],
6328             ],
6329             qs => {
6330             error_trace => "boolean",
6331             filter_path => "list",
6332             human => "boolean",
6333             refresh => "enum",
6334             },
6335             },
6336              
6337             'security.delete_user' => {
6338             doc => "security-api-delete-user",
6339             method => "DELETE",
6340             parts => { username => {} },
6341             paths => [ [ { username => 2 }, "_security", "user", "{username}" ] ],
6342             qs => {
6343             error_trace => "boolean",
6344             filter_path => "list",
6345             human => "boolean",
6346             refresh => "enum",
6347             },
6348             },
6349              
6350             'security.disable_user' => {
6351             doc => "security-api-disable-user",
6352             method => "PUT",
6353             parts => { username => {} },
6354             paths => [
6355             [ { username => 2 }, "_security",
6356             "user", "{username}",
6357             "_disable"
6358             ],
6359             ],
6360             qs => {
6361             error_trace => "boolean",
6362             filter_path => "list",
6363             human => "boolean",
6364             refresh => "enum",
6365             },
6366             },
6367              
6368             'security.disable_user_profile' => {
6369             doc => "security-api-disable-user-profile",
6370             method => "PUT",
6371             parts => { uid => {} },
6372             paths =>
6373             [ [ { uid => 2 }, "_security", "profile", "{uid}", "_disable" ] ],
6374             qs => {
6375             error_trace => "boolean",
6376             filter_path => "list",
6377             human => "boolean",
6378             refresh => "enum",
6379             },
6380             },
6381              
6382             'security.enable_user' => {
6383             doc => "security-api-enable-user",
6384             method => "PUT",
6385             parts => { username => {} },
6386             paths => [
6387             [ { username => 2 }, "_security",
6388             "user", "{username}",
6389             "_enable"
6390             ],
6391             ],
6392             qs => {
6393             error_trace => "boolean",
6394             filter_path => "list",
6395             human => "boolean",
6396             refresh => "enum",
6397             },
6398             },
6399              
6400             'security.enable_user_profile' => {
6401             doc => "security-api-enable-user-profile",
6402             method => "PUT",
6403             parts => { uid => {} },
6404             paths =>
6405             [ [ { uid => 2 }, "_security", "profile", "{uid}", "_enable" ] ],
6406             qs => {
6407             error_trace => "boolean",
6408             filter_path => "list",
6409             human => "boolean",
6410             refresh => "enum",
6411             },
6412             },
6413              
6414             'security.enroll_kibana' => {
6415             doc => "security-api-kibana-enrollment",
6416             parts => {},
6417             paths => [ [ {}, "_security", "enroll", "kibana" ] ],
6418             qs => {
6419             error_trace => "boolean",
6420             filter_path => "list",
6421             human => "boolean"
6422             },
6423             },
6424              
6425             'security.enroll_node' => {
6426             doc => "security-api-node-enrollment",
6427             parts => {},
6428             paths => [ [ {}, "_security", "enroll", "node" ] ],
6429             qs => {
6430             error_trace => "boolean",
6431             filter_path => "list",
6432             human => "boolean"
6433             },
6434             },
6435              
6436             'security.get_api_key' => {
6437             doc => "security-api-get-api-key",
6438             parts => {},
6439             paths => [ [ {}, "_security", "api_key" ] ],
6440             qs => {
6441             active_only => "boolean",
6442             error_trace => "boolean",
6443             filter_path => "list",
6444             human => "boolean",
6445             id => "string",
6446             name => "string",
6447             owner => "boolean",
6448             realm_name => "string",
6449             username => "string",
6450             with_limited_by => "boolean",
6451             },
6452             },
6453              
6454             'security.get_builtin_privileges' => {
6455             doc => "security-api-get-builtin-privileges",
6456             parts => {},
6457             paths => [ [ {}, "_security", "privilege", "_builtin" ] ],
6458             qs => {
6459             error_trace => "boolean",
6460             filter_path => "list",
6461             human => "boolean"
6462             },
6463             },
6464              
6465             'security.get_privileges' => {
6466             doc => "security-api-get-privileges",
6467             parts => { application => {}, name => {} },
6468             paths => [
6469             [ { application => 2, name => 3 }, "_security",
6470             "privilege", "{application}",
6471             "{name}",
6472             ],
6473             [ { application => 2 }, "_security",
6474             "privilege", "{application}"
6475             ],
6476             [ {}, "_security", "privilege" ],
6477             ],
6478             qs => {
6479             error_trace => "boolean",
6480             filter_path => "list",
6481             human => "boolean"
6482             },
6483             },
6484              
6485             'security.get_role' => {
6486             doc => "security-api-get-role",
6487             parts => { name => { multi => 1 } },
6488             paths => [
6489             [ { name => 2 }, "_security", "role", "{name}" ],
6490             [ {}, "_security", "role" ],
6491             ],
6492             qs => {
6493             error_trace => "boolean",
6494             filter_path => "list",
6495             human => "boolean"
6496             },
6497             },
6498              
6499             'security.get_role_mapping' => {
6500             doc => "security-api-get-role-mapping",
6501             parts => { name => { multi => 1 } },
6502             paths => [
6503             [ { name => 2 }, "_security", "role_mapping", "{name}" ],
6504             [ {}, "_security", "role_mapping" ],
6505             ],
6506             qs => {
6507             error_trace => "boolean",
6508             filter_path => "list",
6509             human => "boolean"
6510             },
6511             },
6512              
6513             'security.get_service_accounts' => {
6514             doc => "security-api-get-service-accounts",
6515             parts => { namespace => {}, service => {} },
6516             paths => [
6517             [ { namespace => 2, service => 3 }, "_security",
6518             "service", "{namespace}",
6519             "{service}",
6520             ],
6521             [ { namespace => 2 }, "_security", "service", "{namespace}" ],
6522             [ {}, "_security", "service" ],
6523             ],
6524             qs => {
6525             error_trace => "boolean",
6526             filter_path => "list",
6527             human => "boolean"
6528             },
6529             },
6530              
6531             'security.get_service_credentials' => {
6532             doc => "security-api-get-service-credentials",
6533             parts => { namespace => {}, service => {} },
6534             paths => [
6535             [ { namespace => 2, service => 3 }, "_security",
6536             "service", "{namespace}",
6537             "{service}", "credential",
6538             ],
6539             ],
6540             qs => {
6541             error_trace => "boolean",
6542             filter_path => "list",
6543             human => "boolean"
6544             },
6545             },
6546              
6547             'security.get_settings' => {
6548             doc => "security-api-get-settings",
6549             parts => {},
6550             paths => [ [ {}, "_security", "settings" ] ],
6551             qs => {
6552             error_trace => "boolean",
6553             filter_path => "list",
6554             human => "boolean"
6555             },
6556             },
6557              
6558             'security.get_token' => {
6559             body => { required => 1 },
6560             doc => "security-api-get-token",
6561             method => "POST",
6562             parts => {},
6563             paths => [ [ {}, "_security", "oauth2", "token" ] ],
6564             qs => {
6565             error_trace => "boolean",
6566             filter_path => "list",
6567             human => "boolean"
6568             },
6569             },
6570              
6571             'security.get_user' => {
6572             doc => "security-api-get-user",
6573             parts => { username => { multi => 1 } },
6574             paths => [
6575             [ { username => 2 }, "_security", "user", "{username}" ],
6576             [ {}, "_security", "user" ],
6577             ],
6578             qs => {
6579             error_trace => "boolean",
6580             filter_path => "list",
6581             human => "boolean",
6582             with_profile_uid => "boolean",
6583             },
6584             },
6585              
6586             'security.get_user_privileges' => {
6587             doc => "security-api-get-user-privileges",
6588             parts => {},
6589             paths => [ [ {}, "_security", "user", "_privileges" ] ],
6590             qs => {
6591             error_trace => "boolean",
6592             filter_path => "list",
6593             human => "boolean"
6594             },
6595             },
6596              
6597             'security.get_user_profile' => {
6598             doc => "security-api-get-user-profile",
6599             parts => { uid => { multi => 1 } },
6600             paths => [ [ { uid => 2 }, "_security", "profile", "{uid}" ] ],
6601             qs => {
6602             data => "list",
6603             error_trace => "boolean",
6604             filter_path => "list",
6605             human => "boolean",
6606             },
6607             },
6608              
6609             'security.grant_api_key' => {
6610             body => { required => 1 },
6611             doc => "security-api-grant-api-key",
6612             method => "POST",
6613             parts => {},
6614             paths => [ [ {}, "_security", "api_key", "grant" ] ],
6615             qs => {
6616             error_trace => "boolean",
6617             filter_path => "list",
6618             human => "boolean",
6619             refresh => "enum",
6620             },
6621             },
6622              
6623             'security.has_privileges' => {
6624             body => { required => 1 },
6625             doc => "security-api-has-privileges",
6626             parts => { user => {} },
6627             paths => [
6628             [ { user => 2 }, "_security",
6629             "user", "{user}",
6630             "_has_privileges"
6631             ],
6632             [ {}, "_security", "user", "_has_privileges" ],
6633             ],
6634             qs => {
6635             error_trace => "boolean",
6636             filter_path => "list",
6637             human => "boolean"
6638             },
6639             },
6640              
6641             'security.has_privileges_user_profile' => {
6642             body => { required => 1 },
6643             doc => "security-api-has-privileges-user-profile",
6644             parts => {},
6645             paths => [ [ {}, "_security", "profile", "_has_privileges" ] ],
6646             qs => {
6647             error_trace => "boolean",
6648             filter_path => "list",
6649             human => "boolean"
6650             },
6651             },
6652              
6653             'security.invalidate_api_key' => {
6654             body => { required => 1 },
6655             doc => "security-api-invalidate-api-key",
6656             method => "DELETE",
6657             parts => {},
6658             paths => [ [ {}, "_security", "api_key" ] ],
6659             qs => {
6660             error_trace => "boolean",
6661             filter_path => "list",
6662             human => "boolean"
6663             },
6664             },
6665              
6666             'security.invalidate_token' => {
6667             body => { required => 1 },
6668             doc => "security-api-invalidate-token",
6669             method => "DELETE",
6670             parts => {},
6671             paths => [ [ {}, "_security", "oauth2", "token" ] ],
6672             qs => {
6673             error_trace => "boolean",
6674             filter_path => "list",
6675             human => "boolean"
6676             },
6677             },
6678              
6679             'security.oidc_authenticate' => {
6680             body => { required => 1 },
6681             doc => "security-api-oidc-authenticate",
6682             method => "POST",
6683             parts => {},
6684             paths => [ [ {}, "_security", "oidc", "authenticate" ] ],
6685             qs => {
6686             error_trace => "boolean",
6687             filter_path => "list",
6688             human => "boolean"
6689             },
6690             },
6691              
6692             'security.oidc_logout' => {
6693             body => { required => 1 },
6694             doc => "security-api-oidc-logout",
6695             method => "POST",
6696             parts => {},
6697             paths => [ [ {}, "_security", "oidc", "logout" ] ],
6698             qs => {
6699             error_trace => "boolean",
6700             filter_path => "list",
6701             human => "boolean"
6702             },
6703             },
6704              
6705             'security.oidc_prepare_authentication' => {
6706             body => { required => 1 },
6707             doc => "security-api-oidc-prepare-authentication",
6708             method => "POST",
6709             parts => {},
6710             paths => [ [ {}, "_security", "oidc", "prepare" ] ],
6711             qs => {
6712             error_trace => "boolean",
6713             filter_path => "list",
6714             human => "boolean"
6715             },
6716             },
6717              
6718             'security.put_privileges' => {
6719             body => { required => 1 },
6720             doc => "security-api-put-privileges",
6721             method => "PUT",
6722             parts => {},
6723             paths => [ [ {}, "_security", "privilege" ] ],
6724             qs => {
6725             error_trace => "boolean",
6726             filter_path => "list",
6727             human => "boolean",
6728             refresh => "enum",
6729             },
6730             },
6731              
6732             'security.put_role' => {
6733             body => { required => 1 },
6734             doc => "security-api-put-role",
6735             method => "PUT",
6736             parts => { name => {} },
6737             paths => [ [ { name => 2 }, "_security", "role", "{name}" ] ],
6738             qs => {
6739             error_trace => "boolean",
6740             filter_path => "list",
6741             human => "boolean",
6742             refresh => "enum",
6743             },
6744             },
6745              
6746             'security.put_role_mapping' => {
6747             body => { required => 1 },
6748             doc => "security-api-put-role-mapping",
6749             method => "PUT",
6750             parts => { name => {} },
6751             paths => [ [ { name => 2 }, "_security", "role_mapping", "{name}" ] ],
6752             qs => {
6753             error_trace => "boolean",
6754             filter_path => "list",
6755             human => "boolean",
6756             refresh => "enum",
6757             },
6758             },
6759              
6760             'security.put_user' => {
6761             body => { required => 1 },
6762             doc => "security-api-put-user",
6763             method => "PUT",
6764             parts => { username => {} },
6765             paths => [ [ { username => 2 }, "_security", "user", "{username}" ] ],
6766             qs => {
6767             error_trace => "boolean",
6768             filter_path => "list",
6769             human => "boolean",
6770             refresh => "enum",
6771             },
6772             },
6773              
6774             'security.query_api_keys' => {
6775             body => {},
6776             doc => "security-api-query-api-key",
6777             parts => {},
6778             paths => [ [ {}, "_security", "_query", "api_key" ] ],
6779             qs => {
6780             error_trace => "boolean",
6781             filter_path => "list",
6782             human => "boolean",
6783             with_limited_by => "boolean",
6784             },
6785             },
6786              
6787             'security.saml_authenticate' => {
6788             body => { required => 1 },
6789             doc => "security-api-saml-authenticate",
6790             method => "POST",
6791             parts => {},
6792             paths => [ [ {}, "_security", "saml", "authenticate" ] ],
6793             qs => {
6794             error_trace => "boolean",
6795             filter_path => "list",
6796             human => "boolean"
6797             },
6798             },
6799              
6800             'security.saml_complete_logout' => {
6801             body => { required => 1 },
6802             doc => "security-api-saml-complete-logout",
6803             method => "POST",
6804             parts => {},
6805             paths => [ [ {}, "_security", "saml", "complete_logout" ] ],
6806             qs => {
6807             error_trace => "boolean",
6808             filter_path => "list",
6809             human => "boolean"
6810             },
6811             },
6812              
6813             'security.saml_invalidate' => {
6814             body => { required => 1 },
6815             doc => "security-api-saml-invalidate",
6816             method => "POST",
6817             parts => {},
6818             paths => [ [ {}, "_security", "saml", "invalidate" ] ],
6819             qs => {
6820             error_trace => "boolean",
6821             filter_path => "list",
6822             human => "boolean"
6823             },
6824             },
6825              
6826             'security.saml_logout' => {
6827             body => { required => 1 },
6828             doc => "security-api-saml-logout",
6829             method => "POST",
6830             parts => {},
6831             paths => [ [ {}, "_security", "saml", "logout" ] ],
6832             qs => {
6833             error_trace => "boolean",
6834             filter_path => "list",
6835             human => "boolean"
6836             },
6837             },
6838              
6839             'security.saml_prepare_authentication' => {
6840             body => { required => 1 },
6841             doc => "security-api-saml-prepare-authentication",
6842             method => "POST",
6843             parts => {},
6844             paths => [ [ {}, "_security", "saml", "prepare" ] ],
6845             qs => {
6846             error_trace => "boolean",
6847             filter_path => "list",
6848             human => "boolean"
6849             },
6850             },
6851              
6852             'security.saml_service_provider_metadata' => {
6853             doc => "security-api-saml-sp-metadata",
6854             parts => { realm_name => {} },
6855             paths => [
6856             [ { realm_name => 3 }, "_security",
6857             "saml", "metadata",
6858             "{realm_name}",
6859             ],
6860             ],
6861             qs => {
6862             error_trace => "boolean",
6863             filter_path => "list",
6864             human => "boolean"
6865             },
6866             },
6867              
6868             'security.suggest_user_profiles' => {
6869             body => {},
6870             doc => "security-api-suggest-user-profile",
6871             parts => {},
6872             paths => [ [ {}, "_security", "profile", "_suggest" ] ],
6873             qs => {
6874             data => "list",
6875             error_trace => "boolean",
6876             filter_path => "list",
6877             human => "boolean",
6878             },
6879             },
6880              
6881             'security.update_api_key' => {
6882             body => {},
6883             doc => "security-api-update-api-key",
6884             method => "PUT",
6885             parts => { id => {} },
6886             paths => [ [ { id => 2 }, "_security", "api_key", "{id}" ] ],
6887             qs => {
6888             error_trace => "boolean",
6889             filter_path => "list",
6890             human => "boolean"
6891             },
6892             },
6893              
6894             'security.update_cross_cluster_api_key' => {
6895             body => { required => 1 },
6896             doc => "security-api-update-cross-cluster-api-key",
6897             method => "PUT",
6898             parts => { id => {} },
6899             paths => [
6900             [ { id => 3 }, "_security", "cross_cluster", "api_key", "{id}" ],
6901             ],
6902             qs => {
6903             error_trace => "boolean",
6904             filter_path => "list",
6905             human => "boolean"
6906             },
6907             },
6908              
6909             'security.update_settings' => {
6910             body => { required => 1 },
6911             doc => "security-api-update-settings",
6912             method => "PUT",
6913             parts => {},
6914             paths => [ [ {}, "_security", "settings" ] ],
6915             qs => {
6916             error_trace => "boolean",
6917             filter_path => "list",
6918             human => "boolean"
6919             },
6920             },
6921              
6922             'security.update_user_profile_data' => {
6923             body => { required => 1 },
6924             doc => "security-api-update-user-profile-data",
6925             method => "PUT",
6926             parts => { uid => {} },
6927             paths =>
6928             [ [ { uid => 2 }, "_security", "profile", "{uid}", "_data" ] ],
6929             qs => {
6930             error_trace => "boolean",
6931             filter_path => "list",
6932             human => "boolean",
6933             if_primary_term => "number",
6934             if_seq_no => "number",
6935             refresh => "enum",
6936             },
6937             },
6938              
6939             'shutdown.delete_node' => {
6940             doc => "",
6941             method => "DELETE",
6942             parts => { node_id => {} },
6943             paths => [ [ { node_id => 1 }, "_nodes", "{node_id}", "shutdown" ] ],
6944             qs => {
6945             error_trace => "boolean",
6946             filter_path => "list",
6947             human => "boolean"
6948             },
6949             },
6950              
6951             'shutdown.get_node' => {
6952             doc => "",
6953             parts => { node_id => {} },
6954             paths => [
6955             [ { node_id => 1 }, "_nodes", "{node_id}", "shutdown" ],
6956             [ {}, "_nodes", "shutdown" ],
6957             ],
6958             qs => {
6959             error_trace => "boolean",
6960             filter_path => "list",
6961             human => "boolean"
6962             },
6963             },
6964              
6965             'shutdown.put_node' => {
6966             body => { required => 1 },
6967             doc => "",
6968             method => "PUT",
6969             parts => { node_id => {} },
6970             paths => [ [ { node_id => 1 }, "_nodes", "{node_id}", "shutdown" ] ],
6971             qs => {
6972             error_trace => "boolean",
6973             filter_path => "list",
6974             human => "boolean"
6975             },
6976             },
6977              
6978             'simulate.ingest' => {
6979             body => { required => 1 },
6980             doc => "simulate-ingest-api",
6981             parts => { index => {} },
6982             paths => [
6983             [ { index => 1 }, "_ingest", "{index}", "_simulate" ],
6984             [ {}, "_ingest", "_simulate" ],
6985             ],
6986             qs => {
6987             error_trace => "boolean",
6988             filter_path => "list",
6989             human => "boolean",
6990             pipeline => "string",
6991             },
6992             },
6993              
6994             'slm.delete_lifecycle' => {
6995             doc => "slm-api-delete-policy",
6996             method => "DELETE",
6997             parts => { policy_id => {} },
6998             paths => [ [ { policy_id => 2 }, "_slm", "policy", "{policy_id}" ] ],
6999             qs => {
7000             error_trace => "boolean",
7001             filter_path => "list",
7002             human => "boolean"
7003             },
7004             },
7005              
7006             'slm.execute_lifecycle' => {
7007             doc => "slm-api-execute-lifecycle",
7008             method => "PUT",
7009             parts => { policy_id => {} },
7010             paths => [
7011             [ { policy_id => 2 }, "_slm",
7012             "policy", "{policy_id}",
7013             "_execute"
7014             ],
7015             ],
7016             qs => {
7017             error_trace => "boolean",
7018             filter_path => "list",
7019             human => "boolean"
7020             },
7021             },
7022              
7023             'slm.execute_retention' => {
7024             doc => "slm-api-execute-retention",
7025             method => "POST",
7026             parts => {},
7027             paths => [ [ {}, "_slm", "_execute_retention" ] ],
7028             qs => {
7029             error_trace => "boolean",
7030             filter_path => "list",
7031             human => "boolean"
7032             },
7033             },
7034              
7035             'slm.get_lifecycle' => {
7036             doc => "slm-api-get-policy",
7037             parts => { policy_id => { multi => 1 } },
7038             paths => [
7039             [ { policy_id => 2 }, "_slm", "policy", "{policy_id}" ],
7040             [ {}, "_slm", "policy" ],
7041             ],
7042             qs => {
7043             error_trace => "boolean",
7044             filter_path => "list",
7045             human => "boolean"
7046             },
7047             },
7048              
7049             'slm.get_stats' => {
7050             doc => "slm-api-get-stats",
7051             parts => {},
7052             paths => [ [ {}, "_slm", "stats" ] ],
7053             qs => {
7054             error_trace => "boolean",
7055             filter_path => "list",
7056             human => "boolean"
7057             },
7058             },
7059              
7060             'slm.get_status' => {
7061             doc => "slm-api-get-status",
7062             parts => {},
7063             paths => [ [ {}, "_slm", "status" ] ],
7064             qs => {
7065             error_trace => "boolean",
7066             filter_path => "list",
7067             human => "boolean"
7068             },
7069             },
7070              
7071             'slm.put_lifecycle' => {
7072             body => {},
7073             doc => "slm-api-put-policy",
7074             method => "PUT",
7075             parts => { policy_id => {} },
7076             paths => [ [ { policy_id => 2 }, "_slm", "policy", "{policy_id}" ] ],
7077             qs => {
7078             error_trace => "boolean",
7079             filter_path => "list",
7080             human => "boolean"
7081             },
7082             },
7083              
7084             'slm.start' => {
7085             doc => "slm-api-start",
7086             method => "POST",
7087             parts => {},
7088             paths => [ [ {}, "_slm", "start" ] ],
7089             qs => {
7090             error_trace => "boolean",
7091             filter_path => "list",
7092             human => "boolean"
7093             },
7094             },
7095              
7096             'slm.stop' => {
7097             doc => "slm-api-stop",
7098             method => "POST",
7099             parts => {},
7100             paths => [ [ {}, "_slm", "stop" ] ],
7101             qs => {
7102             error_trace => "boolean",
7103             filter_path => "list",
7104             human => "boolean"
7105             },
7106             },
7107              
7108             'snapshot.cleanup_repository' => {
7109             doc => "clean-up-snapshot-repo-api",
7110             method => "POST",
7111             parts => { repository => {} },
7112             paths => [
7113             [ { repository => 1 }, "_snapshot", "{repository}", "_cleanup" ],
7114             ],
7115             qs => {
7116             error_trace => "boolean",
7117             filter_path => "list",
7118             human => "boolean",
7119             master_timeout => "time",
7120             timeout => "time",
7121             },
7122             },
7123              
7124             'snapshot.clone' => {
7125             body => { required => 1 },
7126             doc => "modules-snapshots",
7127             method => "PUT",
7128             parts => { repository => {}, snapshot => {}, target_snapshot => {} },
7129             paths => [
7130             [ { repository => 1, snapshot => 2, target_snapshot => 4 },
7131             "_snapshot",
7132             "{repository}",
7133             "{snapshot}",
7134             "_clone",
7135             "{target_snapshot}",
7136             ],
7137             ],
7138             qs => {
7139             error_trace => "boolean",
7140             filter_path => "list",
7141             human => "boolean",
7142             master_timeout => "time",
7143             },
7144             },
7145              
7146             'snapshot.create' => {
7147             body => {},
7148             doc => "modules-snapshots",
7149             method => "PUT",
7150             parts => { repository => {}, snapshot => {} },
7151             paths => [
7152             [ { repository => 1, snapshot => 2 }, "_snapshot",
7153             "{repository}", "{snapshot}",
7154             ],
7155             ],
7156             qs => {
7157             error_trace => "boolean",
7158             filter_path => "list",
7159             human => "boolean",
7160             master_timeout => "time",
7161             wait_for_completion => "boolean",
7162             },
7163             },
7164              
7165             'snapshot.create_repository' => {
7166             body => { required => 1 },
7167             doc => "modules-snapshots",
7168             method => "PUT",
7169             parts => { repository => {} },
7170             paths => [ [ { repository => 1 }, "_snapshot", "{repository}" ] ],
7171             qs => {
7172             error_trace => "boolean",
7173             filter_path => "list",
7174             human => "boolean",
7175             master_timeout => "time",
7176             timeout => "time",
7177             verify => "boolean",
7178             },
7179             },
7180              
7181             'snapshot.delete' => {
7182             doc => "modules-snapshots",
7183             method => "DELETE",
7184             parts => { repository => {}, snapshot => { multi => 1 } },
7185             paths => [
7186             [ { repository => 1, snapshot => 2 }, "_snapshot",
7187             "{repository}", "{snapshot}",
7188             ],
7189             ],
7190             qs => {
7191             error_trace => "boolean",
7192             filter_path => "list",
7193             human => "boolean",
7194             master_timeout => "time",
7195             },
7196             },
7197              
7198             'snapshot.delete_repository' => {
7199             doc => "modules-snapshots",
7200             method => "DELETE",
7201             parts => { repository => { multi => 1 } },
7202             paths => [ [ { repository => 1 }, "_snapshot", "{repository}" ] ],
7203             qs => {
7204             error_trace => "boolean",
7205             filter_path => "list",
7206             human => "boolean",
7207             master_timeout => "time",
7208             timeout => "time",
7209             },
7210             },
7211              
7212             'snapshot.get' => {
7213             doc => "modules-snapshots",
7214             parts => { repository => {}, snapshot => { multi => 1 } },
7215             paths => [
7216             [ { repository => 1, snapshot => 2 }, "_snapshot",
7217             "{repository}", "{snapshot}",
7218             ],
7219             ],
7220             qs => {
7221             after => "string",
7222             error_trace => "boolean",
7223             filter_path => "list",
7224             from_sort_value => "string",
7225             human => "boolean",
7226             ignore_unavailable => "boolean",
7227             include_repository => "boolean",
7228             index_details => "boolean",
7229             index_names => "boolean",
7230             master_timeout => "time",
7231             offset => "integer",
7232             order => "enum",
7233             size => "integer",
7234             slm_policy_filter => "string",
7235             sort => "enum",
7236             verbose => "boolean",
7237             },
7238             },
7239              
7240             'snapshot.get_repository' => {
7241             doc => "modules-snapshots",
7242             parts => { repository => { multi => 1 } },
7243             paths => [
7244             [ { repository => 1 }, "_snapshot", "{repository}" ],
7245             [ {}, "_snapshot" ],
7246             ],
7247             qs => {
7248             error_trace => "boolean",
7249             filter_path => "list",
7250             human => "boolean",
7251             local => "boolean",
7252             master_timeout => "time",
7253             },
7254             },
7255              
7256             'snapshot.repository_analyze' => {
7257             doc => "modules-snapshots",
7258             method => "POST",
7259             parts => { repository => {} },
7260             paths => [
7261             [ { repository => 1 }, "_snapshot", "{repository}", "_analyze" ],
7262             ],
7263             qs => {
7264             blob_count => "number",
7265             concurrency => "number",
7266             detailed => "boolean",
7267             early_read_node_count => "number",
7268             error_trace => "boolean",
7269             filter_path => "list",
7270             human => "boolean",
7271             max_blob_size => "string",
7272             max_total_data_size => "string",
7273             rare_action_probability => "number",
7274             rarely_abort_writes => "boolean",
7275             read_node_count => "number",
7276             seed => "number",
7277             timeout => "time",
7278             },
7279             },
7280              
7281             'snapshot.restore' => {
7282             body => {},
7283             doc => "modules-snapshots",
7284             method => "POST",
7285             parts => { repository => {}, snapshot => {} },
7286             paths => [
7287             [ { repository => 1, snapshot => 2 }, "_snapshot",
7288             "{repository}", "{snapshot}",
7289             "_restore",
7290             ],
7291             ],
7292             qs => {
7293             error_trace => "boolean",
7294             filter_path => "list",
7295             human => "boolean",
7296             master_timeout => "time",
7297             wait_for_completion => "boolean",
7298             },
7299             },
7300              
7301             'snapshot.status' => {
7302             doc => "modules-snapshots",
7303             parts => { repository => {}, snapshot => { multi => 1 } },
7304             paths => [
7305             [ { repository => 1, snapshot => 2 }, "_snapshot",
7306             "{repository}", "{snapshot}",
7307             "_status",
7308             ],
7309             [ { repository => 1 }, "_snapshot", "{repository}", "_status" ],
7310             [ {}, "_snapshot", "_status" ],
7311             ],
7312             qs => {
7313             error_trace => "boolean",
7314             filter_path => "list",
7315             human => "boolean",
7316             ignore_unavailable => "boolean",
7317             master_timeout => "time",
7318             },
7319             },
7320              
7321             'snapshot.verify_repository' => {
7322             doc => "modules-snapshots",
7323             method => "POST",
7324             parts => { repository => {} },
7325             paths => [
7326             [ { repository => 1 }, "_snapshot", "{repository}", "_verify" ],
7327             ],
7328             qs => {
7329             error_trace => "boolean",
7330             filter_path => "list",
7331             human => "boolean",
7332             master_timeout => "time",
7333             timeout => "time",
7334             },
7335             },
7336              
7337             'sql.clear_cursor' => {
7338             body => { required => 1 },
7339             doc => "clear-sql-cursor-api",
7340             method => "POST",
7341             parts => {},
7342             paths => [ [ {}, "_sql", "close" ] ],
7343             qs => {
7344             error_trace => "boolean",
7345             filter_path => "list",
7346             human => "boolean"
7347             },
7348             },
7349              
7350             'sql.delete_async' => {
7351             doc => "delete-async-sql-search-api",
7352             method => "DELETE",
7353             parts => { id => {} },
7354             paths => [ [ { id => 3 }, "_sql", "async", "delete", "{id}" ] ],
7355             qs => {
7356             error_trace => "boolean",
7357             filter_path => "list",
7358             human => "boolean"
7359             },
7360             },
7361              
7362             'sql.get_async' => {
7363             doc => "get-async-sql-search-api",
7364             parts => { id => {} },
7365             paths => [ [ { id => 2 }, "_sql", "async", "{id}" ] ],
7366             qs => {
7367             delimiter => "string",
7368             error_trace => "boolean",
7369             filter_path => "list",
7370             format => "string",
7371             human => "boolean",
7372             keep_alive => "time",
7373             wait_for_completion_timeout => "time",
7374             },
7375             },
7376              
7377             'sql.get_async_status' => {
7378             doc => "get-async-sql-search-status-api",
7379             parts => { id => {} },
7380             paths => [ [ { id => 3 }, "_sql", "async", "status", "{id}" ] ],
7381             qs => {
7382             error_trace => "boolean",
7383             filter_path => "list",
7384             human => "boolean"
7385             },
7386             },
7387              
7388             'sql.query' => {
7389             body => { required => 1 },
7390             doc => "sql-search-api",
7391             method => "POST",
7392             parts => {},
7393             paths => [ [ {}, "_sql" ] ],
7394             qs => {
7395             error_trace => "boolean",
7396             filter_path => "list",
7397             format => "string",
7398             human => "boolean",
7399             },
7400             },
7401              
7402             'sql.translate' => {
7403             body => { required => 1 },
7404             doc => "sql-translate-api",
7405             method => "POST",
7406             parts => {},
7407             paths => [ [ {}, "_sql", "translate" ] ],
7408             qs => {
7409             error_trace => "boolean",
7410             filter_path => "list",
7411             human => "boolean"
7412             },
7413             },
7414              
7415             'ssl.certificates' => {
7416             doc => "security-api-ssl",
7417             parts => {},
7418             paths => [ [ {}, "_ssl", "certificates" ] ],
7419             qs => {
7420             error_trace => "boolean",
7421             filter_path => "list",
7422             human => "boolean"
7423             },
7424             },
7425              
7426             'synonyms.delete_synonym' => {
7427             doc => "delete-synonyms-set",
7428             method => "DELETE",
7429             parts => { id => {} },
7430             paths => [ [ { id => 1 }, "_synonyms", "{id}" ] ],
7431             qs => {
7432             error_trace => "boolean",
7433             filter_path => "list",
7434             human => "boolean"
7435             },
7436             },
7437              
7438             'synonyms.delete_synonym_rule' => {
7439             doc => "delete-synonym-rule",
7440             method => "DELETE",
7441             parts => { rule_id => {}, set_id => {} },
7442             paths => [
7443             [ { rule_id => 2, set_id => 1 }, "_synonyms",
7444             "{set_id}", "{rule_id}",
7445             ],
7446             ],
7447             qs => {
7448             error_trace => "boolean",
7449             filter_path => "list",
7450             human => "boolean"
7451             },
7452             },
7453              
7454             'synonyms.get_synonym' => {
7455             doc => "get-synonyms-set",
7456             parts => { id => {} },
7457             paths => [ [ { id => 1 }, "_synonyms", "{id}" ] ],
7458             qs => {
7459             error_trace => "boolean",
7460             filter_path => "list",
7461             from => "int",
7462             human => "boolean",
7463             size => "int",
7464             },
7465             },
7466              
7467             'synonyms.get_synonym_rule' => {
7468             doc => "get-synonym-rule",
7469             parts => { rule_id => {}, set_id => {} },
7470             paths => [
7471             [ { rule_id => 2, set_id => 1 }, "_synonyms",
7472             "{set_id}", "{rule_id}",
7473             ],
7474             ],
7475             qs => {
7476             error_trace => "boolean",
7477             filter_path => "list",
7478             human => "boolean"
7479             },
7480             },
7481              
7482             'synonyms.get_synonyms_sets' => {
7483             doc => "list-synonyms-sets",
7484             parts => {},
7485             paths => [ [ {}, "_synonyms" ] ],
7486             qs => {
7487             error_trace => "boolean",
7488             filter_path => "list",
7489             from => "int",
7490             human => "boolean",
7491             size => "int",
7492             },
7493             },
7494              
7495             'synonyms.put_synonym' => {
7496             body => { required => 1 },
7497             doc => "put-synonyms-set",
7498             method => "PUT",
7499             parts => { id => {} },
7500             paths => [ [ { id => 1 }, "_synonyms", "{id}" ] ],
7501             qs => {
7502             error_trace => "boolean",
7503             filter_path => "list",
7504             human => "boolean"
7505             },
7506             },
7507              
7508             'synonyms.put_synonym_rule' => {
7509             body => { required => 1 },
7510             doc => "put-synonym-rule",
7511             method => "PUT",
7512             parts => { rule_id => {}, set_id => {} },
7513             paths => [
7514             [ { rule_id => 2, set_id => 1 }, "_synonyms",
7515             "{set_id}", "{rule_id}",
7516             ],
7517             ],
7518             qs => {
7519             error_trace => "boolean",
7520             filter_path => "list",
7521             human => "boolean"
7522             },
7523             },
7524              
7525             'tasks.cancel' => {
7526             doc => "tasks",
7527             method => "POST",
7528             parts => { task_id => {} },
7529             paths => [
7530             [ { task_id => 1 }, "_tasks", "{task_id}", "_cancel" ],
7531             [ {}, "_tasks", "_cancel" ],
7532             ],
7533             qs => {
7534             actions => "list",
7535             error_trace => "boolean",
7536             filter_path => "list",
7537             human => "boolean",
7538             nodes => "list",
7539             parent_task_id => "string",
7540             wait_for_completion => "boolean",
7541             },
7542             },
7543              
7544             'tasks.get' => {
7545             doc => "tasks",
7546             parts => { task_id => {} },
7547             paths => [ [ { task_id => 1 }, "_tasks", "{task_id}" ] ],
7548             qs => {
7549             error_trace => "boolean",
7550             filter_path => "list",
7551             human => "boolean",
7552             timeout => "time",
7553             wait_for_completion => "boolean",
7554             },
7555             },
7556              
7557             'tasks.list' => {
7558             doc => "tasks",
7559             parts => {},
7560             paths => [ [ {}, "_tasks" ] ],
7561             qs => {
7562             actions => "list",
7563             detailed => "boolean",
7564             error_trace => "boolean",
7565             filter_path => "list",
7566             group_by => "enum",
7567             human => "boolean",
7568             nodes => "list",
7569             parent_task_id => "string",
7570             timeout => "time",
7571             wait_for_completion => "boolean",
7572             },
7573             },
7574              
7575             'text_structure.find_structure' => {
7576             body => { required => 1 },
7577             doc => "find-structure",
7578             method => "POST",
7579             parts => {},
7580             paths => [ [ {}, "_text_structure", "find_structure" ] ],
7581             qs => {
7582             charset => "string",
7583             column_names => "list",
7584             delimiter => "string",
7585             ecs_compatibility => "string",
7586             error_trace => "boolean",
7587             explain => "boolean",
7588             filter_path => "list",
7589             format => "enum",
7590             grok_pattern => "string",
7591             has_header_row => "boolean",
7592             human => "boolean",
7593             line_merge_size_limit => "int",
7594             lines_to_sample => "int",
7595             quote => "string",
7596             should_trim_fields => "boolean",
7597             timeout => "time",
7598             timestamp_field => "string",
7599             timestamp_format => "string",
7600             },
7601             serialize => "bulk",
7602             },
7603              
7604             'transform.delete_transform' => {
7605             doc => "delete-transform",
7606             method => "DELETE",
7607             parts => { transform_id => {} },
7608             paths =>
7609             [ [ { transform_id => 1 }, "_transform", "{transform_id}" ] ],
7610             qs => {
7611             delete_dest_index => "boolean",
7612             error_trace => "boolean",
7613             filter_path => "list",
7614             force => "boolean",
7615             human => "boolean",
7616             timeout => "time",
7617             },
7618             },
7619              
7620             'transform.get_transform' => {
7621             doc => "get-transform",
7622             parts => { transform_id => {} },
7623             paths => [
7624             [ { transform_id => 1 }, "_transform", "{transform_id}" ],
7625             [ {}, "_transform" ],
7626             ],
7627             qs => {
7628             allow_no_match => "boolean",
7629             error_trace => "boolean",
7630             exclude_generated => "boolean",
7631             filter_path => "list",
7632             from => "int",
7633             human => "boolean",
7634             size => "int",
7635             },
7636             },
7637              
7638             'transform.get_transform_stats' => {
7639             doc => "get-transform-stats",
7640             parts => { transform_id => {} },
7641             paths => [
7642             [ { transform_id => 1 }, "_transform",
7643             "{transform_id}", "_stats"
7644             ],
7645             ],
7646             qs => {
7647             allow_no_match => "boolean",
7648             error_trace => "boolean",
7649             filter_path => "list",
7650             from => "number",
7651             human => "boolean",
7652             size => "number",
7653             timeout => "time",
7654             },
7655             },
7656              
7657             'transform.preview_transform' => {
7658             body => {},
7659             doc => "preview-transform",
7660             parts => { transform_id => {} },
7661             paths => [
7662             [ { transform_id => 1 }, "_transform",
7663             "{transform_id}", "_preview",
7664             ],
7665             [ {}, "_transform", "_preview" ],
7666             ],
7667             qs => {
7668             error_trace => "boolean",
7669             filter_path => "list",
7670             human => "boolean",
7671             timeout => "time",
7672             },
7673             },
7674              
7675             'transform.put_transform' => {
7676             body => { required => 1 },
7677             doc => "put-transform",
7678             method => "PUT",
7679             parts => { transform_id => {} },
7680             paths =>
7681             [ [ { transform_id => 1 }, "_transform", "{transform_id}" ] ],
7682             qs => {
7683             defer_validation => "boolean",
7684             error_trace => "boolean",
7685             filter_path => "list",
7686             human => "boolean",
7687             timeout => "time",
7688             },
7689             },
7690              
7691             'transform.reset_transform' => {
7692             doc => "reset-transform",
7693             method => "POST",
7694             parts => { transform_id => {} },
7695             paths => [
7696             [ { transform_id => 1 }, "_transform",
7697             "{transform_id}", "_reset"
7698             ],
7699             ],
7700             qs => {
7701             error_trace => "boolean",
7702             filter_path => "list",
7703             force => "boolean",
7704             human => "boolean",
7705             timeout => "time",
7706             },
7707             },
7708              
7709             'transform.schedule_now_transform' => {
7710             doc => "schedule-now-transform",
7711             method => "POST",
7712             parts => { transform_id => { required => 1 } },
7713             paths => [
7714             [ { transform_id => 1 }, "_transform",
7715             "{transform_id}", "_schedule_now",
7716             ],
7717             ],
7718             qs => {
7719             error_trace => "boolean",
7720             filter_path => "list",
7721             human => "boolean",
7722             timeout => "time",
7723             },
7724             },
7725              
7726             'transform.start_transform' => {
7727             doc => "start-transform",
7728             method => "POST",
7729             parts => { transform_id => {} },
7730             paths => [
7731             [ { transform_id => 1 }, "_transform",
7732             "{transform_id}", "_start"
7733             ],
7734             ],
7735             qs => {
7736             error_trace => "boolean",
7737             filter_path => "list",
7738             from => "string",
7739             human => "boolean",
7740             timeout => "time",
7741             },
7742             },
7743              
7744             'transform.stop_transform' => {
7745             doc => "stop-transform",
7746             method => "POST",
7747             parts => { transform_id => {} },
7748             paths => [
7749             [ { transform_id => 1 }, "_transform", "{transform_id}",
7750             "_stop"
7751             ],
7752             ],
7753             qs => {
7754             allow_no_match => "boolean",
7755             error_trace => "boolean",
7756             filter_path => "list",
7757             force => "boolean",
7758             human => "boolean",
7759             timeout => "time",
7760             wait_for_checkpoint => "boolean",
7761             wait_for_completion => "boolean",
7762             },
7763             },
7764              
7765             'transform.update_transform' => {
7766             body => { required => 1 },
7767             doc => "update-transform",
7768             method => "POST",
7769             parts => { transform_id => { required => 1 } },
7770             paths => [
7771             [ { transform_id => 1 }, "_transform",
7772             "{transform_id}", "_update",
7773             ],
7774             ],
7775             qs => {
7776             defer_validation => "boolean",
7777             error_trace => "boolean",
7778             filter_path => "list",
7779             human => "boolean",
7780             timeout => "time",
7781             },
7782             },
7783              
7784             'transform.upgrade_transforms' => {
7785             doc => "upgrade-transforms",
7786             method => "POST",
7787             parts => {},
7788             paths => [ [ {}, "_transform", "_upgrade" ] ],
7789             qs => {
7790             dry_run => "boolean",
7791             error_trace => "boolean",
7792             filter_path => "list",
7793             human => "boolean",
7794             timeout => "time",
7795             },
7796             },
7797              
7798             'watcher.ack_watch' => {
7799             doc => "watcher-api-ack-watch",
7800             method => "PUT",
7801             parts => { action_id => { multi => 1 }, watch_id => {} },
7802             paths => [
7803             [ { action_id => 4, watch_id => 2 }, "_watcher",
7804             "watch", "{watch_id}",
7805             "_ack", "{action_id}",
7806             ],
7807             [ { watch_id => 2 }, "_watcher", "watch", "{watch_id}", "_ack" ],
7808             ],
7809             qs => {
7810             error_trace => "boolean",
7811             filter_path => "list",
7812             human => "boolean"
7813             },
7814             },
7815              
7816             'watcher.activate_watch' => {
7817             doc => "watcher-api-activate-watch",
7818             method => "PUT",
7819             parts => { watch_id => {} },
7820             paths => [
7821             [ { watch_id => 2 }, "_watcher",
7822             "watch", "{watch_id}",
7823             "_activate",
7824             ],
7825             ],
7826             qs => {
7827             error_trace => "boolean",
7828             filter_path => "list",
7829             human => "boolean"
7830             },
7831             },
7832              
7833             'watcher.deactivate_watch' => {
7834             doc => "watcher-api-deactivate-watch",
7835             method => "PUT",
7836             parts => { watch_id => {} },
7837             paths => [
7838             [ { watch_id => 2 }, "_watcher",
7839             "watch", "{watch_id}",
7840             "_deactivate",
7841             ],
7842             ],
7843             qs => {
7844             error_trace => "boolean",
7845             filter_path => "list",
7846             human => "boolean"
7847             },
7848             },
7849              
7850             'watcher.delete_watch' => {
7851             doc => "watcher-api-delete-watch",
7852             method => "DELETE",
7853             parts => { id => {} },
7854             paths => [ [ { id => 2 }, "_watcher", "watch", "{id}" ] ],
7855             qs => {
7856             error_trace => "boolean",
7857             filter_path => "list",
7858             human => "boolean"
7859             },
7860             },
7861              
7862             'watcher.execute_watch' => {
7863             body => {},
7864             doc => "watcher-api-execute-watch",
7865             method => "PUT",
7866             parts => { id => {} },
7867             paths => [
7868             [ { id => 2 }, "_watcher", "watch", "{id}", "_execute" ],
7869             [ {}, "_watcher", "watch", "_execute" ],
7870             ],
7871             qs => {
7872             debug => "boolean",
7873             error_trace => "boolean",
7874             filter_path => "list",
7875             human => "boolean",
7876             },
7877             },
7878              
7879             'watcher.get_settings' => {
7880             doc => "watcher-api-get-settings",
7881             parts => {},
7882             paths => [ [ {}, "_watcher", "settings" ] ],
7883             qs => {
7884             error_trace => "boolean",
7885             filter_path => "list",
7886             human => "boolean"
7887             },
7888             },
7889              
7890             'watcher.get_watch' => {
7891             doc => "watcher-api-get-watch",
7892             parts => { id => {} },
7893             paths => [ [ { id => 2 }, "_watcher", "watch", "{id}" ] ],
7894             qs => {
7895             error_trace => "boolean",
7896             filter_path => "list",
7897             human => "boolean"
7898             },
7899             },
7900              
7901             'watcher.put_watch' => {
7902             body => {},
7903             doc => "watcher-api-put-watch",
7904             method => "PUT",
7905             parts => { id => {} },
7906             paths => [ [ { id => 2 }, "_watcher", "watch", "{id}" ] ],
7907             qs => {
7908             active => "boolean",
7909             error_trace => "boolean",
7910             filter_path => "list",
7911             human => "boolean",
7912             if_primary_term => "number",
7913             if_seq_no => "number",
7914             version => "number",
7915             },
7916             },
7917              
7918             'watcher.query_watches' => {
7919             body => {},
7920             doc => "watcher-api-query-watches",
7921             parts => {},
7922             paths => [ [ {}, "_watcher", "_query", "watches" ] ],
7923             qs => {
7924             error_trace => "boolean",
7925             filter_path => "list",
7926             human => "boolean"
7927             },
7928             },
7929              
7930             'watcher.start' => {
7931             doc => "watcher-api-start",
7932             method => "POST",
7933             parts => {},
7934             paths => [ [ {}, "_watcher", "_start" ] ],
7935             qs => {
7936             error_trace => "boolean",
7937             filter_path => "list",
7938             human => "boolean"
7939             },
7940             },
7941              
7942             'watcher.stats' => {
7943             doc => "watcher-api-stats",
7944             parts => { metric => { multi => 1 } },
7945             paths => [
7946             [ { metric => 2 }, "_watcher", "stats", "{metric}" ],
7947             [ {}, "_watcher", "stats" ],
7948             ],
7949             qs => {
7950             emit_stacktraces => "boolean",
7951             error_trace => "boolean",
7952             filter_path => "list",
7953             human => "boolean",
7954             },
7955             },
7956              
7957             'watcher.stop' => {
7958             doc => "watcher-api-stop",
7959             method => "POST",
7960             parts => {},
7961             paths => [ [ {}, "_watcher", "_stop" ] ],
7962             qs => {
7963             error_trace => "boolean",
7964             filter_path => "list",
7965             human => "boolean"
7966             },
7967             },
7968              
7969             'watcher.update_settings' => {
7970             body => { required => 1 },
7971             doc => "watcher-api-update-settings",
7972             method => "PUT",
7973             parts => {},
7974             paths => [ [ {}, "_watcher", "settings" ] ],
7975             qs => {
7976             error_trace => "boolean",
7977             filter_path => "list",
7978             human => "boolean"
7979             },
7980             },
7981              
7982             'xpack.info' => {
7983             doc => "info-api",
7984             parts => {},
7985             paths => [ [ {}, "_xpack" ] ],
7986             qs => {
7987             accept_enterprise => "boolean",
7988             categories => "list",
7989             error_trace => "boolean",
7990             filter_path => "list",
7991             human => "boolean",
7992             },
7993             },
7994              
7995             'xpack.usage' => {
7996             doc => "usage-api",
7997             parts => {},
7998             paths => [ [ {}, "_xpack", "usage" ] ],
7999             qs => {
8000             error_trace => "boolean",
8001             filter_path => "list",
8002             human => "boolean",
8003             master_timeout => "time",
8004             },
8005             },
8006              
8007             #=== AUTOGEN - END ===
8008              
8009             );
8010              
8011             __PACKAGE__->_qs_init( \%API );
8012             1;
8013              
8014             =pod
8015              
8016             =encoding UTF-8
8017              
8018             =head1 NAME
8019              
8020             Search::Elasticsearch::Client::8_0::Role::API - This class contains the spec for the Elasticsearch APIs
8021              
8022             =head1 VERSION
8023              
8024             version 8.12
8025              
8026             =head1 DESCRIPTION
8027              
8028             All of the Elasticsearch APIs are defined in this role. The example given below
8029             is the definition for the L method:
8030              
8031             'index' => {
8032             body => { required => 1 },
8033             doc => "docs-index_",
8034             method => "POST",
8035             parts => { id => {}, index => {}, type => {} },
8036             paths => [
8037             [ { id => 2, index => 0, type => 1 }, "{index}",
8038             "{type}", "{id}"
8039             ],
8040             [ { id => 2, index => 0 }, "{index}", "_doc", "{id}" ],
8041             [ { index => 0, type => 1 }, "{index}", "{type}" ],
8042             [ { index => 0 }, "{index}", "_doc" ],
8043             ],
8044             qs => {
8045             error_trace => "boolean",
8046             filter_path => "list",
8047             human => "boolean",
8048             if_primary_term => "number",
8049             if_seq_no => "number",
8050             op_type => "enum",
8051             pipeline => "string",
8052             refresh => "enum",
8053             require_alias => "boolean",
8054             routing => "string",
8055             timeout => "time",
8056             version => "number",
8057             version_type => "enum",
8058             wait_for_active_shards => "string",
8059             },
8060             }
8061              
8062             These definitions can be used by different L
8063             implementations to provide distinct user interfaces.
8064              
8065             =head1 METHODS
8066              
8067             =head2 C
8068              
8069             $defn = $api->api($name);
8070              
8071             The only method in this class is the C method which takes the name
8072             of the I and returns its definition. Actions in the
8073             C or C namespace use the namespace as a prefix, eg:
8074              
8075             $defn = $e->api('indices.create');
8076             $defn = $e->api('cluster.node_stats');
8077              
8078             =head1 SEE ALSO
8079              
8080             =over
8081              
8082             =item *
8083              
8084             L
8085              
8086             =item *
8087              
8088             L
8089              
8090             =back
8091              
8092             =head1 AUTHOR
8093              
8094             Enrico Zimuel
8095              
8096             =head1 COPYRIGHT AND LICENSE
8097              
8098             This software is Copyright (c) 2024 by Elasticsearch BV.
8099              
8100             This is free software, licensed under:
8101              
8102             The Apache License, Version 2.0, January 2004
8103              
8104             =cut
8105              
8106             __END__