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