8_0/Role/API.pm untested

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