7_0/Role/API.pm untested

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