| 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::6_0::Role::API; | ||
| 19 | $Search::Elasticsearch::Client::6_0::Role::API::VERSION = '7.711001'; | ||
| 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 => '6_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 | '_type' => '_type', | ||
| 47 | 'type' => '_type', | ||
| 48 | '_id' => '_id', | ||
| 49 | 'id' => '_id', | ||
| 50 | 'pipeline' => 'pipeline', | ||
| 51 | 'routing' => 'routing', | ||
| 52 | '_routing' => 'routing', | ||
| 53 | 'parent' => 'parent', | ||
| 54 | '_parent' => 'parent', | ||
| 55 | 'timestamp' => 'timestamp', | ||
| 56 | '_timestamp' => 'timestamp', | ||
| 57 | 'ttl' => 'ttl', | ||
| 58 | '_ttl' => 'ttl', | ||
| 59 | 'version' => 'version', | ||
| 60 | '_version' => 'version', | ||
| 61 | 'version_type' => 'version_type', | ||
| 62 | '_version_type' => 'version_type', | ||
| 63 | 'if_seq_no' => 'if_seq_no', | ||
| 64 | 'if_primary_term' => 'if_primary_term' | ||
| 65 | } | ||
| 66 | }, | ||
| 67 | 'bulk.update' => { | ||
| 68 | params => [ | ||
| 69 | '_source', '_source_includes', | ||
| 70 | '_source_excludes', 'detect_noop', | ||
| 71 | 'doc', 'doc_as_upsert', | ||
| 72 | 'fields', 'retry_on_conflict', | ||
| 73 | 'scripted_upsert', 'script', | ||
| 74 | 'upsert', | ||
| 75 | ] | ||
| 76 | }, | ||
| 77 | 'bulk.required' => { params => [ 'index', 'type' ] }, | ||
| 78 | |||
| 79 | #=== AUTOGEN - START === | ||
| 80 | |||
| 81 | 'bulk' => { | ||
| 82 | body => { required => 1 }, | ||
| 83 | doc => "docs-bulk", | ||
| 84 | method => "POST", | ||
| 85 | parts => { index => {}, type => {} }, | ||
| 86 | paths => [ | ||
| 87 | [ { index => 0, type => 1 }, "{index}", "{type}", "_bulk" ], | ||
| 88 | [ { index => 0 }, "{index}", "_bulk" ], | ||
| 89 | [ {}, "_bulk" ], | ||
| 90 | ], | ||
| 91 | qs => { | ||
| 92 | _source => "list", | ||
| 93 | _source_excludes => "list", | ||
| 94 | _source_includes => "list", | ||
| 95 | error_trace => "boolean", | ||
| 96 | fields => "list", | ||
| 97 | filter_path => "list", | ||
| 98 | human => "boolean", | ||
| 99 | pipeline => "string", | ||
| 100 | refresh => "enum", | ||
| 101 | routing => "string", | ||
| 102 | timeout => "time", | ||
| 103 | wait_for_active_shards => "string", | ||
| 104 | }, | ||
| 105 | serialize => "bulk", | ||
| 106 | }, | ||
| 107 | |||
| 108 | 'clear_scroll' => { | ||
| 109 | body => {}, | ||
| 110 | doc => "search-request-scroll", | ||
| 111 | method => "DELETE", | ||
| 112 | parts => { scroll_id => { multi => 1 } }, | ||
| 113 | paths => [ | ||
| 114 | [ { scroll_id => 2 }, "_search", "scroll", "{scroll_id}" ], | ||
| 115 | [ {}, "_search", "scroll" ], | ||
| 116 | ], | ||
| 117 | qs => { | ||
| 118 | error_trace => "boolean", | ||
| 119 | filter_path => "list", | ||
| 120 | human => "boolean" | ||
| 121 | }, | ||
| 122 | }, | ||
| 123 | |||
| 124 | 'count' => { | ||
| 125 | body => {}, | ||
| 126 | doc => "search-count", | ||
| 127 | method => "POST", | ||
| 128 | parts => { index => { multi => 1 }, type => { multi => 1 } }, | ||
| 129 | paths => [ | ||
| 130 | [ { index => 0, type => 1 }, "{index}", "{type}", "_count" ], | ||
| 131 | [ { index => 0 }, "{index}", "_count" ], | ||
| 132 | [ {}, "_count" ], | ||
| 133 | ], | ||
| 134 | qs => { | ||
| 135 | allow_no_indices => "boolean", | ||
| 136 | analyze_wildcard => "boolean", | ||
| 137 | analyzer => "string", | ||
| 138 | default_operator => "enum", | ||
| 139 | df => "string", | ||
| 140 | error_trace => "boolean", | ||
| 141 | expand_wildcards => "enum", | ||
| 142 | filter_path => "list", | ||
| 143 | human => "boolean", | ||
| 144 | ignore_throttled => "boolean", | ||
| 145 | ignore_unavailable => "boolean", | ||
| 146 | lenient => "boolean", | ||
| 147 | min_score => "number", | ||
| 148 | preference => "string", | ||
| 149 | q => "string", | ||
| 150 | routing => "list", | ||
| 151 | terminate_after => "number", | ||
| 152 | }, | ||
| 153 | }, | ||
| 154 | |||
| 155 | 'create' => { | ||
| 156 | body => { required => 1 }, | ||
| 157 | doc => "docs-index_", | ||
| 158 | method => "PUT", | ||
| 159 | parts => { | ||
| 160 | id => { required => 1 }, | ||
| 161 | index => { required => 1 }, | ||
| 162 | type => { required => 1 }, | ||
| 163 | }, | ||
| 164 | paths => [ | ||
| 165 | [ { id => 2, index => 0, type => 1 }, | ||
| 166 | "{index}", "{type}", "{id}", "_create", | ||
| 167 | ], | ||
| 168 | ], | ||
| 169 | qs => { | ||
| 170 | error_trace => "boolean", | ||
| 171 | filter_path => "list", | ||
| 172 | human => "boolean", | ||
| 173 | parent => "string", | ||
| 174 | pipeline => "string", | ||
| 175 | refresh => "enum", | ||
| 176 | routing => "string", | ||
| 177 | timeout => "time", | ||
| 178 | version => "number", | ||
| 179 | version_type => "enum", | ||
| 180 | wait_for_active_shards => "string", | ||
| 181 | }, | ||
| 182 | }, | ||
| 183 | |||
| 184 | 'delete' => { | ||
| 185 | doc => "docs-delete", | ||
| 186 | method => "DELETE", | ||
| 187 | parts => { | ||
| 188 | id => { required => 1 }, | ||
| 189 | index => { required => 1 }, | ||
| 190 | type => { required => 1 }, | ||
| 191 | }, | ||
| 192 | paths => [ | ||
| 193 | [ { id => 2, index => 0, type => 1 }, "{index}", | ||
| 194 | "{type}", "{id}" | ||
| 195 | ], | ||
| 196 | ], | ||
| 197 | qs => { | ||
| 198 | error_trace => "boolean", | ||
| 199 | filter_path => "list", | ||
| 200 | human => "boolean", | ||
| 201 | if_primary_term => "number", | ||
| 202 | if_seq_no => "number", | ||
| 203 | parent => "string", | ||
| 204 | refresh => "enum", | ||
| 205 | routing => "string", | ||
| 206 | timeout => "time", | ||
| 207 | version => "number", | ||
| 208 | version_type => "enum", | ||
| 209 | wait_for_active_shards => "string", | ||
| 210 | }, | ||
| 211 | }, | ||
| 212 | |||
| 213 | 'delete_by_query' => { | ||
| 214 | body => { required => 1 }, | ||
| 215 | doc => "docs-delete-by-query", | ||
| 216 | method => "POST", | ||
| 217 | parts => { | ||
| 218 | index => { multi => 1, required => 1 }, | ||
| 219 | type => { multi => 1 } | ||
| 220 | }, | ||
| 221 | paths => [ | ||
| 222 | [ { index => 0, type => 1 }, "{index}", | ||
| 223 | "{type}", "_delete_by_query", | ||
| 224 | ], | ||
| 225 | [ { index => 0 }, "{index}", "_delete_by_query" ], | ||
| 226 | ], | ||
| 227 | qs => { | ||
| 228 | _source => "list", | ||
| 229 | _source_excludes => "list", | ||
| 230 | _source_includes => "list", | ||
| 231 | allow_no_indices => "boolean", | ||
| 232 | analyze_wildcard => "boolean", | ||
| 233 | analyzer => "string", | ||
| 234 | conflicts => "enum", | ||
| 235 | default_operator => "enum", | ||
| 236 | df => "string", | ||
| 237 | error_trace => "boolean", | ||
| 238 | expand_wildcards => "enum", | ||
| 239 | filter_path => "list", | ||
| 240 | from => "number", | ||
| 241 | human => "boolean", | ||
| 242 | ignore_unavailable => "boolean", | ||
| 243 | lenient => "boolean", | ||
| 244 | preference => "string", | ||
| 245 | q => "string", | ||
| 246 | refresh => "boolean", | ||
| 247 | request_cache => "boolean", | ||
| 248 | requests_per_second => "number", | ||
| 249 | routing => "list", | ||
| 250 | scroll => "time", | ||
| 251 | scroll_size => "number", | ||
| 252 | search_timeout => "time", | ||
| 253 | search_type => "enum", | ||
| 254 | size => "number", | ||
| 255 | slices => "number", | ||
| 256 | sort => "list", | ||
| 257 | stats => "list", | ||
| 258 | terminate_after => "number", | ||
| 259 | timeout => "time", | ||
| 260 | version => "boolean", | ||
| 261 | wait_for_active_shards => "string", | ||
| 262 | wait_for_completion => "boolean", | ||
| 263 | }, | ||
| 264 | }, | ||
| 265 | |||
| 266 | 'delete_by_query_rethrottle' => { | ||
| 267 | doc => "docs-delete-by-query", | ||
| 268 | method => "POST", | ||
| 269 | parts => { task_id => { required => 1 } }, | ||
| 270 | paths => [ | ||
| 271 | [ { task_id => 1 }, "_delete_by_query", | ||
| 272 | "{task_id}", "_rethrottle", | ||
| 273 | ], | ||
| 274 | ], | ||
| 275 | qs => { | ||
| 276 | error_trace => "boolean", | ||
| 277 | filter_path => "list", | ||
| 278 | human => "boolean", | ||
| 279 | requests_per_second => "number", | ||
| 280 | }, | ||
| 281 | }, | ||
| 282 | |||
| 283 | 'delete_script' => { | ||
| 284 | doc => "modules-scripting", | ||
| 285 | method => "DELETE", | ||
| 286 | parts => { id => { required => 1 } }, | ||
| 287 | paths => [ [ { id => 1 }, "_scripts", "{id}" ] ], | ||
| 288 | qs => { | ||
| 289 | error_trace => "boolean", | ||
| 290 | filter_path => "list", | ||
| 291 | human => "boolean", | ||
| 292 | master_timeout => "time", | ||
| 293 | timeout => "time", | ||
| 294 | }, | ||
| 295 | }, | ||
| 296 | |||
| 297 | 'exists' => { | ||
| 298 | doc => "docs-get", | ||
| 299 | method => "HEAD", | ||
| 300 | parts => { | ||
| 301 | id => { required => 1 }, | ||
| 302 | index => { required => 1 }, | ||
| 303 | type => { required => 1 }, | ||
| 304 | }, | ||
| 305 | paths => [ | ||
| 306 | [ { id => 2, index => 0, type => 1 }, "{index}", | ||
| 307 | "{type}", "{id}" | ||
| 308 | ], | ||
| 309 | ], | ||
| 310 | qs => { | ||
| 311 | _source => "list", | ||
| 312 | _source_excludes => "list", | ||
| 313 | _source_includes => "list", | ||
| 314 | error_trace => "boolean", | ||
| 315 | filter_path => "list", | ||
| 316 | human => "boolean", | ||
| 317 | parent => "string", | ||
| 318 | preference => "string", | ||
| 319 | realtime => "boolean", | ||
| 320 | refresh => "boolean", | ||
| 321 | routing => "string", | ||
| 322 | stored_fields => "list", | ||
| 323 | version => "number", | ||
| 324 | version_type => "enum", | ||
| 325 | }, | ||
| 326 | }, | ||
| 327 | |||
| 328 | 'exists_source' => { | ||
| 329 | doc => "docs-get", | ||
| 330 | method => "HEAD", | ||
| 331 | parts => { | ||
| 332 | id => { required => 1 }, | ||
| 333 | index => { required => 1 }, | ||
| 334 | type => { required => 1 }, | ||
| 335 | }, | ||
| 336 | paths => [ | ||
| 337 | [ { id => 2, index => 0, type => 1 }, | ||
| 338 | "{index}", "{type}", "{id}", "_source", | ||
| 339 | ], | ||
| 340 | ], | ||
| 341 | qs => { | ||
| 342 | _source => "list", | ||
| 343 | _source_excludes => "list", | ||
| 344 | _source_includes => "list", | ||
| 345 | error_trace => "boolean", | ||
| 346 | filter_path => "list", | ||
| 347 | human => "boolean", | ||
| 348 | parent => "string", | ||
| 349 | preference => "string", | ||
| 350 | realtime => "boolean", | ||
| 351 | refresh => "boolean", | ||
| 352 | routing => "string", | ||
| 353 | version => "number", | ||
| 354 | version_type => "enum", | ||
| 355 | }, | ||
| 356 | }, | ||
| 357 | |||
| 358 | 'explain' => { | ||
| 359 | body => {}, | ||
| 360 | doc => "search-explain", | ||
| 361 | parts => { | ||
| 362 | id => { required => 1 }, | ||
| 363 | index => { required => 1 }, | ||
| 364 | type => { required => 1 }, | ||
| 365 | }, | ||
| 366 | paths => [ | ||
| 367 | [ { id => 2, index => 0, type => 1 }, "{index}", | ||
| 368 | "{type}", "{id}", | ||
| 369 | "_explain", | ||
| 370 | ], | ||
| 371 | ], | ||
| 372 | qs => { | ||
| 373 | _source => "list", | ||
| 374 | _source_excludes => "list", | ||
| 375 | _source_includes => "list", | ||
| 376 | analyze_wildcard => "boolean", | ||
| 377 | analyzer => "string", | ||
| 378 | default_operator => "enum", | ||
| 379 | df => "string", | ||
| 380 | error_trace => "boolean", | ||
| 381 | filter_path => "list", | ||
| 382 | human => "boolean", | ||
| 383 | lenient => "boolean", | ||
| 384 | parent => "string", | ||
| 385 | preference => "string", | ||
| 386 | q => "string", | ||
| 387 | routing => "string", | ||
| 388 | stored_fields => "list", | ||
| 389 | }, | ||
| 390 | }, | ||
| 391 | |||
| 392 | 'field_caps' => { | ||
| 393 | body => {}, | ||
| 394 | doc => "search-field-caps", | ||
| 395 | parts => { index => { multi => 1 } }, | ||
| 396 | paths => [ | ||
| 397 | [ { index => 0 }, "{index}", "_field_caps" ], | ||
| 398 | [ {}, "_field_caps" ], | ||
| 399 | ], | ||
| 400 | qs => { | ||
| 401 | allow_no_indices => "boolean", | ||
| 402 | error_trace => "boolean", | ||
| 403 | expand_wildcards => "enum", | ||
| 404 | fields => "list", | ||
| 405 | filter_path => "list", | ||
| 406 | human => "boolean", | ||
| 407 | ignore_unavailable => "boolean", | ||
| 408 | }, | ||
| 409 | }, | ||
| 410 | |||
| 411 | 'get' => { | ||
| 412 | doc => "docs-get", | ||
| 413 | parts => { | ||
| 414 | id => { required => 1 }, | ||
| 415 | index => { required => 1 }, | ||
| 416 | type => { required => 1 }, | ||
| 417 | }, | ||
| 418 | paths => [ | ||
| 419 | [ { id => 2, index => 0, type => 1 }, "{index}", | ||
| 420 | "{type}", "{id}" | ||
| 421 | ], | ||
| 422 | ], | ||
| 423 | qs => { | ||
| 424 | _source => "list", | ||
| 425 | _source_exclude => "list", | ||
| 426 | _source_excludes => "list", | ||
| 427 | _source_include => "list", | ||
| 428 | _source_includes => "list", | ||
| 429 | error_trace => "boolean", | ||
| 430 | filter_path => "list", | ||
| 431 | human => "boolean", | ||
| 432 | parent => "string", | ||
| 433 | preference => "string", | ||
| 434 | realtime => "boolean", | ||
| 435 | refresh => "boolean", | ||
| 436 | routing => "string", | ||
| 437 | stored_fields => "list", | ||
| 438 | version => "number", | ||
| 439 | version_type => "enum", | ||
| 440 | }, | ||
| 441 | }, | ||
| 442 | |||
| 443 | 'get_script' => { | ||
| 444 | doc => "modules-scripting", | ||
| 445 | parts => { id => { required => 1 } }, | ||
| 446 | paths => [ [ { id => 1 }, "_scripts", "{id}" ] ], | ||
| 447 | qs => { | ||
| 448 | error_trace => "boolean", | ||
| 449 | filter_path => "list", | ||
| 450 | human => "boolean", | ||
| 451 | master_timeout => "time", | ||
| 452 | }, | ||
| 453 | }, | ||
| 454 | |||
| 455 | 'get_source' => { | ||
| 456 | doc => "docs-get", | ||
| 457 | parts => { | ||
| 458 | id => { required => 1 }, | ||
| 459 | index => { required => 1 }, | ||
| 460 | type => { required => 1 }, | ||
| 461 | }, | ||
| 462 | paths => [ | ||
| 463 | [ { id => 2, index => 0, type => 1 }, | ||
| 464 | "{index}", "{type}", "{id}", "_source", | ||
| 465 | ], | ||
| 466 | ], | ||
| 467 | qs => { | ||
| 468 | _source => "list", | ||
| 469 | _source_excludes => "list", | ||
| 470 | _source_includes => "list", | ||
| 471 | error_trace => "boolean", | ||
| 472 | filter_path => "list", | ||
| 473 | human => "boolean", | ||
| 474 | parent => "string", | ||
| 475 | preference => "string", | ||
| 476 | realtime => "boolean", | ||
| 477 | refresh => "boolean", | ||
| 478 | routing => "string", | ||
| 479 | version => "number", | ||
| 480 | version_type => "enum", | ||
| 481 | }, | ||
| 482 | }, | ||
| 483 | |||
| 484 | 'index' => { | ||
| 485 | body => { required => 1 }, | ||
| 486 | doc => "docs-index_", | ||
| 487 | method => "POST", | ||
| 488 | parts => { | ||
| 489 | id => {}, | ||
| 490 | index => { required => 1 }, | ||
| 491 | type => { required => 1 } | ||
| 492 | }, | ||
| 493 | paths => [ | ||
| 494 | [ { id => 2, index => 0, type => 1 }, "{index}", | ||
| 495 | "{type}", "{id}" | ||
| 496 | ], | ||
| 497 | [ { index => 0, type => 1 }, "{index}", "{type}" ], | ||
| 498 | ], | ||
| 499 | qs => { | ||
| 500 | error_trace => "boolean", | ||
| 501 | filter_path => "list", | ||
| 502 | human => "boolean", | ||
| 503 | if_primary_term => "number", | ||
| 504 | if_seq_no => "number", | ||
| 505 | op_type => "enum", | ||
| 506 | parent => "string", | ||
| 507 | pipeline => "string", | ||
| 508 | refresh => "enum", | ||
| 509 | routing => "string", | ||
| 510 | timeout => "time", | ||
| 511 | version => "number", | ||
| 512 | version_type => "enum", | ||
| 513 | wait_for_active_shards => "string", | ||
| 514 | }, | ||
| 515 | }, | ||
| 516 | |||
| 517 | 'info' => { | ||
| 518 | doc => "", | ||
| 519 | parts => {}, | ||
| 520 | paths => [ [ {} ] ], | ||
| 521 | qs => { | ||
| 522 | error_trace => "boolean", | ||
| 523 | filter_path => "list", | ||
| 524 | human => "boolean" | ||
| 525 | }, | ||
| 526 | }, | ||
| 527 | |||
| 528 | 'mget' => { | ||
| 529 | body => { required => 1 }, | ||
| 530 | doc => "docs-multi-get", | ||
| 531 | parts => { index => {}, type => {} }, | ||
| 532 | paths => [ | ||
| 533 | [ { index => 0, type => 1 }, "{index}", "{type}", "_mget" ], | ||
| 534 | [ { index => 0 }, "{index}", "_mget" ], | ||
| 535 | [ {}, "_mget" ], | ||
| 536 | ], | ||
| 537 | qs => { | ||
| 538 | _source => "list", | ||
| 539 | _source_excludes => "list", | ||
| 540 | _source_includes => "list", | ||
| 541 | error_trace => "boolean", | ||
| 542 | filter_path => "list", | ||
| 543 | human => "boolean", | ||
| 544 | preference => "string", | ||
| 545 | realtime => "boolean", | ||
| 546 | refresh => "boolean", | ||
| 547 | routing => "string", | ||
| 548 | stored_fields => "list", | ||
| 549 | }, | ||
| 550 | }, | ||
| 551 | |||
| 552 | 'msearch' => { | ||
| 553 | body => { required => 1 }, | ||
| 554 | doc => "search-multi-search", | ||
| 555 | parts => { index => { multi => 1 }, type => { multi => 1 } }, | ||
| 556 | paths => [ | ||
| 557 | [ { index => 0, type => 1 }, "{index}", "{type}", "_msearch" ], | ||
| 558 | [ { index => 0 }, "{index}", "_msearch" ], | ||
| 559 | [ {}, "_msearch" ], | ||
| 560 | ], | ||
| 561 | qs => { | ||
| 562 | error_trace => "boolean", | ||
| 563 | filter_path => "list", | ||
| 564 | human => "boolean", | ||
| 565 | max_concurrent_searches => "number", | ||
| 566 | max_concurrent_shard_requests => "number", | ||
| 567 | pre_filter_shard_size => "number", | ||
| 568 | rest_total_hits_as_int => "boolean", | ||
| 569 | search_type => "enum", | ||
| 570 | typed_keys => "boolean", | ||
| 571 | }, | ||
| 572 | serialize => "bulk", | ||
| 573 | }, | ||
| 574 | |||
| 575 | 'msearch_template' => { | ||
| 576 | body => { required => 1 }, | ||
| 577 | doc => "search-multi-search", | ||
| 578 | parts => { index => { multi => 1 }, type => { multi => 1 } }, | ||
| 579 | paths => [ | ||
| 580 | [ { index => 0, type => 1 }, "{index}", | ||
| 581 | "{type}", "_msearch", | ||
| 582 | "template", | ||
| 583 | ], | ||
| 584 | [ { index => 0 }, "{index}", "_msearch", "template" ], | ||
| 585 | [ {}, "_msearch", "template" ], | ||
| 586 | ], | ||
| 587 | qs => { | ||
| 588 | error_trace => "boolean", | ||
| 589 | filter_path => "list", | ||
| 590 | human => "boolean", | ||
| 591 | max_concurrent_searches => "number", | ||
| 592 | rest_total_hits_as_int => "boolean", | ||
| 593 | search_type => "enum", | ||
| 594 | typed_keys => "boolean", | ||
| 595 | }, | ||
| 596 | serialize => "bulk", | ||
| 597 | }, | ||
| 598 | |||
| 599 | 'mtermvectors' => { | ||
| 600 | body => {}, | ||
| 601 | doc => "docs-multi-termvectors", | ||
| 602 | parts => { index => {}, type => {} }, | ||
| 603 | paths => [ | ||
| 604 | [ { index => 0, type => 1 }, "{index}", | ||
| 605 | "{type}", "_mtermvectors" | ||
| 606 | ], | ||
| 607 | [ { index => 0 }, "{index}", "_mtermvectors" ], | ||
| 608 | [ {}, "_mtermvectors" ], | ||
| 609 | ], | ||
| 610 | qs => { | ||
| 611 | error_trace => "boolean", | ||
| 612 | field_statistics => "boolean", | ||
| 613 | fields => "list", | ||
| 614 | filter_path => "list", | ||
| 615 | human => "boolean", | ||
| 616 | ids => "list", | ||
| 617 | offsets => "boolean", | ||
| 618 | parent => "string", | ||
| 619 | payloads => "boolean", | ||
| 620 | positions => "boolean", | ||
| 621 | preference => "string", | ||
| 622 | realtime => "boolean", | ||
| 623 | routing => "string", | ||
| 624 | term_statistics => "boolean", | ||
| 625 | version => "number", | ||
| 626 | version_type => "enum", | ||
| 627 | }, | ||
| 628 | }, | ||
| 629 | |||
| 630 | 'ping' => { | ||
| 631 | doc => "", | ||
| 632 | method => "HEAD", | ||
| 633 | parts => {}, | ||
| 634 | paths => [ [ {} ] ], | ||
| 635 | qs => { | ||
| 636 | error_trace => "boolean", | ||
| 637 | filter_path => "list", | ||
| 638 | human => "boolean" | ||
| 639 | }, | ||
| 640 | }, | ||
| 641 | |||
| 642 | 'put_script' => { | ||
| 643 | body => { required => 1 }, | ||
| 644 | doc => "modules-scripting", | ||
| 645 | method => "PUT", | ||
| 646 | parts => { context => {}, id => { required => 1 } }, | ||
| 647 | paths => [ | ||
| 648 | [ { context => 2, id => 1 }, "_scripts", "{id}", "{context}" ], | ||
| 649 | [ { id => 1 }, "_scripts", "{id}" ], | ||
| 650 | ], | ||
| 651 | qs => { | ||
| 652 | error_trace => "boolean", | ||
| 653 | filter_path => "list", | ||
| 654 | human => "boolean", | ||
| 655 | master_timeout => "time", | ||
| 656 | timeout => "time", | ||
| 657 | }, | ||
| 658 | }, | ||
| 659 | |||
| 660 | 'rank_eval' => { | ||
| 661 | body => { required => 1 }, | ||
| 662 | doc => "search-rank-eval", | ||
| 663 | parts => { index => { multi => 1 } }, | ||
| 664 | paths => [ | ||
| 665 | [ { index => 0 }, "{index}", "_rank_eval" ], | ||
| 666 | [ {}, "_rank_eval" ] | ||
| 667 | ], | ||
| 668 | qs => { | ||
| 669 | allow_no_indices => "boolean", | ||
| 670 | error_trace => "boolean", | ||
| 671 | expand_wildcards => "enum", | ||
| 672 | filter_path => "list", | ||
| 673 | human => "boolean", | ||
| 674 | ignore_unavailable => "boolean", | ||
| 675 | }, | ||
| 676 | }, | ||
| 677 | |||
| 678 | 'reindex' => { | ||
| 679 | body => { required => 1 }, | ||
| 680 | doc => "docs-reindex", | ||
| 681 | method => "POST", | ||
| 682 | parts => {}, | ||
| 683 | paths => [ [ {}, "_reindex" ] ], | ||
| 684 | qs => { | ||
| 685 | error_trace => "boolean", | ||
| 686 | filter_path => "list", | ||
| 687 | human => "boolean", | ||
| 688 | refresh => "boolean", | ||
| 689 | requests_per_second => "number", | ||
| 690 | slices => "number", | ||
| 691 | timeout => "time", | ||
| 692 | wait_for_active_shards => "string", | ||
| 693 | wait_for_completion => "boolean", | ||
| 694 | }, | ||
| 695 | }, | ||
| 696 | |||
| 697 | 'reindex_rethrottle' => { | ||
| 698 | doc => "docs-reindex", | ||
| 699 | method => "POST", | ||
| 700 | parts => { task_id => { required => 1 } }, | ||
| 701 | paths => | ||
| 702 | [ [ { task_id => 1 }, "_reindex", "{task_id}", "_rethrottle" ] ], | ||
| 703 | qs => { | ||
| 704 | error_trace => "boolean", | ||
| 705 | filter_path => "list", | ||
| 706 | human => "boolean", | ||
| 707 | requests_per_second => "number", | ||
| 708 | }, | ||
| 709 | }, | ||
| 710 | |||
| 711 | 'render_search_template' => { | ||
| 712 | body => {}, | ||
| 713 | doc => "search-template", | ||
| 714 | parts => { id => {} }, | ||
| 715 | paths => [ | ||
| 716 | [ { id => 2 }, "_render", "template", "{id}" ], | ||
| 717 | [ {}, "_render", "template" ], | ||
| 718 | ], | ||
| 719 | qs => { | ||
| 720 | error_trace => "boolean", | ||
| 721 | filter_path => "list", | ||
| 722 | human => "boolean" | ||
| 723 | }, | ||
| 724 | }, | ||
| 725 | |||
| 726 | 'scripts_painless_execute' => { | ||
| 727 | body => {}, | ||
| 728 | doc => "painless-execute-api", | ||
| 729 | parts => {}, | ||
| 730 | paths => [ [ {}, "_scripts", "painless", "_execute" ] ], | ||
| 731 | qs => { | ||
| 732 | error_trace => "boolean", | ||
| 733 | filter_path => "list", | ||
| 734 | human => "boolean" | ||
| 735 | }, | ||
| 736 | }, | ||
| 737 | |||
| 738 | 'scroll' => { | ||
| 739 | body => {}, | ||
| 740 | doc => "search-request-scroll", | ||
| 741 | parts => { scroll_id => {} }, | ||
| 742 | paths => [ | ||
| 743 | [ { scroll_id => 2 }, "_search", "scroll", "{scroll_id}" ], | ||
| 744 | [ {}, "_search", "scroll" ], | ||
| 745 | ], | ||
| 746 | qs => { | ||
| 747 | error_trace => "boolean", | ||
| 748 | filter_path => "list", | ||
| 749 | human => "boolean", | ||
| 750 | rest_total_hits_as_int => "boolean", | ||
| 751 | scroll => "time", | ||
| 752 | }, | ||
| 753 | }, | ||
| 754 | |||
| 755 | 'search' => { | ||
| 756 | body => {}, | ||
| 757 | doc => "search-search", | ||
| 758 | parts => { index => { multi => 1 }, type => { multi => 1 } }, | ||
| 759 | paths => [ | ||
| 760 | [ { index => 0, type => 1 }, "{index}", "{type}", "_search" ], | ||
| 761 | [ { index => 0 }, "{index}", "_search" ], | ||
| 762 | [ {}, "_search" ], | ||
| 763 | ], | ||
| 764 | qs => { | ||
| 765 | _source => "list", | ||
| 766 | _source_excludes => "list", | ||
| 767 | _source_includes => "list", | ||
| 768 | allow_no_indices => "boolean", | ||
| 769 | allow_partial_search_results => "boolean", | ||
| 770 | analyze_wildcard => "boolean", | ||
| 771 | analyzer => "string", | ||
| 772 | batched_reduce_size => "number", | ||
| 773 | default_operator => "enum", | ||
| 774 | df => "string", | ||
| 775 | docvalue_fields => "list", | ||
| 776 | error_trace => "boolean", | ||
| 777 | expand_wildcards => "enum", | ||
| 778 | explain => "boolean", | ||
| 779 | filter_path => "list", | ||
| 780 | from => "number", | ||
| 781 | human => "boolean", | ||
| 782 | ignore_throttled => "boolean", | ||
| 783 | ignore_unavailable => "boolean", | ||
| 784 | lenient => "boolean", | ||
| 785 | max_concurrent_shard_requests => "number", | ||
| 786 | pre_filter_shard_size => "number", | ||
| 787 | preference => "string", | ||
| 788 | q => "string", | ||
| 789 | request_cache => "boolean", | ||
| 790 | rest_total_hits_as_int => "boolean", | ||
| 791 | routing => "list", | ||
| 792 | scroll => "time", | ||
| 793 | search_type => "enum", | ||
| 794 | seq_no_primary_term => "boolean", | ||
| 795 | size => "number", | ||
| 796 | sort => "list", | ||
| 797 | stats => "list", | ||
| 798 | stored_fields => "list", | ||
| 799 | suggest_field => "string", | ||
| 800 | suggest_mode => "enum", | ||
| 801 | suggest_size => "number", | ||
| 802 | suggest_text => "string", | ||
| 803 | terminate_after => "number", | ||
| 804 | timeout => "time", | ||
| 805 | track_scores => "boolean", | ||
| 806 | track_total_hits => "boolean", | ||
| 807 | typed_keys => "boolean", | ||
| 808 | version => "boolean", | ||
| 809 | }, | ||
| 810 | }, | ||
| 811 | |||
| 812 | 'search_shards' => { | ||
| 813 | doc => "search-shards", | ||
| 814 | parts => { index => { multi => 1 } }, | ||
| 815 | paths => [ | ||
| 816 | [ { index => 0 }, "{index}", "_search_shards" ], | ||
| 817 | [ {}, "_search_shards" ], | ||
| 818 | ], | ||
| 819 | qs => { | ||
| 820 | allow_no_indices => "boolean", | ||
| 821 | error_trace => "boolean", | ||
| 822 | expand_wildcards => "enum", | ||
| 823 | filter_path => "list", | ||
| 824 | human => "boolean", | ||
| 825 | ignore_unavailable => "boolean", | ||
| 826 | local => "boolean", | ||
| 827 | preference => "string", | ||
| 828 | routing => "string", | ||
| 829 | }, | ||
| 830 | }, | ||
| 831 | |||
| 832 | 'search_template' => { | ||
| 833 | body => { required => 1 }, | ||
| 834 | doc => "search-template", | ||
| 835 | parts => { index => { multi => 1 }, type => { multi => 1 } }, | ||
| 836 | paths => [ | ||
| 837 | [ { index => 0, type => 1 }, "{index}", | ||
| 838 | "{type}", "_search", | ||
| 839 | "template", | ||
| 840 | ], | ||
| 841 | [ { index => 0 }, "{index}", "_search", "template" ], | ||
| 842 | [ {}, "_search", "template" ], | ||
| 843 | ], | ||
| 844 | qs => { | ||
| 845 | allow_no_indices => "boolean", | ||
| 846 | error_trace => "boolean", | ||
| 847 | expand_wildcards => "enum", | ||
| 848 | explain => "boolean", | ||
| 849 | filter_path => "list", | ||
| 850 | human => "boolean", | ||
| 851 | ignore_throttled => "boolean", | ||
| 852 | ignore_unavailable => "boolean", | ||
| 853 | preference => "string", | ||
| 854 | profile => "boolean", | ||
| 855 | rest_total_hits_as_int => "boolean", | ||
| 856 | routing => "list", | ||
| 857 | scroll => "time", | ||
| 858 | search_type => "enum", | ||
| 859 | typed_keys => "boolean", | ||
| 860 | }, | ||
| 861 | }, | ||
| 862 | |||
| 863 | 'termvectors' => { | ||
| 864 | body => {}, | ||
| 865 | doc => "docs-termvectors", | ||
| 866 | parts => { | ||
| 867 | id => {}, | ||
| 868 | index => { required => 1 }, | ||
| 869 | type => { required => 1 } | ||
| 870 | }, | ||
| 871 | paths => [ | ||
| 872 | [ { id => 2, index => 0, type => 1 }, "{index}", | ||
| 873 | "{type}", "{id}", | ||
| 874 | "_termvectors", | ||
| 875 | ], | ||
| 876 | [ { index => 0, type => 1 }, "{index}", "{type}", | ||
| 877 | "_termvectors" | ||
| 878 | ], | ||
| 879 | ], | ||
| 880 | qs => { | ||
| 881 | error_trace => "boolean", | ||
| 882 | field_statistics => "boolean", | ||
| 883 | fields => "list", | ||
| 884 | filter_path => "list", | ||
| 885 | human => "boolean", | ||
| 886 | offsets => "boolean", | ||
| 887 | parent => "string", | ||
| 888 | payloads => "boolean", | ||
| 889 | positions => "boolean", | ||
| 890 | preference => "string", | ||
| 891 | realtime => "boolean", | ||
| 892 | routing => "string", | ||
| 893 | term_statistics => "boolean", | ||
| 894 | version => "number", | ||
| 895 | version_type => "enum", | ||
| 896 | }, | ||
| 897 | }, | ||
| 898 | |||
| 899 | 'update' => { | ||
| 900 | body => { required => 1 }, | ||
| 901 | doc => "docs-update", | ||
| 902 | method => "POST", | ||
| 903 | parts => { | ||
| 904 | id => { required => 1 }, | ||
| 905 | index => { required => 1 }, | ||
| 906 | type => { required => 1 }, | ||
| 907 | }, | ||
| 908 | paths => [ | ||
| 909 | [ { id => 2, index => 0, type => 1 }, | ||
| 910 | "{index}", "{type}", "{id}", "_update", | ||
| 911 | ], | ||
| 912 | ], | ||
| 913 | qs => { | ||
| 914 | _source => "list", | ||
| 915 | _source_excludes => "list", | ||
| 916 | _source_includes => "list", | ||
| 917 | error_trace => "boolean", | ||
| 918 | fields => "list", | ||
| 919 | filter_path => "list", | ||
| 920 | human => "boolean", | ||
| 921 | if_primary_term => "number", | ||
| 922 | if_seq_no => "number", | ||
| 923 | lang => "string", | ||
| 924 | parent => "string", | ||
| 925 | refresh => "enum", | ||
| 926 | retry_on_conflict => "number", | ||
| 927 | routing => "string", | ||
| 928 | timeout => "time", | ||
| 929 | version => "number", | ||
| 930 | version_type => "enum", | ||
| 931 | wait_for_active_shards => "string", | ||
| 932 | }, | ||
| 933 | }, | ||
| 934 | |||
| 935 | 'update_by_query' => { | ||
| 936 | body => {}, | ||
| 937 | doc => "docs-update-by-query", | ||
| 938 | method => "POST", | ||
| 939 | parts => { | ||
| 940 | index => { multi => 1, required => 1 }, | ||
| 941 | type => { multi => 1 } | ||
| 942 | }, | ||
| 943 | paths => [ | ||
| 944 | [ { index => 0, type => 1 }, "{index}", | ||
| 945 | "{type}", "_update_by_query", | ||
| 946 | ], | ||
| 947 | [ { index => 0 }, "{index}", "_update_by_query" ], | ||
| 948 | ], | ||
| 949 | qs => { | ||
| 950 | _source => "list", | ||
| 951 | _source_excludes => "list", | ||
| 952 | _source_includes => "list", | ||
| 953 | allow_no_indices => "boolean", | ||
| 954 | analyze_wildcard => "boolean", | ||
| 955 | analyzer => "string", | ||
| 956 | conflicts => "enum", | ||
| 957 | default_operator => "enum", | ||
| 958 | df => "string", | ||
| 959 | error_trace => "boolean", | ||
| 960 | expand_wildcards => "enum", | ||
| 961 | filter_path => "list", | ||
| 962 | from => "number", | ||
| 963 | human => "boolean", | ||
| 964 | ignore_unavailable => "boolean", | ||
| 965 | lenient => "boolean", | ||
| 966 | pipeline => "string", | ||
| 967 | preference => "string", | ||
| 968 | q => "string", | ||
| 969 | refresh => "boolean", | ||
| 970 | request_cache => "boolean", | ||
| 971 | requests_per_second => "number", | ||
| 972 | routing => "list", | ||
| 973 | scroll => "time", | ||
| 974 | scroll_size => "number", | ||
| 975 | search_timeout => "time", | ||
| 976 | search_type => "enum", | ||
| 977 | size => "number", | ||
| 978 | slices => "number", | ||
| 979 | sort => "list", | ||
| 980 | stats => "list", | ||
| 981 | terminate_after => "number", | ||
| 982 | timeout => "time", | ||
| 983 | version => "boolean", | ||
| 984 | version_type => "boolean", | ||
| 985 | wait_for_active_shards => "string", | ||
| 986 | wait_for_completion => "boolean", | ||
| 987 | }, | ||
| 988 | }, | ||
| 989 | |||
| 990 | 'update_by_query_rethrottle' => { | ||
| 991 | doc => "docs-update-by-query", | ||
| 992 | method => "POST", | ||
| 993 | parts => { task_id => { required => 1 } }, | ||
| 994 | paths => [ | ||
| 995 | [ { task_id => 1 }, "_update_by_query", | ||
| 996 | "{task_id}", "_rethrottle", | ||
| 997 | ], | ||
| 998 | ], | ||
| 999 | qs => { | ||
| 1000 | error_trace => "boolean", | ||
| 1001 | filter_path => "list", | ||
| 1002 | human => "boolean", | ||
| 1003 | requests_per_second => "number", | ||
| 1004 | }, | ||
| 1005 | }, | ||
| 1006 | |||
| 1007 | 'cat.aliases' => { | ||
| 1008 | doc => "cat-alias", | ||
| 1009 | parts => { name => { multi => 1 } }, | ||
| 1010 | paths => [ | ||
| 1011 | [ { name => 2 }, "_cat", "aliases", "{name}" ], | ||
| 1012 | [ {}, "_cat", "aliases" ], | ||
| 1013 | ], | ||
| 1014 | qs => { | ||
| 1015 | error_trace => "boolean", | ||
| 1016 | filter_path => "list", | ||
| 1017 | format => "string", | ||
| 1018 | h => "list", | ||
| 1019 | help => "boolean", | ||
| 1020 | human => "boolean", | ||
| 1021 | local => "boolean", | ||
| 1022 | master_timeout => "time", | ||
| 1023 | s => "list", | ||
| 1024 | v => "boolean", | ||
| 1025 | }, | ||
| 1026 | }, | ||
| 1027 | |||
| 1028 | 'cat.allocation' => { | ||
| 1029 | doc => "cat-allocation", | ||
| 1030 | parts => { node_id => { multi => 1 } }, | ||
| 1031 | paths => [ | ||
| 1032 | [ { node_id => 2 }, "_cat", "allocation", "{node_id}" ], | ||
| 1033 | [ {}, "_cat", "allocation" ], | ||
| 1034 | ], | ||
| 1035 | qs => { | ||
| 1036 | bytes => "enum", | ||
| 1037 | error_trace => "boolean", | ||
| 1038 | filter_path => "list", | ||
| 1039 | format => "string", | ||
| 1040 | h => "list", | ||
| 1041 | help => "boolean", | ||
| 1042 | human => "boolean", | ||
| 1043 | local => "boolean", | ||
| 1044 | master_timeout => "time", | ||
| 1045 | s => "list", | ||
| 1046 | v => "boolean", | ||
| 1047 | }, | ||
| 1048 | }, | ||
| 1049 | |||
| 1050 | 'cat.count' => { | ||
| 1051 | doc => "cat-count", | ||
| 1052 | parts => { index => { multi => 1 } }, | ||
| 1053 | paths => [ | ||
| 1054 | [ { index => 2 }, "_cat", "count", "{index}" ], | ||
| 1055 | [ {}, "_cat", "count" ], | ||
| 1056 | ], | ||
| 1057 | qs => { | ||
| 1058 | error_trace => "boolean", | ||
| 1059 | filter_path => "list", | ||
| 1060 | format => "string", | ||
| 1061 | h => "list", | ||
| 1062 | help => "boolean", | ||
| 1063 | human => "boolean", | ||
| 1064 | local => "boolean", | ||
| 1065 | master_timeout => "time", | ||
| 1066 | s => "list", | ||
| 1067 | v => "boolean", | ||
| 1068 | }, | ||
| 1069 | }, | ||
| 1070 | |||
| 1071 | 'cat.fielddata' => { | ||
| 1072 | doc => "cat-fielddata", | ||
| 1073 | parts => { fields => { multi => 1 } }, | ||
| 1074 | paths => [ | ||
| 1075 | [ { fields => 2 }, "_cat", "fielddata", "{fields}" ], | ||
| 1076 | [ {}, "_cat", "fielddata" ], | ||
| 1077 | ], | ||
| 1078 | qs => { | ||
| 1079 | bytes => "enum", | ||
| 1080 | error_trace => "boolean", | ||
| 1081 | filter_path => "list", | ||
| 1082 | format => "string", | ||
| 1083 | h => "list", | ||
| 1084 | help => "boolean", | ||
| 1085 | human => "boolean", | ||
| 1086 | local => "boolean", | ||
| 1087 | master_timeout => "time", | ||
| 1088 | s => "list", | ||
| 1089 | v => "boolean", | ||
| 1090 | }, | ||
| 1091 | }, | ||
| 1092 | |||
| 1093 | 'cat.health' => { | ||
| 1094 | doc => "cat-health", | ||
| 1095 | parts => {}, | ||
| 1096 | paths => [ [ {}, "_cat", "health" ] ], | ||
| 1097 | qs => { | ||
| 1098 | error_trace => "boolean", | ||
| 1099 | filter_path => "list", | ||
| 1100 | format => "string", | ||
| 1101 | h => "list", | ||
| 1102 | help => "boolean", | ||
| 1103 | human => "boolean", | ||
| 1104 | local => "boolean", | ||
| 1105 | master_timeout => "time", | ||
| 1106 | s => "list", | ||
| 1107 | ts => "boolean", | ||
| 1108 | v => "boolean", | ||
| 1109 | }, | ||
| 1110 | }, | ||
| 1111 | |||
| 1112 | 'cat.help' => { | ||
| 1113 | doc => "cat", | ||
| 1114 | parts => {}, | ||
| 1115 | paths => [ [ {}, "_cat" ] ], | ||
| 1116 | qs => { | ||
| 1117 | error_trace => "boolean", | ||
| 1118 | filter_path => "list", | ||
| 1119 | help => "boolean", | ||
| 1120 | human => "boolean", | ||
| 1121 | s => "list", | ||
| 1122 | }, | ||
| 1123 | }, | ||
| 1124 | |||
| 1125 | 'cat.indices' => { | ||
| 1126 | doc => "cat-indices", | ||
| 1127 | parts => { index => { multi => 1 } }, | ||
| 1128 | paths => [ | ||
| 1129 | [ { index => 2 }, "_cat", "indices", "{index}" ], | ||
| 1130 | [ {}, "_cat", "indices" ], | ||
| 1131 | ], | ||
| 1132 | qs => { | ||
| 1133 | bytes => "enum", | ||
| 1134 | error_trace => "boolean", | ||
| 1135 | filter_path => "list", | ||
| 1136 | format => "string", | ||
| 1137 | h => "list", | ||
| 1138 | health => "enum", | ||
| 1139 | help => "boolean", | ||
| 1140 | human => "boolean", | ||
| 1141 | local => "boolean", | ||
| 1142 | master_timeout => "time", | ||
| 1143 | pri => "boolean", | ||
| 1144 | s => "list", | ||
| 1145 | v => "boolean", | ||
| 1146 | }, | ||
| 1147 | }, | ||
| 1148 | |||
| 1149 | 'cat.master' => { | ||
| 1150 | doc => "cat-master", | ||
| 1151 | parts => {}, | ||
| 1152 | paths => [ [ {}, "_cat", "master" ] ], | ||
| 1153 | qs => { | ||
| 1154 | error_trace => "boolean", | ||
| 1155 | filter_path => "list", | ||
| 1156 | format => "string", | ||
| 1157 | h => "list", | ||
| 1158 | help => "boolean", | ||
| 1159 | human => "boolean", | ||
| 1160 | local => "boolean", | ||
| 1161 | master_timeout => "time", | ||
| 1162 | s => "list", | ||
| 1163 | v => "boolean", | ||
| 1164 | }, | ||
| 1165 | }, | ||
| 1166 | |||
| 1167 | 'cat.nodeattrs' => { | ||
| 1168 | doc => "cat-nodeattrs", | ||
| 1169 | parts => {}, | ||
| 1170 | paths => [ [ {}, "_cat", "nodeattrs" ] ], | ||
| 1171 | qs => { | ||
| 1172 | error_trace => "boolean", | ||
| 1173 | filter_path => "list", | ||
| 1174 | format => "string", | ||
| 1175 | h => "list", | ||
| 1176 | help => "boolean", | ||
| 1177 | human => "boolean", | ||
| 1178 | local => "boolean", | ||
| 1179 | master_timeout => "time", | ||
| 1180 | s => "list", | ||
| 1181 | v => "boolean", | ||
| 1182 | }, | ||
| 1183 | }, | ||
| 1184 | |||
| 1185 | 'cat.nodes' => { | ||
| 1186 | doc => "cat-nodes", | ||
| 1187 | parts => {}, | ||
| 1188 | paths => [ [ {}, "_cat", "nodes" ] ], | ||
| 1189 | qs => { | ||
| 1190 | error_trace => "boolean", | ||
| 1191 | filter_path => "list", | ||
| 1192 | format => "string", | ||
| 1193 | full_id => "boolean", | ||
| 1194 | h => "list", | ||
| 1195 | help => "boolean", | ||
| 1196 | human => "boolean", | ||
| 1197 | local => "boolean", | ||
| 1198 | master_timeout => "time", | ||
| 1199 | s => "list", | ||
| 1200 | v => "boolean", | ||
| 1201 | }, | ||
| 1202 | }, | ||
| 1203 | |||
| 1204 | 'cat.pending_tasks' => { | ||
| 1205 | doc => "cat-pending-tasks", | ||
| 1206 | parts => {}, | ||
| 1207 | paths => [ [ {}, "_cat", "pending_tasks" ] ], | ||
| 1208 | qs => { | ||
| 1209 | error_trace => "boolean", | ||
| 1210 | filter_path => "list", | ||
| 1211 | format => "string", | ||
| 1212 | h => "list", | ||
| 1213 | help => "boolean", | ||
| 1214 | human => "boolean", | ||
| 1215 | local => "boolean", | ||
| 1216 | master_timeout => "time", | ||
| 1217 | s => "list", | ||
| 1218 | v => "boolean", | ||
| 1219 | }, | ||
| 1220 | }, | ||
| 1221 | |||
| 1222 | 'cat.plugins' => { | ||
| 1223 | doc => "cat-plugins", | ||
| 1224 | parts => {}, | ||
| 1225 | paths => [ [ {}, "_cat", "plugins" ] ], | ||
| 1226 | qs => { | ||
| 1227 | error_trace => "boolean", | ||
| 1228 | filter_path => "list", | ||
| 1229 | format => "string", | ||
| 1230 | h => "list", | ||
| 1231 | help => "boolean", | ||
| 1232 | human => "boolean", | ||
| 1233 | local => "boolean", | ||
| 1234 | master_timeout => "time", | ||
| 1235 | s => "list", | ||
| 1236 | v => "boolean", | ||
| 1237 | }, | ||
| 1238 | }, | ||
| 1239 | |||
| 1240 | 'cat.recovery' => { | ||
| 1241 | doc => "cat-recovery", | ||
| 1242 | parts => { index => { multi => 1 } }, | ||
| 1243 | paths => [ | ||
| 1244 | [ { index => 2 }, "_cat", "recovery", "{index}" ], | ||
| 1245 | [ {}, "_cat", "recovery" ], | ||
| 1246 | ], | ||
| 1247 | qs => { | ||
| 1248 | bytes => "enum", | ||
| 1249 | error_trace => "boolean", | ||
| 1250 | filter_path => "list", | ||
| 1251 | format => "string", | ||
| 1252 | h => "list", | ||
| 1253 | help => "boolean", | ||
| 1254 | human => "boolean", | ||
| 1255 | master_timeout => "time", | ||
| 1256 | s => "list", | ||
| 1257 | v => "boolean", | ||
| 1258 | }, | ||
| 1259 | }, | ||
| 1260 | |||
| 1261 | 'cat.repositories' => { | ||
| 1262 | doc => "cat-repositories", | ||
| 1263 | parts => {}, | ||
| 1264 | paths => [ [ {}, "_cat", "repositories" ] ], | ||
| 1265 | qs => { | ||
| 1266 | error_trace => "boolean", | ||
| 1267 | filter_path => "list", | ||
| 1268 | format => "string", | ||
| 1269 | h => "list", | ||
| 1270 | help => "boolean", | ||
| 1271 | human => "boolean", | ||
| 1272 | local => "boolean", | ||
| 1273 | master_timeout => "time", | ||
| 1274 | s => "list", | ||
| 1275 | v => "boolean", | ||
| 1276 | }, | ||
| 1277 | }, | ||
| 1278 | |||
| 1279 | 'cat.segments' => { | ||
| 1280 | doc => "cat-segments", | ||
| 1281 | parts => { index => { multi => 1 } }, | ||
| 1282 | paths => [ | ||
| 1283 | [ { index => 2 }, "_cat", "segments", "{index}" ], | ||
| 1284 | [ {}, "_cat", "segments" ], | ||
| 1285 | ], | ||
| 1286 | qs => { | ||
| 1287 | bytes => "enum", | ||
| 1288 | error_trace => "boolean", | ||
| 1289 | filter_path => "list", | ||
| 1290 | format => "string", | ||
| 1291 | h => "list", | ||
| 1292 | help => "boolean", | ||
| 1293 | human => "boolean", | ||
| 1294 | s => "list", | ||
| 1295 | v => "boolean", | ||
| 1296 | }, | ||
| 1297 | }, | ||
| 1298 | |||
| 1299 | 'cat.shards' => { | ||
| 1300 | doc => "cat-shards", | ||
| 1301 | parts => { index => { multi => 1 } }, | ||
| 1302 | paths => [ | ||
| 1303 | [ { index => 2 }, "_cat", "shards", "{index}" ], | ||
| 1304 | [ {}, "_cat", "shards" ], | ||
| 1305 | ], | ||
| 1306 | qs => { | ||
| 1307 | bytes => "enum", | ||
| 1308 | error_trace => "boolean", | ||
| 1309 | filter_path => "list", | ||
| 1310 | format => "string", | ||
| 1311 | h => "list", | ||
| 1312 | help => "boolean", | ||
| 1313 | human => "boolean", | ||
| 1314 | local => "boolean", | ||
| 1315 | master_timeout => "time", | ||
| 1316 | s => "list", | ||
| 1317 | v => "boolean", | ||
| 1318 | }, | ||
| 1319 | }, | ||
| 1320 | |||
| 1321 | 'cat.snapshots' => { | ||
| 1322 | doc => "cat-snapshots", | ||
| 1323 | parts => { repository => { multi => 1 } }, | ||
| 1324 | paths => [ | ||
| 1325 | [ { repository => 2 }, "_cat", "snapshots", "{repository}" ], | ||
| 1326 | [ {}, "_cat", "snapshots" ], | ||
| 1327 | ], | ||
| 1328 | qs => { | ||
| 1329 | error_trace => "boolean", | ||
| 1330 | filter_path => "list", | ||
| 1331 | format => "string", | ||
| 1332 | h => "list", | ||
| 1333 | help => "boolean", | ||
| 1334 | human => "boolean", | ||
| 1335 | ignore_unavailable => "boolean", | ||
| 1336 | master_timeout => "time", | ||
| 1337 | s => "list", | ||
| 1338 | v => "boolean", | ||
| 1339 | }, | ||
| 1340 | }, | ||
| 1341 | |||
| 1342 | 'cat.tasks' => { | ||
| 1343 | doc => "tasks", | ||
| 1344 | parts => {}, | ||
| 1345 | paths => [ [ {}, "_cat", "tasks" ] ], | ||
| 1346 | qs => { | ||
| 1347 | actions => "list", | ||
| 1348 | detailed => "boolean", | ||
| 1349 | error_trace => "boolean", | ||
| 1350 | filter_path => "list", | ||
| 1351 | format => "string", | ||
| 1352 | h => "list", | ||
| 1353 | help => "boolean", | ||
| 1354 | human => "boolean", | ||
| 1355 | node_id => "list", | ||
| 1356 | parent_task => "number", | ||
| 1357 | s => "list", | ||
| 1358 | v => "boolean", | ||
| 1359 | }, | ||
| 1360 | }, | ||
| 1361 | |||
| 1362 | 'cat.templates' => { | ||
| 1363 | doc => "cat-templates", | ||
| 1364 | parts => { name => {} }, | ||
| 1365 | paths => [ | ||
| 1366 | [ { name => 2 }, "_cat", "templates", "{name}" ], | ||
| 1367 | [ {}, "_cat", "templates" ], | ||
| 1368 | ], | ||
| 1369 | qs => { | ||
| 1370 | error_trace => "boolean", | ||
| 1371 | filter_path => "list", | ||
| 1372 | format => "string", | ||
| 1373 | h => "list", | ||
| 1374 | help => "boolean", | ||
| 1375 | human => "boolean", | ||
| 1376 | local => "boolean", | ||
| 1377 | master_timeout => "time", | ||
| 1378 | s => "list", | ||
| 1379 | v => "boolean", | ||
| 1380 | }, | ||
| 1381 | }, | ||
| 1382 | |||
| 1383 | 'cat.thread_pool' => { | ||
| 1384 | doc => "cat-thread-pool", | ||
| 1385 | parts => { thread_pool_patterns => { multi => 1 } }, | ||
| 1386 | paths => [ | ||
| 1387 | [ { thread_pool_patterns => 2 }, "_cat", | ||
| 1388 | "thread_pool", "{thread_pool_patterns}", | ||
| 1389 | ], | ||
| 1390 | [ {}, "_cat", "thread_pool" ], | ||
| 1391 | ], | ||
| 1392 | qs => { | ||
| 1393 | error_trace => "boolean", | ||
| 1394 | filter_path => "list", | ||
| 1395 | format => "string", | ||
| 1396 | h => "list", | ||
| 1397 | help => "boolean", | ||
| 1398 | human => "boolean", | ||
| 1399 | local => "boolean", | ||
| 1400 | master_timeout => "time", | ||
| 1401 | s => "list", | ||
| 1402 | size => "enum", | ||
| 1403 | v => "boolean", | ||
| 1404 | }, | ||
| 1405 | }, | ||
| 1406 | |||
| 1407 | 'ccr.delete_auto_follow_pattern' => { | ||
| 1408 | doc => "ccr-delete-auto-follow-pattern", | ||
| 1409 | method => "DELETE", | ||
| 1410 | parts => { name => { required => 1 } }, | ||
| 1411 | paths => [ [ { name => 2 }, "_ccr", "auto_follow", "{name}" ] ], | ||
| 1412 | qs => { | ||
| 1413 | error_trace => "boolean", | ||
| 1414 | filter_path => "list", | ||
| 1415 | human => "boolean" | ||
| 1416 | }, | ||
| 1417 | }, | ||
| 1418 | |||
| 1419 | 'ccr.follow' => { | ||
| 1420 | body => { required => 1 }, | ||
| 1421 | doc => "ccr-put-follow", | ||
| 1422 | method => "PUT", | ||
| 1423 | parts => { index => { required => 1 } }, | ||
| 1424 | paths => [ [ { index => 0 }, "{index}", "_ccr", "follow" ] ], | ||
| 1425 | qs => { | ||
| 1426 | error_trace => "boolean", | ||
| 1427 | filter_path => "list", | ||
| 1428 | human => "boolean", | ||
| 1429 | wait_for_active_shards => "string", | ||
| 1430 | }, | ||
| 1431 | }, | ||
| 1432 | |||
| 1433 | 'ccr.follow_info' => { | ||
| 1434 | doc => "ccr-get-follow-info", | ||
| 1435 | parts => { index => { multi => 1 } }, | ||
| 1436 | paths => [ [ { index => 0 }, "{index}", "_ccr", "info" ] ], | ||
| 1437 | qs => { | ||
| 1438 | error_trace => "boolean", | ||
| 1439 | filter_path => "list", | ||
| 1440 | human => "boolean" | ||
| 1441 | }, | ||
| 1442 | }, | ||
| 1443 | |||
| 1444 | 'ccr.follow_stats' => { | ||
| 1445 | doc => "ccr-get-follow-stats", | ||
| 1446 | parts => { index => { multi => 1 } }, | ||
| 1447 | paths => [ [ { index => 0 }, "{index}", "_ccr", "stats" ] ], | ||
| 1448 | qs => { | ||
| 1449 | error_trace => "boolean", | ||
| 1450 | filter_path => "list", | ||
| 1451 | human => "boolean" | ||
| 1452 | }, | ||
| 1453 | }, | ||
| 1454 | |||
| 1455 | 'ccr.forget_follower' => { | ||
| 1456 | body => { required => 1 }, | ||
| 1457 | doc => "", | ||
| 1458 | method => "POST", | ||
| 1459 | parts => { index => { required => 1 } }, | ||
| 1460 | paths => [ [ { index => 0 }, "{index}", "_ccr", "forget_follower" ] ], | ||
| 1461 | qs => { | ||
| 1462 | error_trace => "boolean", | ||
| 1463 | filter_path => "list", | ||
| 1464 | human => "boolean" | ||
| 1465 | }, | ||
| 1466 | }, | ||
| 1467 | |||
| 1468 | 'ccr.get_auto_follow_pattern' => { | ||
| 1469 | doc => "ccr-get-auto-follow-pattern", | ||
| 1470 | parts => { name => {} }, | ||
| 1471 | paths => [ | ||
| 1472 | [ { name => 2 }, "_ccr", "auto_follow", "{name}" ], | ||
| 1473 | [ {}, "_ccr", "auto_follow" ], | ||
| 1474 | ], | ||
| 1475 | qs => { | ||
| 1476 | error_trace => "boolean", | ||
| 1477 | filter_path => "list", | ||
| 1478 | human => "boolean" | ||
| 1479 | }, | ||
| 1480 | }, | ||
| 1481 | |||
| 1482 | 'ccr.pause_follow' => { | ||
| 1483 | doc => "ccr-post-pause-follow", | ||
| 1484 | method => "POST", | ||
| 1485 | parts => { index => { required => 1 } }, | ||
| 1486 | paths => [ [ { index => 0 }, "{index}", "_ccr", "pause_follow" ] ], | ||
| 1487 | qs => { | ||
| 1488 | error_trace => "boolean", | ||
| 1489 | filter_path => "list", | ||
| 1490 | human => "boolean" | ||
| 1491 | }, | ||
| 1492 | }, | ||
| 1493 | |||
| 1494 | 'ccr.put_auto_follow_pattern' => { | ||
| 1495 | body => { required => 1 }, | ||
| 1496 | doc => "ccr-put-auto-follow-pattern", | ||
| 1497 | method => "PUT", | ||
| 1498 | parts => { name => { required => 1 } }, | ||
| 1499 | paths => [ [ { name => 2 }, "_ccr", "auto_follow", "{name}" ] ], | ||
| 1500 | qs => { | ||
| 1501 | error_trace => "boolean", | ||
| 1502 | filter_path => "list", | ||
| 1503 | human => "boolean" | ||
| 1504 | }, | ||
| 1505 | }, | ||
| 1506 | |||
| 1507 | 'ccr.resume_follow' => { | ||
| 1508 | body => {}, | ||
| 1509 | doc => "ccr-post-resume-follow", | ||
| 1510 | method => "POST", | ||
| 1511 | parts => { index => { required => 1 } }, | ||
| 1512 | paths => [ [ { index => 0 }, "{index}", "_ccr", "resume_follow" ] ], | ||
| 1513 | qs => { | ||
| 1514 | error_trace => "boolean", | ||
| 1515 | filter_path => "list", | ||
| 1516 | human => "boolean" | ||
| 1517 | }, | ||
| 1518 | }, | ||
| 1519 | |||
| 1520 | 'ccr.stats' => { | ||
| 1521 | doc => "ccr-get-stats", | ||
| 1522 | parts => {}, | ||
| 1523 | paths => [ [ {}, "_ccr", "stats" ] ], | ||
| 1524 | qs => { | ||
| 1525 | error_trace => "boolean", | ||
| 1526 | filter_path => "list", | ||
| 1527 | human => "boolean" | ||
| 1528 | }, | ||
| 1529 | }, | ||
| 1530 | |||
| 1531 | 'ccr.unfollow' => { | ||
| 1532 | doc => "", | ||
| 1533 | method => "POST", | ||
| 1534 | parts => { index => { required => 1 } }, | ||
| 1535 | paths => [ [ { index => 0 }, "{index}", "_ccr", "unfollow" ] ], | ||
| 1536 | qs => { | ||
| 1537 | error_trace => "boolean", | ||
| 1538 | filter_path => "list", | ||
| 1539 | human => "boolean" | ||
| 1540 | }, | ||
| 1541 | }, | ||
| 1542 | |||
| 1543 | 'cluster.allocation_explain' => { | ||
| 1544 | body => {}, | ||
| 1545 | doc => "cluster-allocation-explain", | ||
| 1546 | parts => {}, | ||
| 1547 | paths => [ [ {}, "_cluster", "allocation", "explain" ] ], | ||
| 1548 | qs => { | ||
| 1549 | error_trace => "boolean", | ||
| 1550 | filter_path => "list", | ||
| 1551 | human => "boolean", | ||
| 1552 | include_disk_info => "boolean", | ||
| 1553 | include_yes_decisions => "boolean", | ||
| 1554 | }, | ||
| 1555 | }, | ||
| 1556 | |||
| 1557 | 'cluster.get_settings' => { | ||
| 1558 | doc => "cluster-update-settings", | ||
| 1559 | parts => {}, | ||
| 1560 | paths => [ [ {}, "_cluster", "settings" ] ], | ||
| 1561 | qs => { | ||
| 1562 | error_trace => "boolean", | ||
| 1563 | filter_path => "list", | ||
| 1564 | flat_settings => "boolean", | ||
| 1565 | human => "boolean", | ||
| 1566 | include_defaults => "boolean", | ||
| 1567 | master_timeout => "time", | ||
| 1568 | timeout => "time", | ||
| 1569 | }, | ||
| 1570 | }, | ||
| 1571 | |||
| 1572 | 'cluster.health' => { | ||
| 1573 | doc => "cluster-health", | ||
| 1574 | parts => { index => { multi => 1 } }, | ||
| 1575 | paths => [ | ||
| 1576 | [ { index => 2 }, "_cluster", "health", "{index}" ], | ||
| 1577 | [ {}, "_cluster", "health" ], | ||
| 1578 | ], | ||
| 1579 | qs => { | ||
| 1580 | error_trace => "boolean", | ||
| 1581 | filter_path => "list", | ||
| 1582 | human => "boolean", | ||
| 1583 | level => "enum", | ||
| 1584 | local => "boolean", | ||
| 1585 | master_timeout => "time", | ||
| 1586 | timeout => "time", | ||
| 1587 | wait_for_active_shards => "string", | ||
| 1588 | wait_for_events => "enum", | ||
| 1589 | wait_for_no_initializing_shards => "boolean", | ||
| 1590 | wait_for_no_relocating_shards => "boolean", | ||
| 1591 | wait_for_nodes => "string", | ||
| 1592 | wait_for_status => "enum", | ||
| 1593 | }, | ||
| 1594 | }, | ||
| 1595 | |||
| 1596 | 'cluster.pending_tasks' => { | ||
| 1597 | doc => "cluster-pending", | ||
| 1598 | parts => {}, | ||
| 1599 | paths => [ [ {}, "_cluster", "pending_tasks" ] ], | ||
| 1600 | qs => { | ||
| 1601 | error_trace => "boolean", | ||
| 1602 | filter_path => "list", | ||
| 1603 | human => "boolean", | ||
| 1604 | local => "boolean", | ||
| 1605 | master_timeout => "time", | ||
| 1606 | }, | ||
| 1607 | }, | ||
| 1608 | |||
| 1609 | 'cluster.put_settings' => { | ||
| 1610 | body => { required => 1 }, | ||
| 1611 | doc => "cluster-update-settings", | ||
| 1612 | method => "PUT", | ||
| 1613 | parts => {}, | ||
| 1614 | paths => [ [ {}, "_cluster", "settings" ] ], | ||
| 1615 | qs => { | ||
| 1616 | error_trace => "boolean", | ||
| 1617 | filter_path => "list", | ||
| 1618 | flat_settings => "boolean", | ||
| 1619 | human => "boolean", | ||
| 1620 | master_timeout => "time", | ||
| 1621 | timeout => "time", | ||
| 1622 | }, | ||
| 1623 | }, | ||
| 1624 | |||
| 1625 | 'cluster.remote_info' => { | ||
| 1626 | doc => "cluster-remote-info", | ||
| 1627 | parts => {}, | ||
| 1628 | paths => [ [ {}, "_remote", "info" ] ], | ||
| 1629 | qs => { | ||
| 1630 | error_trace => "boolean", | ||
| 1631 | filter_path => "list", | ||
| 1632 | human => "boolean" | ||
| 1633 | }, | ||
| 1634 | }, | ||
| 1635 | |||
| 1636 | 'cluster.reroute' => { | ||
| 1637 | body => {}, | ||
| 1638 | doc => "cluster-reroute", | ||
| 1639 | method => "POST", | ||
| 1640 | parts => {}, | ||
| 1641 | paths => [ [ {}, "_cluster", "reroute" ] ], | ||
| 1642 | qs => { | ||
| 1643 | dry_run => "boolean", | ||
| 1644 | error_trace => "boolean", | ||
| 1645 | explain => "boolean", | ||
| 1646 | filter_path => "list", | ||
| 1647 | human => "boolean", | ||
| 1648 | master_timeout => "time", | ||
| 1649 | metric => "list", | ||
| 1650 | retry_failed => "boolean", | ||
| 1651 | timeout => "time", | ||
| 1652 | }, | ||
| 1653 | }, | ||
| 1654 | |||
| 1655 | 'cluster.state' => { | ||
| 1656 | doc => "cluster-state", | ||
| 1657 | parts => { index => { multi => 1 }, metric => { multi => 1 } }, | ||
| 1658 | paths => [ | ||
| 1659 | [ { index => 3, metric => 2 }, "_cluster", | ||
| 1660 | "state", "{metric}", | ||
| 1661 | "{index}", | ||
| 1662 | ], | ||
| 1663 | [ { metric => 2 }, "_cluster", "state", "{metric}" ], | ||
| 1664 | [ {}, "_cluster", "state" ], | ||
| 1665 | ], | ||
| 1666 | qs => { | ||
| 1667 | allow_no_indices => "boolean", | ||
| 1668 | error_trace => "boolean", | ||
| 1669 | expand_wildcards => "enum", | ||
| 1670 | filter_path => "list", | ||
| 1671 | flat_settings => "boolean", | ||
| 1672 | human => "boolean", | ||
| 1673 | ignore_unavailable => "boolean", | ||
| 1674 | local => "boolean", | ||
| 1675 | master_timeout => "time", | ||
| 1676 | wait_for_metadata_version => "number", | ||
| 1677 | wait_for_timeout => "time", | ||
| 1678 | }, | ||
| 1679 | }, | ||
| 1680 | |||
| 1681 | 'cluster.stats' => { | ||
| 1682 | doc => "cluster-stats", | ||
| 1683 | parts => { node_id => { multi => 1 } }, | ||
| 1684 | paths => [ | ||
| 1685 | [ { node_id => 3 }, "_cluster", "stats", "nodes", "{node_id}" ], | ||
| 1686 | [ {}, "_cluster", "stats" ], | ||
| 1687 | ], | ||
| 1688 | qs => { | ||
| 1689 | error_trace => "boolean", | ||
| 1690 | filter_path => "list", | ||
| 1691 | flat_settings => "boolean", | ||
| 1692 | human => "boolean", | ||
| 1693 | timeout => "time", | ||
| 1694 | }, | ||
| 1695 | }, | ||
| 1696 | |||
| 1697 | 'ilm.delete_lifecycle' => { | ||
| 1698 | doc => "ilm-delete-lifecycle", | ||
| 1699 | method => "DELETE", | ||
| 1700 | parts => { policy => {} }, | ||
| 1701 | paths => [ [ { policy => 2 }, "_ilm", "policy", "{policy}" ] ], | ||
| 1702 | qs => { | ||
| 1703 | error_trace => "boolean", | ||
| 1704 | filter_path => "list", | ||
| 1705 | human => "boolean" | ||
| 1706 | }, | ||
| 1707 | }, | ||
| 1708 | |||
| 1709 | 'ilm.explain_lifecycle' => { | ||
| 1710 | doc => "ilm-explain-lifecycle", | ||
| 1711 | parts => { index => {} }, | ||
| 1712 | paths => [ [ { index => 0 }, "{index}", "_ilm", "explain" ] ], | ||
| 1713 | qs => { | ||
| 1714 | error_trace => "boolean", | ||
| 1715 | filter_path => "list", | ||
| 1716 | human => "boolean" | ||
| 1717 | }, | ||
| 1718 | }, | ||
| 1719 | |||
| 1720 | 'ilm.get_lifecycle' => { | ||
| 1721 | doc => "ilm-get-lifecycle", | ||
| 1722 | parts => { policy => {} }, | ||
| 1723 | paths => [ | ||
| 1724 | [ { policy => 2 }, "_ilm", "policy", "{policy}" ], | ||
| 1725 | [ {}, "_ilm", "policy" ], | ||
| 1726 | ], | ||
| 1727 | qs => { | ||
| 1728 | error_trace => "boolean", | ||
| 1729 | filter_path => "list", | ||
| 1730 | human => "boolean" | ||
| 1731 | }, | ||
| 1732 | }, | ||
| 1733 | |||
| 1734 | 'ilm.get_status' => { | ||
| 1735 | doc => "ilm-get-status", | ||
| 1736 | parts => {}, | ||
| 1737 | paths => [ [ {}, "_ilm", "status" ] ], | ||
| 1738 | qs => { | ||
| 1739 | error_trace => "boolean", | ||
| 1740 | filter_path => "list", | ||
| 1741 | human => "boolean" | ||
| 1742 | }, | ||
| 1743 | }, | ||
| 1744 | |||
| 1745 | 'ilm.move_to_step' => { | ||
| 1746 | body => {}, | ||
| 1747 | doc => "ilm-move-to-step", | ||
| 1748 | method => "POST", | ||
| 1749 | parts => { index => {} }, | ||
| 1750 | paths => [ [ { index => 2 }, "_ilm", "move", "{index}" ] ], | ||
| 1751 | qs => { | ||
| 1752 | error_trace => "boolean", | ||
| 1753 | filter_path => "list", | ||
| 1754 | human => "boolean" | ||
| 1755 | }, | ||
| 1756 | }, | ||
| 1757 | |||
| 1758 | 'ilm.put_lifecycle' => { | ||
| 1759 | body => {}, | ||
| 1760 | doc => "ilm-put-lifecycle", | ||
| 1761 | method => "PUT", | ||
| 1762 | parts => { policy => {} }, | ||
| 1763 | paths => [ [ { policy => 2 }, "_ilm", "policy", "{policy}" ] ], | ||
| 1764 | qs => { | ||
| 1765 | error_trace => "boolean", | ||
| 1766 | filter_path => "list", | ||
| 1767 | human => "boolean" | ||
| 1768 | }, | ||
| 1769 | }, | ||
| 1770 | |||
| 1771 | 'ilm.remove_policy' => { | ||
| 1772 | doc => "ilm-remove-policy", | ||
| 1773 | method => "POST", | ||
| 1774 | parts => { index => {} }, | ||
| 1775 | paths => [ [ { index => 0 }, "{index}", "_ilm", "remove" ] ], | ||
| 1776 | qs => { | ||
| 1777 | error_trace => "boolean", | ||
| 1778 | filter_path => "list", | ||
| 1779 | human => "boolean" | ||
| 1780 | }, | ||
| 1781 | }, | ||
| 1782 | |||
| 1783 | 'ilm.retry' => { | ||
| 1784 | doc => "ilm-retry-policy", | ||
| 1785 | method => "POST", | ||
| 1786 | parts => { index => {} }, | ||
| 1787 | paths => [ [ { index => 0 }, "{index}", "_ilm", "retry" ] ], | ||
| 1788 | qs => { | ||
| 1789 | error_trace => "boolean", | ||
| 1790 | filter_path => "list", | ||
| 1791 | human => "boolean" | ||
| 1792 | }, | ||
| 1793 | }, | ||
| 1794 | |||
| 1795 | 'ilm.start' => { | ||
| 1796 | doc => "ilm-start", | ||
| 1797 | method => "POST", | ||
| 1798 | parts => {}, | ||
| 1799 | paths => [ [ {}, "_ilm", "start" ] ], | ||
| 1800 | qs => { | ||
| 1801 | error_trace => "boolean", | ||
| 1802 | filter_path => "list", | ||
| 1803 | human => "boolean" | ||
| 1804 | }, | ||
| 1805 | }, | ||
| 1806 | |||
| 1807 | 'ilm.stop' => { | ||
| 1808 | doc => "ilm-stop", | ||
| 1809 | method => "POST", | ||
| 1810 | parts => {}, | ||
| 1811 | paths => [ [ {}, "_ilm", "stop" ] ], | ||
| 1812 | qs => { | ||
| 1813 | error_trace => "boolean", | ||
| 1814 | filter_path => "list", | ||
| 1815 | human => "boolean" | ||
| 1816 | }, | ||
| 1817 | }, | ||
| 1818 | |||
| 1819 | 'indices.analyze' => { | ||
| 1820 | body => {}, | ||
| 1821 | doc => "indices-analyze", | ||
| 1822 | parts => { index => {} }, | ||
| 1823 | paths => | ||
| 1824 | [ [ { index => 0 }, "{index}", "_analyze" ], [ {}, "_analyze" ] ], | ||
| 1825 | qs => { | ||
| 1826 | error_trace => "boolean", | ||
| 1827 | filter_path => "list", | ||
| 1828 | human => "boolean" | ||
| 1829 | }, | ||
| 1830 | }, | ||
| 1831 | |||
| 1832 | 'indices.clear_cache' => { | ||
| 1833 | doc => "indices-clearcache", | ||
| 1834 | method => "POST", | ||
| 1835 | parts => { index => { multi => 1 } }, | ||
| 1836 | paths => [ | ||
| 1837 | [ { index => 0 }, "{index}", "_cache", "clear" ], | ||
| 1838 | [ {}, "_cache", "clear" ], | ||
| 1839 | ], | ||
| 1840 | qs => { | ||
| 1841 | allow_no_indices => "boolean", | ||
| 1842 | error_trace => "boolean", | ||
| 1843 | expand_wildcards => "enum", | ||
| 1844 | fielddata => "boolean", | ||
| 1845 | fields => "list", | ||
| 1846 | filter_path => "list", | ||
| 1847 | human => "boolean", | ||
| 1848 | ignore_unavailable => "boolean", | ||
| 1849 | query => "boolean", | ||
| 1850 | request => "boolean", | ||
| 1851 | request_cache => "boolean", | ||
| 1852 | }, | ||
| 1853 | }, | ||
| 1854 | |||
| 1855 | 'indices.close' => { | ||
| 1856 | doc => "indices-open-close", | ||
| 1857 | method => "POST", | ||
| 1858 | parts => { index => { multi => 1, required => 1 } }, | ||
| 1859 | paths => [ [ { index => 0 }, "{index}", "_close" ] ], | ||
| 1860 | qs => { | ||
| 1861 | allow_no_indices => "boolean", | ||
| 1862 | error_trace => "boolean", | ||
| 1863 | expand_wildcards => "enum", | ||
| 1864 | filter_path => "list", | ||
| 1865 | human => "boolean", | ||
| 1866 | ignore_unavailable => "boolean", | ||
| 1867 | master_timeout => "time", | ||
| 1868 | timeout => "time", | ||
| 1869 | }, | ||
| 1870 | }, | ||
| 1871 | |||
| 1872 | 'indices.create' => { | ||
| 1873 | body => {}, | ||
| 1874 | doc => "indices-create-index", | ||
| 1875 | method => "PUT", | ||
| 1876 | parts => { index => { required => 1 } }, | ||
| 1877 | paths => [ [ { index => 0 }, "{index}" ] ], | ||
| 1878 | qs => { | ||
| 1879 | error_trace => "boolean", | ||
| 1880 | filter_path => "list", | ||
| 1881 | human => "boolean", | ||
| 1882 | include_type_name => "boolean", | ||
| 1883 | master_timeout => "time", | ||
| 1884 | timeout => "time", | ||
| 1885 | update_all_types => "boolean", | ||
| 1886 | wait_for_active_shards => "string", | ||
| 1887 | }, | ||
| 1888 | }, | ||
| 1889 | |||
| 1890 | 'indices.delete' => { | ||
| 1891 | doc => "indices-delete-index", | ||
| 1892 | method => "DELETE", | ||
| 1893 | parts => { index => { multi => 1, required => 1 } }, | ||
| 1894 | paths => [ [ { index => 0 }, "{index}" ] ], | ||
| 1895 | qs => { | ||
| 1896 | allow_no_indices => "boolean", | ||
| 1897 | error_trace => "boolean", | ||
| 1898 | expand_wildcards => "enum", | ||
| 1899 | filter_path => "list", | ||
| 1900 | human => "boolean", | ||
| 1901 | ignore_unavailable => "boolean", | ||
| 1902 | master_timeout => "time", | ||
| 1903 | timeout => "time", | ||
| 1904 | }, | ||
| 1905 | }, | ||
| 1906 | |||
| 1907 | 'indices.delete_alias' => { | ||
| 1908 | doc => "indices-aliases", | ||
| 1909 | method => "DELETE", | ||
| 1910 | parts => { | ||
| 1911 | index => { multi => 1, required => 1 }, | ||
| 1912 | name => { multi => 1, required => 1 }, | ||
| 1913 | }, | ||
| 1914 | paths => | ||
| 1915 | [ [ { index => 0, name => 2 }, "{index}", "_alias", "{name}" ] ], | ||
| 1916 | qs => { | ||
| 1917 | error_trace => "boolean", | ||
| 1918 | filter_path => "list", | ||
| 1919 | human => "boolean", | ||
| 1920 | master_timeout => "time", | ||
| 1921 | timeout => "time", | ||
| 1922 | }, | ||
| 1923 | }, | ||
| 1924 | |||
| 1925 | 'indices.delete_template' => { | ||
| 1926 | doc => "indices-templates", | ||
| 1927 | method => "DELETE", | ||
| 1928 | parts => { name => { required => 1 } }, | ||
| 1929 | paths => [ [ { name => 1 }, "_template", "{name}" ] ], | ||
| 1930 | qs => { | ||
| 1931 | error_trace => "boolean", | ||
| 1932 | filter_path => "list", | ||
| 1933 | human => "boolean", | ||
| 1934 | master_timeout => "time", | ||
| 1935 | timeout => "time", | ||
| 1936 | }, | ||
| 1937 | }, | ||
| 1938 | |||
| 1939 | 'indices.exists' => { | ||
| 1940 | doc => "indices-exists", | ||
| 1941 | method => "HEAD", | ||
| 1942 | parts => { index => { multi => 1, required => 1 } }, | ||
| 1943 | paths => [ [ { index => 0 }, "{index}" ] ], | ||
| 1944 | qs => { | ||
| 1945 | allow_no_indices => "boolean", | ||
| 1946 | error_trace => "boolean", | ||
| 1947 | expand_wildcards => "enum", | ||
| 1948 | filter_path => "list", | ||
| 1949 | flat_settings => "boolean", | ||
| 1950 | human => "boolean", | ||
| 1951 | ignore_unavailable => "boolean", | ||
| 1952 | include_defaults => "boolean", | ||
| 1953 | local => "boolean", | ||
| 1954 | include_type_name => "boolean", | ||
| 1955 | }, | ||
| 1956 | }, | ||
| 1957 | |||
| 1958 | 'indices.exists_alias' => { | ||
| 1959 | doc => "indices-aliases", | ||
| 1960 | method => "HEAD", | ||
| 1961 | parts => { | ||
| 1962 | index => { multi => 1 }, | ||
| 1963 | name => { multi => 1, required => 1 } | ||
| 1964 | }, | ||
| 1965 | paths => [ | ||
| 1966 | [ { index => 0, name => 2 }, "{index}", "_alias", "{name}" ], | ||
| 1967 | [ { name => 1 }, "_alias", "{name}" ], | ||
| 1968 | ], | ||
| 1969 | qs => { | ||
| 1970 | allow_no_indices => "boolean", | ||
| 1971 | error_trace => "boolean", | ||
| 1972 | expand_wildcards => "enum", | ||
| 1973 | filter_path => "list", | ||
| 1974 | human => "boolean", | ||
| 1975 | ignore_unavailable => "boolean", | ||
| 1976 | local => "boolean", | ||
| 1977 | }, | ||
| 1978 | }, | ||
| 1979 | |||
| 1980 | 'indices.exists_template' => { | ||
| 1981 | doc => "indices-templates", | ||
| 1982 | method => "HEAD", | ||
| 1983 | parts => { name => { multi => 1, required => 1 } }, | ||
| 1984 | paths => [ [ { name => 1 }, "_template", "{name}" ] ], | ||
| 1985 | qs => { | ||
| 1986 | error_trace => "boolean", | ||
| 1987 | filter_path => "list", | ||
| 1988 | flat_settings => "boolean", | ||
| 1989 | human => "boolean", | ||
| 1990 | local => "boolean", | ||
| 1991 | master_timeout => "time", | ||
| 1992 | }, | ||
| 1993 | }, | ||
| 1994 | |||
| 1995 | 'indices.exists_type' => { | ||
| 1996 | doc => "indices-types-exists", | ||
| 1997 | method => "HEAD", | ||
| 1998 | parts => { | ||
| 1999 | index => { multi => 1, required => 1 }, | ||
| 2000 | type => { multi => 1, required => 1 }, | ||
| 2001 | }, | ||
| 2002 | paths => [ | ||
| 2003 | [ { index => 0, type => 2 }, "{index}", "_mapping", "{type}" ] | ||
| 2004 | ], | ||
| 2005 | qs => { | ||
| 2006 | allow_no_indices => "boolean", | ||
| 2007 | error_trace => "boolean", | ||
| 2008 | expand_wildcards => "enum", | ||
| 2009 | filter_path => "list", | ||
| 2010 | human => "boolean", | ||
| 2011 | ignore_unavailable => "boolean", | ||
| 2012 | local => "boolean", | ||
| 2013 | }, | ||
| 2014 | }, | ||
| 2015 | |||
| 2016 | 'indices.flush' => { | ||
| 2017 | doc => "indices-flush", | ||
| 2018 | method => "POST", | ||
| 2019 | parts => { index => { multi => 1 } }, | ||
| 2020 | paths => | ||
| 2021 | [ [ { index => 0 }, "{index}", "_flush" ], [ {}, "_flush" ] ], | ||
| 2022 | qs => { | ||
| 2023 | allow_no_indices => "boolean", | ||
| 2024 | error_trace => "boolean", | ||
| 2025 | expand_wildcards => "enum", | ||
| 2026 | filter_path => "list", | ||
| 2027 | force => "boolean", | ||
| 2028 | human => "boolean", | ||
| 2029 | ignore_unavailable => "boolean", | ||
| 2030 | wait_if_ongoing => "boolean", | ||
| 2031 | }, | ||
| 2032 | }, | ||
| 2033 | |||
| 2034 | 'indices.flush_synced' => { | ||
| 2035 | doc => "indices-synced-flush", | ||
| 2036 | method => "POST", | ||
| 2037 | parts => { index => { multi => 1 } }, | ||
| 2038 | paths => [ | ||
| 2039 | [ { index => 0 }, "{index}", "_flush", "synced" ], | ||
| 2040 | [ {}, "_flush", "synced" ], | ||
| 2041 | ], | ||
| 2042 | qs => { | ||
| 2043 | allow_no_indices => "boolean", | ||
| 2044 | error_trace => "boolean", | ||
| 2045 | expand_wildcards => "enum", | ||
| 2046 | filter_path => "list", | ||
| 2047 | human => "boolean", | ||
| 2048 | ignore_unavailable => "boolean", | ||
| 2049 | }, | ||
| 2050 | }, | ||
| 2051 | |||
| 2052 | 'indices.forcemerge' => { | ||
| 2053 | doc => "indices-forcemerge", | ||
| 2054 | method => "POST", | ||
| 2055 | parts => { index => { multi => 1 } }, | ||
| 2056 | paths => [ | ||
| 2057 | [ { index => 0 }, "{index}", "_forcemerge" ], | ||
| 2058 | [ {}, "_forcemerge" ], | ||
| 2059 | ], | ||
| 2060 | qs => { | ||
| 2061 | allow_no_indices => "boolean", | ||
| 2062 | error_trace => "boolean", | ||
| 2063 | expand_wildcards => "enum", | ||
| 2064 | filter_path => "list", | ||
| 2065 | flush => "boolean", | ||
| 2066 | human => "boolean", | ||
| 2067 | ignore_unavailable => "boolean", | ||
| 2068 | max_num_segments => "number", | ||
| 2069 | only_expunge_deletes => "boolean", | ||
| 2070 | }, | ||
| 2071 | }, | ||
| 2072 | |||
| 2073 | 'indices.freeze' => { | ||
| 2074 | doc => "frozen", | ||
| 2075 | method => "POST", | ||
| 2076 | parts => { index => { required => 1 } }, | ||
| 2077 | paths => [ [ { index => 0 }, "{index}", "_freeze" ] ], | ||
| 2078 | qs => { | ||
| 2079 | allow_no_indices => "boolean", | ||
| 2080 | error_trace => "boolean", | ||
| 2081 | expand_wildcards => "enum", | ||
| 2082 | filter_path => "list", | ||
| 2083 | human => "boolean", | ||
| 2084 | ignore_unavailable => "boolean", | ||
| 2085 | master_timeout => "time", | ||
| 2086 | timeout => "time", | ||
| 2087 | wait_for_active_shards => "string", | ||
| 2088 | }, | ||
| 2089 | }, | ||
| 2090 | |||
| 2091 | 'indices.get' => { | ||
| 2092 | doc => "indices-get-index", | ||
| 2093 | parts => { index => { multi => 1, required => 1 } }, | ||
| 2094 | paths => [ [ { index => 0 }, "{index}" ] ], | ||
| 2095 | qs => { | ||
| 2096 | allow_no_indices => "boolean", | ||
| 2097 | error_trace => "boolean", | ||
| 2098 | expand_wildcards => "enum", | ||
| 2099 | filter_path => "list", | ||
| 2100 | flat_settings => "boolean", | ||
| 2101 | human => "boolean", | ||
| 2102 | ignore_unavailable => "boolean", | ||
| 2103 | include_defaults => "boolean", | ||
| 2104 | include_type_name => "boolean", | ||
| 2105 | local => "boolean", | ||
| 2106 | master_timeout => "time", | ||
| 2107 | }, | ||
| 2108 | }, | ||
| 2109 | |||
| 2110 | 'indices.get_alias' => { | ||
| 2111 | doc => "indices-aliases", | ||
| 2112 | parts => { index => { multi => 1 }, name => { multi => 1 } }, | ||
| 2113 | paths => [ | ||
| 2114 | [ { index => 0, name => 2 }, "{index}", "_alias", "{name}" ], | ||
| 2115 | [ { index => 0 }, "{index}", "_alias" ], | ||
| 2116 | [ { name => 1 }, "_alias", "{name}" ], | ||
| 2117 | [ {}, "_alias" ], | ||
| 2118 | ], | ||
| 2119 | qs => { | ||
| 2120 | allow_no_indices => "boolean", | ||
| 2121 | error_trace => "boolean", | ||
| 2122 | expand_wildcards => "enum", | ||
| 2123 | filter_path => "list", | ||
| 2124 | human => "boolean", | ||
| 2125 | ignore_unavailable => "boolean", | ||
| 2126 | local => "boolean", | ||
| 2127 | }, | ||
| 2128 | }, | ||
| 2129 | |||
| 2130 | 'indices.get_field_mapping' => { | ||
| 2131 | doc => "indices-get-field-mapping", | ||
| 2132 | parts => { | ||
| 2133 | fields => { multi => 1, required => 1 }, | ||
| 2134 | index => { multi => 1 }, | ||
| 2135 | type => { multi => 1 }, | ||
| 2136 | }, | ||
| 2137 | paths => [ | ||
| 2138 | [ { fields => 4, index => 0, type => 2 }, "{index}", | ||
| 2139 | "_mapping", "{type}", | ||
| 2140 | "field", "{fields}", | ||
| 2141 | ], | ||
| 2142 | [ { fields => 3, index => 0 }, "{index}", | ||
| 2143 | "_mapping", "field", | ||
| 2144 | "{fields}", | ||
| 2145 | ], | ||
| 2146 | [ { fields => 3, type => 1 }, "_mapping", | ||
| 2147 | "{type}", "field", | ||
| 2148 | "{fields}", | ||
| 2149 | ], | ||
| 2150 | [ { fields => 2 }, "_mapping", "field", "{fields}" ], | ||
| 2151 | ], | ||
| 2152 | qs => { | ||
| 2153 | allow_no_indices => "boolean", | ||
| 2154 | error_trace => "boolean", | ||
| 2155 | expand_wildcards => "enum", | ||
| 2156 | filter_path => "list", | ||
| 2157 | human => "boolean", | ||
| 2158 | ignore_unavailable => "boolean", | ||
| 2159 | include_defaults => "boolean", | ||
| 2160 | include_type_name => "boolean", | ||
| 2161 | local => "boolean", | ||
| 2162 | }, | ||
| 2163 | }, | ||
| 2164 | |||
| 2165 | 'indices.get_mapping' => { | ||
| 2166 | doc => "indices-get-mapping", | ||
| 2167 | parts => { index => { multi => 1 }, type => { multi => 1 } }, | ||
| 2168 | paths => [ | ||
| 2169 | [ { index => 0, type => 2 }, "{index}", "_mapping", "{type}" ], | ||
| 2170 | [ { index => 0 }, "{index}", "_mapping" ], | ||
| 2171 | [ { type => 1 }, "_mapping", "{type}" ], | ||
| 2172 | [ {}, "_mapping" ], | ||
| 2173 | ], | ||
| 2174 | qs => { | ||
| 2175 | allow_no_indices => "boolean", | ||
| 2176 | error_trace => "boolean", | ||
| 2177 | expand_wildcards => "enum", | ||
| 2178 | filter_path => "list", | ||
| 2179 | human => "boolean", | ||
| 2180 | ignore_unavailable => "boolean", | ||
| 2181 | include_type_name => "boolean", | ||
| 2182 | local => "boolean", | ||
| 2183 | master_timeout => "time", | ||
| 2184 | }, | ||
| 2185 | }, | ||
| 2186 | |||
| 2187 | 'indices.get_settings' => { | ||
| 2188 | doc => "indices-get-settings", | ||
| 2189 | parts => { index => { multi => 1 }, name => { multi => 1 } }, | ||
| 2190 | paths => [ | ||
| 2191 | [ { index => 0, name => 2 }, "{index}", "_settings", "{name}" ], | ||
| 2192 | [ { index => 0 }, "{index}", "_settings" ], | ||
| 2193 | [ { name => 1 }, "_settings", "{name}" ], | ||
| 2194 | [ {}, "_settings" ], | ||
| 2195 | ], | ||
| 2196 | qs => { | ||
| 2197 | allow_no_indices => "boolean", | ||
| 2198 | error_trace => "boolean", | ||
| 2199 | expand_wildcards => "enum", | ||
| 2200 | filter_path => "list", | ||
| 2201 | flat_settings => "boolean", | ||
| 2202 | human => "boolean", | ||
| 2203 | ignore_unavailable => "boolean", | ||
| 2204 | include_defaults => "boolean", | ||
| 2205 | local => "boolean", | ||
| 2206 | master_timeout => "time", | ||
| 2207 | }, | ||
| 2208 | }, | ||
| 2209 | |||
| 2210 | 'indices.get_template' => { | ||
| 2211 | doc => "indices-templates", | ||
| 2212 | parts => { name => { multi => 1 } }, | ||
| 2213 | paths => | ||
| 2214 | [ [ { name => 1 }, "_template", "{name}" ], [ {}, "_template" ] ], | ||
| 2215 | qs => { | ||
| 2216 | error_trace => "boolean", | ||
| 2217 | filter_path => "list", | ||
| 2218 | flat_settings => "boolean", | ||
| 2219 | human => "boolean", | ||
| 2220 | include_type_name => "boolean", | ||
| 2221 | local => "boolean", | ||
| 2222 | master_timeout => "time", | ||
| 2223 | }, | ||
| 2224 | }, | ||
| 2225 | |||
| 2226 | 'indices.get_upgrade' => { | ||
| 2227 | doc => "indices-upgrade", | ||
| 2228 | parts => { index => { multi => 1 } }, | ||
| 2229 | paths => | ||
| 2230 | [ [ { index => 0 }, "{index}", "_upgrade" ], [ {}, "_upgrade" ] ], | ||
| 2231 | qs => { | ||
| 2232 | allow_no_indices => "boolean", | ||
| 2233 | error_trace => "boolean", | ||
| 2234 | expand_wildcards => "enum", | ||
| 2235 | filter_path => "list", | ||
| 2236 | human => "boolean", | ||
| 2237 | ignore_unavailable => "boolean", | ||
| 2238 | }, | ||
| 2239 | }, | ||
| 2240 | |||
| 2241 | 'indices.open' => { | ||
| 2242 | doc => "indices-open-close", | ||
| 2243 | method => "POST", | ||
| 2244 | parts => { index => { multi => 1, required => 1 } }, | ||
| 2245 | paths => [ [ { index => 0 }, "{index}", "_open" ] ], | ||
| 2246 | qs => { | ||
| 2247 | allow_no_indices => "boolean", | ||
| 2248 | error_trace => "boolean", | ||
| 2249 | expand_wildcards => "enum", | ||
| 2250 | filter_path => "list", | ||
| 2251 | human => "boolean", | ||
| 2252 | ignore_unavailable => "boolean", | ||
| 2253 | master_timeout => "time", | ||
| 2254 | timeout => "time", | ||
| 2255 | wait_for_active_shards => "string", | ||
| 2256 | }, | ||
| 2257 | }, | ||
| 2258 | |||
| 2259 | 'indices.put_alias' => { | ||
| 2260 | body => {}, | ||
| 2261 | doc => "indices-aliases", | ||
| 2262 | method => "PUT", | ||
| 2263 | parts => { | ||
| 2264 | index => { multi => 1, required => 1 }, | ||
| 2265 | name => { required => 1 } | ||
| 2266 | }, | ||
| 2267 | paths => | ||
| 2268 | [ [ { index => 0, name => 2 }, "{index}", "_alias", "{name}" ] ], | ||
| 2269 | qs => { | ||
| 2270 | error_trace => "boolean", | ||
| 2271 | filter_path => "list", | ||
| 2272 | human => "boolean", | ||
| 2273 | master_timeout => "time", | ||
| 2274 | timeout => "time", | ||
| 2275 | }, | ||
| 2276 | }, | ||
| 2277 | |||
| 2278 | 'indices.put_mapping' => { | ||
| 2279 | body => { required => 1 }, | ||
| 2280 | doc => "indices-put-mapping", | ||
| 2281 | method => "PUT", | ||
| 2282 | parts => { index => { multi => 1 }, type => {} }, | ||
| 2283 | paths => [ | ||
| 2284 | [ { index => 0, type => 2 }, "{index}", "_mapping", "{type}" ], | ||
| 2285 | [ { index => 0 }, "{index}", "_mapping" ], | ||
| 2286 | [ { type => 1 }, "_mapping", "{type}" ], | ||
| 2287 | ], | ||
| 2288 | qs => { | ||
| 2289 | allow_no_indices => "boolean", | ||
| 2290 | error_trace => "boolean", | ||
| 2291 | expand_wildcards => "enum", | ||
| 2292 | filter_path => "list", | ||
| 2293 | human => "boolean", | ||
| 2294 | ignore_unavailable => "boolean", | ||
| 2295 | include_type_name => "boolean", | ||
| 2296 | master_timeout => "time", | ||
| 2297 | timeout => "time", | ||
| 2298 | update_all_types => "boolean", | ||
| 2299 | }, | ||
| 2300 | }, | ||
| 2301 | |||
| 2302 | 'indices.put_settings' => { | ||
| 2303 | body => { required => 1 }, | ||
| 2304 | doc => "indices-update-settings", | ||
| 2305 | method => "PUT", | ||
| 2306 | parts => { index => { multi => 1 } }, | ||
| 2307 | paths => [ | ||
| 2308 | [ { index => 0 }, "{index}", "_settings" ], | ||
| 2309 | [ {}, "_settings" ] | ||
| 2310 | ], | ||
| 2311 | qs => { | ||
| 2312 | allow_no_indices => "boolean", | ||
| 2313 | error_trace => "boolean", | ||
| 2314 | expand_wildcards => "enum", | ||
| 2315 | filter_path => "list", | ||
| 2316 | flat_settings => "boolean", | ||
| 2317 | human => "boolean", | ||
| 2318 | ignore_unavailable => "boolean", | ||
| 2319 | master_timeout => "time", | ||
| 2320 | preserve_existing => "boolean", | ||
| 2321 | timeout => "time", | ||
| 2322 | }, | ||
| 2323 | }, | ||
| 2324 | |||
| 2325 | 'indices.put_template' => { | ||
| 2326 | body => { required => 1 }, | ||
| 2327 | doc => "indices-templates", | ||
| 2328 | method => "PUT", | ||
| 2329 | parts => { name => { required => 1 } }, | ||
| 2330 | paths => [ [ { name => 1 }, "_template", "{name}" ] ], | ||
| 2331 | qs => { | ||
| 2332 | create => "boolean", | ||
| 2333 | error_trace => "boolean", | ||
| 2334 | filter_path => "list", | ||
| 2335 | flat_settings => "boolean", | ||
| 2336 | human => "boolean", | ||
| 2337 | include_type_name => "boolean", | ||
| 2338 | master_timeout => "time", | ||
| 2339 | order => "number", | ||
| 2340 | timeout => "time", | ||
| 2341 | }, | ||
| 2342 | }, | ||
| 2343 | |||
| 2344 | 'indices.recovery' => { | ||
| 2345 | doc => "indices-recovery", | ||
| 2346 | parts => { index => { multi => 1 } }, | ||
| 2347 | paths => [ | ||
| 2348 | [ { index => 0 }, "{index}", "_recovery" ], | ||
| 2349 | [ {}, "_recovery" ] | ||
| 2350 | ], | ||
| 2351 | qs => { | ||
| 2352 | active_only => "boolean", | ||
| 2353 | detailed => "boolean", | ||
| 2354 | error_trace => "boolean", | ||
| 2355 | filter_path => "list", | ||
| 2356 | human => "boolean", | ||
| 2357 | }, | ||
| 2358 | }, | ||
| 2359 | |||
| 2360 | 'indices.refresh' => { | ||
| 2361 | doc => "indices-refresh", | ||
| 2362 | method => "POST", | ||
| 2363 | parts => { index => { multi => 1 } }, | ||
| 2364 | paths => | ||
| 2365 | [ [ { index => 0 }, "{index}", "_refresh" ], [ {}, "_refresh" ] ], | ||
| 2366 | qs => { | ||
| 2367 | allow_no_indices => "boolean", | ||
| 2368 | error_trace => "boolean", | ||
| 2369 | expand_wildcards => "enum", | ||
| 2370 | filter_path => "list", | ||
| 2371 | human => "boolean", | ||
| 2372 | ignore_unavailable => "boolean", | ||
| 2373 | }, | ||
| 2374 | }, | ||
| 2375 | |||
| 2376 | 'indices.rollover' => { | ||
| 2377 | body => {}, | ||
| 2378 | doc => "indices-rollover-index", | ||
| 2379 | method => "POST", | ||
| 2380 | parts => { alias => { required => 1 }, new_index => {} }, | ||
| 2381 | paths => [ | ||
| 2382 | [ { alias => 0, new_index => 2 }, "{alias}", | ||
| 2383 | "_rollover", "{new_index}", | ||
| 2384 | ], | ||
| 2385 | [ { alias => 0 }, "{alias}", "_rollover" ], | ||
| 2386 | ], | ||
| 2387 | qs => { | ||
| 2388 | dry_run => "boolean", | ||
| 2389 | error_trace => "boolean", | ||
| 2390 | filter_path => "list", | ||
| 2391 | human => "boolean", | ||
| 2392 | include_type_name => "boolean", | ||
| 2393 | master_timeout => "time", | ||
| 2394 | timeout => "time", | ||
| 2395 | wait_for_active_shards => "string", | ||
| 2396 | }, | ||
| 2397 | }, | ||
| 2398 | |||
| 2399 | 'indices.segments' => { | ||
| 2400 | doc => "indices-segments", | ||
| 2401 | parts => { index => { multi => 1 } }, | ||
| 2402 | paths => [ | ||
| 2403 | [ { index => 0 }, "{index}", "_segments" ], | ||
| 2404 | [ {}, "_segments" ] | ||
| 2405 | ], | ||
| 2406 | qs => { | ||
| 2407 | allow_no_indices => "boolean", | ||
| 2408 | error_trace => "boolean", | ||
| 2409 | expand_wildcards => "enum", | ||
| 2410 | filter_path => "list", | ||
| 2411 | human => "boolean", | ||
| 2412 | ignore_unavailable => "boolean", | ||
| 2413 | verbose => "boolean", | ||
| 2414 | }, | ||
| 2415 | }, | ||
| 2416 | |||
| 2417 | 'indices.shard_stores' => { | ||
| 2418 | doc => "indices-shards-stores", | ||
| 2419 | parts => { index => { multi => 1 } }, | ||
| 2420 | paths => [ | ||
| 2421 | [ { index => 0 }, "{index}", "_shard_stores" ], | ||
| 2422 | [ {}, "_shard_stores" ], | ||
| 2423 | ], | ||
| 2424 | qs => { | ||
| 2425 | allow_no_indices => "boolean", | ||
| 2426 | error_trace => "boolean", | ||
| 2427 | expand_wildcards => "enum", | ||
| 2428 | filter_path => "list", | ||
| 2429 | human => "boolean", | ||
| 2430 | ignore_unavailable => "boolean", | ||
| 2431 | status => "list", | ||
| 2432 | }, | ||
| 2433 | }, | ||
| 2434 | |||
| 2435 | 'indices.shrink' => { | ||
| 2436 | body => {}, | ||
| 2437 | doc => "indices-shrink-index", | ||
| 2438 | method => "PUT", | ||
| 2439 | parts => { index => { required => 1 }, target => { required => 1 } }, | ||
| 2440 | paths => [ | ||
| 2441 | [ { index => 0, target => 2 }, "{index}", "_shrink", "{target}" ], | ||
| 2442 | ], | ||
| 2443 | qs => { | ||
| 2444 | copy_settings => "boolean", | ||
| 2445 | error_trace => "boolean", | ||
| 2446 | filter_path => "list", | ||
| 2447 | human => "boolean", | ||
| 2448 | master_timeout => "time", | ||
| 2449 | timeout => "time", | ||
| 2450 | wait_for_active_shards => "string", | ||
| 2451 | }, | ||
| 2452 | }, | ||
| 2453 | |||
| 2454 | 'indices.split' => { | ||
| 2455 | body => {}, | ||
| 2456 | doc => "indices-split-index", | ||
| 2457 | method => "PUT", | ||
| 2458 | parts => { index => { required => 1 }, target => { required => 1 } }, | ||
| 2459 | paths => [ | ||
| 2460 | [ { index => 0, target => 2 }, "{index}", "_split", "{target}" ], | ||
| 2461 | ], | ||
| 2462 | qs => { | ||
| 2463 | copy_settings => "boolean", | ||
| 2464 | error_trace => "boolean", | ||
| 2465 | filter_path => "list", | ||
| 2466 | human => "boolean", | ||
| 2467 | master_timeout => "time", | ||
| 2468 | timeout => "time", | ||
| 2469 | wait_for_active_shards => "string", | ||
| 2470 | }, | ||
| 2471 | }, | ||
| 2472 | |||
| 2473 | 'indices.stats' => { | ||
| 2474 | doc => "indices-stats", | ||
| 2475 | parts => { index => { multi => 1 }, metric => { multi => 1 } }, | ||
| 2476 | paths => [ | ||
| 2477 | [ { index => 0, metric => 2 }, "{index}", "_stats", "{metric}" ], | ||
| 2478 | [ { index => 0 }, "{index}", "_stats" ], | ||
| 2479 | [ { metric => 1 }, "_stats", "{metric}" ], | ||
| 2480 | [ {}, "_stats" ], | ||
| 2481 | ], | ||
| 2482 | qs => { | ||
| 2483 | completion_fields => "list", | ||
| 2484 | error_trace => "boolean", | ||
| 2485 | fielddata_fields => "list", | ||
| 2486 | fields => "list", | ||
| 2487 | filter_path => "list", | ||
| 2488 | groups => "list", | ||
| 2489 | human => "boolean", | ||
| 2490 | include_segment_file_sizes => "boolean", | ||
| 2491 | level => "enum", | ||
| 2492 | types => "list", | ||
| 2493 | }, | ||
| 2494 | }, | ||
| 2495 | |||
| 2496 | 'indices.unfreeze' => { | ||
| 2497 | doc => "frozen", | ||
| 2498 | method => "POST", | ||
| 2499 | parts => { index => { required => 1 } }, | ||
| 2500 | paths => [ [ { index => 0 }, "{index}", "_unfreeze" ] ], | ||
| 2501 | qs => { | ||
| 2502 | allow_no_indices => "boolean", | ||
| 2503 | error_trace => "boolean", | ||
| 2504 | expand_wildcards => "enum", | ||
| 2505 | filter_path => "list", | ||
| 2506 | human => "boolean", | ||
| 2507 | ignore_unavailable => "boolean", | ||
| 2508 | master_timeout => "time", | ||
| 2509 | timeout => "time", | ||
| 2510 | wait_for_active_shards => "string", | ||
| 2511 | }, | ||
| 2512 | }, | ||
| 2513 | |||
| 2514 | 'indices.update_aliases' => { | ||
| 2515 | body => { required => 1 }, | ||
| 2516 | doc => "indices-aliases", | ||
| 2517 | method => "POST", | ||
| 2518 | parts => {}, | ||
| 2519 | paths => [ [ {}, "_aliases" ] ], | ||
| 2520 | qs => { | ||
| 2521 | error_trace => "boolean", | ||
| 2522 | filter_path => "list", | ||
| 2523 | human => "boolean", | ||
| 2524 | master_timeout => "time", | ||
| 2525 | timeout => "time", | ||
| 2526 | }, | ||
| 2527 | }, | ||
| 2528 | |||
| 2529 | 'indices.upgrade' => { | ||
| 2530 | doc => "indices-upgrade", | ||
| 2531 | method => "POST", | ||
| 2532 | parts => { index => { multi => 1 } }, | ||
| 2533 | paths => | ||
| 2534 | [ [ { index => 0 }, "{index}", "_upgrade" ], [ {}, "_upgrade" ] ], | ||
| 2535 | qs => { | ||
| 2536 | allow_no_indices => "boolean", | ||
| 2537 | error_trace => "boolean", | ||
| 2538 | expand_wildcards => "enum", | ||
| 2539 | filter_path => "list", | ||
| 2540 | human => "boolean", | ||
| 2541 | ignore_unavailable => "boolean", | ||
| 2542 | only_ancient_segments => "boolean", | ||
| 2543 | wait_for_completion => "boolean", | ||
| 2544 | }, | ||
| 2545 | }, | ||
| 2546 | |||
| 2547 | 'indices.validate_query' => { | ||
| 2548 | body => {}, | ||
| 2549 | doc => "search-validate", | ||
| 2550 | parts => { index => { multi => 1 }, type => { multi => 1 } }, | ||
| 2551 | paths => [ | ||
| 2552 | [ { index => 0, type => 1 }, "{index}", | ||
| 2553 | "{type}", "_validate", | ||
| 2554 | "query", | ||
| 2555 | ], | ||
| 2556 | [ { index => 0 }, "{index}", "_validate", "query" ], | ||
| 2557 | [ {}, "_validate", "query" ], | ||
| 2558 | ], | ||
| 2559 | qs => { | ||
| 2560 | all_shards => "boolean", | ||
| 2561 | allow_no_indices => "boolean", | ||
| 2562 | analyze_wildcard => "boolean", | ||
| 2563 | analyzer => "string", | ||
| 2564 | default_operator => "enum", | ||
| 2565 | df => "string", | ||
| 2566 | error_trace => "boolean", | ||
| 2567 | expand_wildcards => "enum", | ||
| 2568 | explain => "boolean", | ||
| 2569 | filter_path => "list", | ||
| 2570 | human => "boolean", | ||
| 2571 | ignore_unavailable => "boolean", | ||
| 2572 | lenient => "boolean", | ||
| 2573 | q => "string", | ||
| 2574 | rewrite => "boolean", | ||
| 2575 | }, | ||
| 2576 | }, | ||
| 2577 | |||
| 2578 | 'ingest.delete_pipeline' => { | ||
| 2579 | doc => "delete-pipeline-api", | ||
| 2580 | method => "DELETE", | ||
| 2581 | parts => { id => { required => 1 } }, | ||
| 2582 | paths => [ [ { id => 2 }, "_ingest", "pipeline", "{id}" ] ], | ||
| 2583 | qs => { | ||
| 2584 | error_trace => "boolean", | ||
| 2585 | filter_path => "list", | ||
| 2586 | human => "boolean", | ||
| 2587 | master_timeout => "time", | ||
| 2588 | timeout => "time", | ||
| 2589 | }, | ||
| 2590 | }, | ||
| 2591 | |||
| 2592 | 'ingest.get_pipeline' => { | ||
| 2593 | doc => "get-pipeline-api", | ||
| 2594 | parts => { id => {} }, | ||
| 2595 | paths => [ | ||
| 2596 | [ { id => 2 }, "_ingest", "pipeline", "{id}" ], | ||
| 2597 | [ {}, "_ingest", "pipeline" ], | ||
| 2598 | ], | ||
| 2599 | qs => { | ||
| 2600 | error_trace => "boolean", | ||
| 2601 | filter_path => "list", | ||
| 2602 | human => "boolean", | ||
| 2603 | master_timeout => "time", | ||
| 2604 | }, | ||
| 2605 | }, | ||
| 2606 | |||
| 2607 | 'ingest.processor_grok' => { | ||
| 2608 | doc => "", | ||
| 2609 | parts => {}, | ||
| 2610 | paths => [ [ {}, "_ingest", "processor", "grok" ] ], | ||
| 2611 | qs => { | ||
| 2612 | error_trace => "boolean", | ||
| 2613 | filter_path => "list", | ||
| 2614 | human => "boolean" | ||
| 2615 | }, | ||
| 2616 | }, | ||
| 2617 | |||
| 2618 | 'ingest.put_pipeline' => { | ||
| 2619 | body => { required => 1 }, | ||
| 2620 | doc => "put-pipeline-api", | ||
| 2621 | method => "PUT", | ||
| 2622 | parts => { id => { required => 1 } }, | ||
| 2623 | paths => [ [ { id => 2 }, "_ingest", "pipeline", "{id}" ] ], | ||
| 2624 | qs => { | ||
| 2625 | error_trace => "boolean", | ||
| 2626 | filter_path => "list", | ||
| 2627 | human => "boolean", | ||
| 2628 | master_timeout => "time", | ||
| 2629 | timeout => "time", | ||
| 2630 | }, | ||
| 2631 | }, | ||
| 2632 | |||
| 2633 | 'ingest.simulate' => { | ||
| 2634 | body => { required => 1 }, | ||
| 2635 | doc => "simulate-pipeline-api", | ||
| 2636 | parts => { id => {} }, | ||
| 2637 | paths => [ | ||
| 2638 | [ { id => 2 }, "_ingest", "pipeline", "{id}", "_simulate" ], | ||
| 2639 | [ {}, "_ingest", "pipeline", "_simulate" ], | ||
| 2640 | ], | ||
| 2641 | qs => { | ||
| 2642 | error_trace => "boolean", | ||
| 2643 | filter_path => "list", | ||
| 2644 | human => "boolean", | ||
| 2645 | verbose => "boolean", | ||
| 2646 | }, | ||
| 2647 | }, | ||
| 2648 | |||
| 2649 | 'nodes.hot_threads' => { | ||
| 2650 | doc => "cluster-nodes-hot-threads", | ||
| 2651 | parts => { node_id => { multi => 1 } }, | ||
| 2652 | paths => [ | ||
| 2653 | [ { node_id => 1 }, "_nodes", "{node_id}", "hot_threads" ], | ||
| 2654 | [ {}, "_nodes", "hot_threads" ], | ||
| 2655 | ], | ||
| 2656 | qs => { | ||
| 2657 | error_trace => "boolean", | ||
| 2658 | filter_path => "list", | ||
| 2659 | human => "boolean", | ||
| 2660 | ignore_idle_threads => "boolean", | ||
| 2661 | interval => "time", | ||
| 2662 | snapshots => "number", | ||
| 2663 | threads => "number", | ||
| 2664 | timeout => "time", | ||
| 2665 | type => "enum", | ||
| 2666 | }, | ||
| 2667 | }, | ||
| 2668 | |||
| 2669 | 'nodes.info' => { | ||
| 2670 | doc => "cluster-nodes-info", | ||
| 2671 | parts => { metric => { multi => 1 }, node_id => { multi => 1 } }, | ||
| 2672 | paths => [ | ||
| 2673 | [ { metric => 2, node_id => 1 }, "_nodes", | ||
| 2674 | "{node_id}", "{metric}", | ||
| 2675 | ], | ||
| 2676 | [ { metric => 1 }, "_nodes", "{metric}" ], | ||
| 2677 | [ { node_id => 1 }, "_nodes", "{node_id}" ], | ||
| 2678 | [ {}, "_nodes" ], | ||
| 2679 | ], | ||
| 2680 | qs => { | ||
| 2681 | error_trace => "boolean", | ||
| 2682 | filter_path => "list", | ||
| 2683 | flat_settings => "boolean", | ||
| 2684 | human => "boolean", | ||
| 2685 | timeout => "time", | ||
| 2686 | }, | ||
| 2687 | }, | ||
| 2688 | |||
| 2689 | 'nodes.reload_secure_settings' => { | ||
| 2690 | doc => "", | ||
| 2691 | method => "POST", | ||
| 2692 | parts => { node_id => { multi => 1 } }, | ||
| 2693 | paths => [ | ||
| 2694 | [ { node_id => 1 }, "_nodes", | ||
| 2695 | "{node_id}", "reload_secure_settings", | ||
| 2696 | ], | ||
| 2697 | [ {}, "_nodes", "reload_secure_settings" ], | ||
| 2698 | ], | ||
| 2699 | qs => { | ||
| 2700 | error_trace => "boolean", | ||
| 2701 | filter_path => "list", | ||
| 2702 | human => "boolean", | ||
| 2703 | timeout => "time", | ||
| 2704 | }, | ||
| 2705 | }, | ||
| 2706 | |||
| 2707 | 'nodes.stats' => { | ||
| 2708 | doc => "cluster-nodes-stats", | ||
| 2709 | parts => { | ||
| 2710 | index_metric => { multi => 1 }, | ||
| 2711 | metric => { multi => 1 }, | ||
| 2712 | node_id => { multi => 1 }, | ||
| 2713 | }, | ||
| 2714 | paths => [ | ||
| 2715 | [ { index_metric => 4, metric => 3, node_id => 1 }, | ||
| 2716 | "_nodes", "{node_id}", "stats", "{metric}", "{index_metric}", | ||
| 2717 | ], | ||
| 2718 | [ { index_metric => 3, metric => 2 }, "_nodes", | ||
| 2719 | "stats", "{metric}", | ||
| 2720 | "{index_metric}", | ||
| 2721 | ], | ||
| 2722 | [ { metric => 3, node_id => 1 }, "_nodes", | ||
| 2723 | "{node_id}", "stats", | ||
| 2724 | "{metric}", | ||
| 2725 | ], | ||
| 2726 | [ { metric => 2 }, "_nodes", "stats", "{metric}" ], | ||
| 2727 | [ { node_id => 1 }, "_nodes", "{node_id}", "stats" ], | ||
| 2728 | [ {}, "_nodes", "stats" ], | ||
| 2729 | ], | ||
| 2730 | qs => { | ||
| 2731 | completion_fields => "list", | ||
| 2732 | error_trace => "boolean", | ||
| 2733 | fielddata_fields => "list", | ||
| 2734 | fields => "list", | ||
| 2735 | filter_path => "list", | ||
| 2736 | groups => "boolean", | ||
| 2737 | human => "boolean", | ||
| 2738 | include_segment_file_sizes => "boolean", | ||
| 2739 | level => "enum", | ||
| 2740 | timeout => "time", | ||
| 2741 | types => "list", | ||
| 2742 | }, | ||
| 2743 | }, | ||
| 2744 | |||
| 2745 | 'nodes.usage' => { | ||
| 2746 | doc => "cluster-nodes-usage", | ||
| 2747 | parts => { metric => { multi => 1 }, node_id => { multi => 1 } }, | ||
| 2748 | paths => [ | ||
| 2749 | [ { metric => 3, node_id => 1 }, "_nodes", | ||
| 2750 | "{node_id}", "usage", | ||
| 2751 | "{metric}", | ||
| 2752 | ], | ||
| 2753 | [ { metric => 2 }, "_nodes", "usage", "{metric}" ], | ||
| 2754 | [ { node_id => 1 }, "_nodes", "{node_id}", "usage" ], | ||
| 2755 | [ {}, "_nodes", "usage" ], | ||
| 2756 | ], | ||
| 2757 | qs => { | ||
| 2758 | error_trace => "boolean", | ||
| 2759 | filter_path => "list", | ||
| 2760 | human => "boolean", | ||
| 2761 | timeout => "time", | ||
| 2762 | }, | ||
| 2763 | }, | ||
| 2764 | |||
| 2765 | 'security.create_api_key' => { | ||
| 2766 | body => { required => 1 }, | ||
| 2767 | doc => "security-api-create-api-key", | ||
| 2768 | method => "PUT", | ||
| 2769 | parts => {}, | ||
| 2770 | paths => [ [ {}, "_security", "api_key" ] ], | ||
| 2771 | qs => { | ||
| 2772 | error_trace => "boolean", | ||
| 2773 | filter_path => "list", | ||
| 2774 | human => "boolean", | ||
| 2775 | refresh => "enum", | ||
| 2776 | }, | ||
| 2777 | }, | ||
| 2778 | |||
| 2779 | 'security.get_api_key' => { | ||
| 2780 | doc => "security-api-get-api-key", | ||
| 2781 | parts => {}, | ||
| 2782 | paths => [ [ {}, "_security", "api_key" ] ], | ||
| 2783 | qs => { | ||
| 2784 | error_trace => "boolean", | ||
| 2785 | filter_path => "list", | ||
| 2786 | human => "boolean", | ||
| 2787 | id => "string", | ||
| 2788 | name => "string", | ||
| 2789 | realm_name => "string", | ||
| 2790 | username => "string", | ||
| 2791 | }, | ||
| 2792 | }, | ||
| 2793 | |||
| 2794 | 'security.invalidate_api_key' => { | ||
| 2795 | body => { required => 1 }, | ||
| 2796 | doc => "security-api-invalidate-api-key", | ||
| 2797 | method => "DELETE", | ||
| 2798 | parts => {}, | ||
| 2799 | paths => [ [ {}, "_security", "api_key" ] ], | ||
| 2800 | qs => { | ||
| 2801 | error_trace => "boolean", | ||
| 2802 | filter_path => "list", | ||
| 2803 | human => "boolean" | ||
| 2804 | }, | ||
| 2805 | }, | ||
| 2806 | |||
| 2807 | 'snapshot.create' => { | ||
| 2808 | body => {}, | ||
| 2809 | doc => "modules-snapshots", | ||
| 2810 | method => "PUT", | ||
| 2811 | parts => { | ||
| 2812 | repository => { required => 1 }, | ||
| 2813 | snapshot => { required => 1 } | ||
| 2814 | }, | ||
| 2815 | paths => [ | ||
| 2816 | [ { repository => 1, snapshot => 2 }, "_snapshot", | ||
| 2817 | "{repository}", "{snapshot}", | ||
| 2818 | ], | ||
| 2819 | ], | ||
| 2820 | qs => { | ||
| 2821 | error_trace => "boolean", | ||
| 2822 | filter_path => "list", | ||
| 2823 | human => "boolean", | ||
| 2824 | master_timeout => "time", | ||
| 2825 | wait_for_completion => "boolean", | ||
| 2826 | }, | ||
| 2827 | }, | ||
| 2828 | |||
| 2829 | 'snapshot.create_repository' => { | ||
| 2830 | body => { required => 1 }, | ||
| 2831 | doc => "modules-snapshots", | ||
| 2832 | method => "PUT", | ||
| 2833 | parts => { repository => { required => 1 } }, | ||
| 2834 | paths => [ [ { repository => 1 }, "_snapshot", "{repository}" ] ], | ||
| 2835 | qs => { | ||
| 2836 | error_trace => "boolean", | ||
| 2837 | filter_path => "list", | ||
| 2838 | human => "boolean", | ||
| 2839 | master_timeout => "time", | ||
| 2840 | timeout => "time", | ||
| 2841 | verify => "boolean", | ||
| 2842 | }, | ||
| 2843 | }, | ||
| 2844 | |||
| 2845 | 'snapshot.delete' => { | ||
| 2846 | doc => "modules-snapshots", | ||
| 2847 | method => "DELETE", | ||
| 2848 | parts => { | ||
| 2849 | repository => { required => 1 }, | ||
| 2850 | snapshot => { required => 1 } | ||
| 2851 | }, | ||
| 2852 | paths => [ | ||
| 2853 | [ { repository => 1, snapshot => 2 }, "_snapshot", | ||
| 2854 | "{repository}", "{snapshot}", | ||
| 2855 | ], | ||
| 2856 | ], | ||
| 2857 | qs => { | ||
| 2858 | error_trace => "boolean", | ||
| 2859 | filter_path => "list", | ||
| 2860 | human => "boolean", | ||
| 2861 | master_timeout => "time", | ||
| 2862 | }, | ||
| 2863 | }, | ||
| 2864 | |||
| 2865 | 'snapshot.delete_repository' => { | ||
| 2866 | doc => "modules-snapshots", | ||
| 2867 | method => "DELETE", | ||
| 2868 | parts => { repository => { multi => 1, required => 1 } }, | ||
| 2869 | paths => [ [ { repository => 1 }, "_snapshot", "{repository}" ] ], | ||
| 2870 | qs => { | ||
| 2871 | error_trace => "boolean", | ||
| 2872 | filter_path => "list", | ||
| 2873 | human => "boolean", | ||
| 2874 | master_timeout => "time", | ||
| 2875 | timeout => "time", | ||
| 2876 | }, | ||
| 2877 | }, | ||
| 2878 | |||
| 2879 | 'snapshot.get' => { | ||
| 2880 | doc => "modules-snapshots", | ||
| 2881 | parts => { | ||
| 2882 | repository => { required => 1 }, | ||
| 2883 | snapshot => { multi => 1, required => 1 }, | ||
| 2884 | }, | ||
| 2885 | paths => [ | ||
| 2886 | [ { repository => 1, snapshot => 2 }, "_snapshot", | ||
| 2887 | "{repository}", "{snapshot}", | ||
| 2888 | ], | ||
| 2889 | ], | ||
| 2890 | qs => { | ||
| 2891 | error_trace => "boolean", | ||
| 2892 | filter_path => "list", | ||
| 2893 | human => "boolean", | ||
| 2894 | ignore_unavailable => "boolean", | ||
| 2895 | master_timeout => "time", | ||
| 2896 | verbose => "boolean", | ||
| 2897 | }, | ||
| 2898 | }, | ||
| 2899 | |||
| 2900 | 'snapshot.get_repository' => { | ||
| 2901 | doc => "modules-snapshots", | ||
| 2902 | parts => { repository => { multi => 1 } }, | ||
| 2903 | paths => [ | ||
| 2904 | [ { repository => 1 }, "_snapshot", "{repository}" ], | ||
| 2905 | [ {}, "_snapshot" ], | ||
| 2906 | ], | ||
| 2907 | qs => { | ||
| 2908 | error_trace => "boolean", | ||
| 2909 | filter_path => "list", | ||
| 2910 | human => "boolean", | ||
| 2911 | local => "boolean", | ||
| 2912 | master_timeout => "time", | ||
| 2913 | }, | ||
| 2914 | }, | ||
| 2915 | |||
| 2916 | 'snapshot.restore' => { | ||
| 2917 | body => {}, | ||
| 2918 | doc => "modules-snapshots", | ||
| 2919 | method => "POST", | ||
| 2920 | parts => { | ||
| 2921 | repository => { required => 1 }, | ||
| 2922 | snapshot => { required => 1 } | ||
| 2923 | }, | ||
| 2924 | paths => [ | ||
| 2925 | [ { repository => 1, snapshot => 2 }, "_snapshot", | ||
| 2926 | "{repository}", "{snapshot}", | ||
| 2927 | "_restore", | ||
| 2928 | ], | ||
| 2929 | ], | ||
| 2930 | qs => { | ||
| 2931 | error_trace => "boolean", | ||
| 2932 | filter_path => "list", | ||
| 2933 | human => "boolean", | ||
| 2934 | master_timeout => "time", | ||
| 2935 | wait_for_completion => "boolean", | ||
| 2936 | }, | ||
| 2937 | }, | ||
| 2938 | |||
| 2939 | 'snapshot.status' => { | ||
| 2940 | doc => "modules-snapshots", | ||
| 2941 | parts => { repository => {}, snapshot => { multi => 1 } }, | ||
| 2942 | paths => [ | ||
| 2943 | [ { repository => 1, snapshot => 2 }, "_snapshot", | ||
| 2944 | "{repository}", "{snapshot}", | ||
| 2945 | "_status", | ||
| 2946 | ], | ||
| 2947 | [ { repository => 1 }, "_snapshot", "{repository}", "_status" ], | ||
| 2948 | [ {}, "_snapshot", "_status" ], | ||
| 2949 | ], | ||
| 2950 | qs => { | ||
| 2951 | error_trace => "boolean", | ||
| 2952 | filter_path => "list", | ||
| 2953 | human => "boolean", | ||
| 2954 | ignore_unavailable => "boolean", | ||
| 2955 | master_timeout => "time", | ||
| 2956 | }, | ||
| 2957 | }, | ||
| 2958 | |||
| 2959 | 'snapshot.verify_repository' => { | ||
| 2960 | doc => "modules-snapshots", | ||
| 2961 | method => "POST", | ||
| 2962 | parts => { repository => { required => 1 } }, | ||
| 2963 | paths => [ | ||
| 2964 | [ { repository => 1 }, "_snapshot", "{repository}", "_verify" ], | ||
| 2965 | ], | ||
| 2966 | qs => { | ||
| 2967 | error_trace => "boolean", | ||
| 2968 | filter_path => "list", | ||
| 2969 | human => "boolean", | ||
| 2970 | master_timeout => "time", | ||
| 2971 | timeout => "time", | ||
| 2972 | }, | ||
| 2973 | }, | ||
| 2974 | |||
| 2975 | 'tasks.cancel' => { | ||
| 2976 | doc => "tasks", | ||
| 2977 | method => "POST", | ||
| 2978 | parts => { task_id => {} }, | ||
| 2979 | paths => [ | ||
| 2980 | [ { task_id => 1 }, "_tasks", "{task_id}", "_cancel" ], | ||
| 2981 | [ {}, "_tasks", "_cancel" ], | ||
| 2982 | ], | ||
| 2983 | qs => { | ||
| 2984 | actions => "list", | ||
| 2985 | error_trace => "boolean", | ||
| 2986 | filter_path => "list", | ||
| 2987 | human => "boolean", | ||
| 2988 | nodes => "list", | ||
| 2989 | parent_task_id => "string", | ||
| 2990 | }, | ||
| 2991 | }, | ||
| 2992 | |||
| 2993 | 'tasks.get' => { | ||
| 2994 | doc => "tasks", | ||
| 2995 | parts => { task_id => { required => 1 } }, | ||
| 2996 | paths => [ [ { task_id => 1 }, "_tasks", "{task_id}" ] ], | ||
| 2997 | qs => { | ||
| 2998 | error_trace => "boolean", | ||
| 2999 | filter_path => "list", | ||
| 3000 | human => "boolean", | ||
| 3001 | timeout => "time", | ||
| 3002 | wait_for_completion => "boolean", | ||
| 3003 | }, | ||
| 3004 | }, | ||
| 3005 | |||
| 3006 | 'tasks.list' => { | ||
| 3007 | doc => "tasks", | ||
| 3008 | parts => {}, | ||
| 3009 | paths => [ [ {}, "_tasks" ] ], | ||
| 3010 | qs => { | ||
| 3011 | actions => "list", | ||
| 3012 | detailed => "boolean", | ||
| 3013 | error_trace => "boolean", | ||
| 3014 | filter_path => "list", | ||
| 3015 | group_by => "enum", | ||
| 3016 | human => "boolean", | ||
| 3017 | nodes => "list", | ||
| 3018 | parent_task_id => "string", | ||
| 3019 | timeout => "time", | ||
| 3020 | wait_for_completion => "boolean", | ||
| 3021 | }, | ||
| 3022 | }, | ||
| 3023 | |||
| 3024 | 'xpack.graph.explore' => { | ||
| 3025 | body => {}, | ||
| 3026 | doc => "graph-explore-api", | ||
| 3027 | parts => { index => { multi => 1 }, type => { multi => 1 } }, | ||
| 3028 | paths => [ | ||
| 3029 | [ { index => 0, type => 1 }, "{index}", | ||
| 3030 | "{type}", "_xpack", | ||
| 3031 | "graph", "_explore", | ||
| 3032 | ], | ||
| 3033 | [ { index => 0 }, "{index}", "_xpack", "graph", "_explore" ], | ||
| 3034 | ], | ||
| 3035 | qs => { | ||
| 3036 | error_trace => "boolean", | ||
| 3037 | filter_path => "list", | ||
| 3038 | human => "boolean", | ||
| 3039 | routing => "string", | ||
| 3040 | timeout => "time", | ||
| 3041 | }, | ||
| 3042 | }, | ||
| 3043 | |||
| 3044 | 'xpack.info' => { | ||
| 3045 | doc => "info-api", | ||
| 3046 | parts => {}, | ||
| 3047 | paths => [ [ {}, "_xpack" ] ], | ||
| 3048 | qs => { | ||
| 3049 | categories => "list", | ||
| 3050 | error_trace => "boolean", | ||
| 3051 | filter_path => "list", | ||
| 3052 | human => "boolean", | ||
| 3053 | }, | ||
| 3054 | }, | ||
| 3055 | |||
| 3056 | 'xpack.license.delete' => { | ||
| 3057 | doc => "delete-license", | ||
| 3058 | method => "DELETE", | ||
| 3059 | parts => {}, | ||
| 3060 | paths => [ [ {}, "_xpack", "license" ] ], | ||
| 3061 | qs => { | ||
| 3062 | error_trace => "boolean", | ||
| 3063 | filter_path => "list", | ||
| 3064 | human => "boolean" | ||
| 3065 | }, | ||
| 3066 | }, | ||
| 3067 | |||
| 3068 | 'xpack.license.get' => { | ||
| 3069 | doc => "get-license", | ||
| 3070 | parts => {}, | ||
| 3071 | paths => [ [ {}, "_xpack", "license" ] ], | ||
| 3072 | qs => { | ||
| 3073 | error_trace => "boolean", | ||
| 3074 | filter_path => "list", | ||
| 3075 | human => "boolean", | ||
| 3076 | local => "boolean", | ||
| 3077 | }, | ||
| 3078 | }, | ||
| 3079 | |||
| 3080 | 'xpack.license.get_basic_status' => { | ||
| 3081 | doc => "get-trial-status", | ||
| 3082 | parts => {}, | ||
| 3083 | paths => [ [ {}, "_xpack", "license", "basic_status" ] ], | ||
| 3084 | qs => { | ||
| 3085 | error_trace => "boolean", | ||
| 3086 | filter_path => "list", | ||
| 3087 | human => "boolean" | ||
| 3088 | }, | ||
| 3089 | }, | ||
| 3090 | |||
| 3091 | 'xpack.license.get_trial_status' => { | ||
| 3092 | doc => "get-basic-status", | ||
| 3093 | parts => {}, | ||
| 3094 | paths => [ [ {}, "_xpack", "license", "trial_status" ] ], | ||
| 3095 | qs => { | ||
| 3096 | error_trace => "boolean", | ||
| 3097 | filter_path => "list", | ||
| 3098 | human => "boolean" | ||
| 3099 | }, | ||
| 3100 | }, | ||
| 3101 | |||
| 3102 | 'xpack.license.post' => { | ||
| 3103 | body => {}, | ||
| 3104 | doc => "update-license", | ||
| 3105 | method => "PUT", | ||
| 3106 | parts => {}, | ||
| 3107 | paths => [ [ {}, "_xpack", "license" ] ], | ||
| 3108 | qs => { | ||
| 3109 | acknowledge => "boolean", | ||
| 3110 | error_trace => "boolean", | ||
| 3111 | filter_path => "list", | ||
| 3112 | human => "boolean", | ||
| 3113 | }, | ||
| 3114 | }, | ||
| 3115 | |||
| 3116 | 'xpack.license.post_start_basic' => { | ||
| 3117 | doc => "start-basic", | ||
| 3118 | method => "POST", | ||
| 3119 | parts => {}, | ||
| 3120 | paths => [ [ {}, "_xpack", "license", "start_basic" ] ], | ||
| 3121 | qs => { | ||
| 3122 | acknowledge => "boolean", | ||
| 3123 | error_trace => "boolean", | ||
| 3124 | filter_path => "list", | ||
| 3125 | human => "boolean", | ||
| 3126 | }, | ||
| 3127 | }, | ||
| 3128 | |||
| 3129 | 'xpack.license.post_start_trial' => { | ||
| 3130 | doc => "start-trial", | ||
| 3131 | method => "POST", | ||
| 3132 | parts => {}, | ||
| 3133 | paths => [ [ {}, "_xpack", "license", "start_trial" ] ], | ||
| 3134 | qs => { | ||
| 3135 | acknowledge => "boolean", | ||
| 3136 | error_trace => "boolean", | ||
| 3137 | filter_path => "list", | ||
| 3138 | human => "boolean", | ||
| 3139 | type => "string", | ||
| 3140 | }, | ||
| 3141 | }, | ||
| 3142 | |||
| 3143 | 'xpack.migration.deprecations' => { | ||
| 3144 | doc => "migration-api-deprecation", | ||
| 3145 | parts => { index => {} }, | ||
| 3146 | paths => [ | ||
| 3147 | [ { index => 0 }, "{index}", "_xpack", "migration", | ||
| 3148 | "deprecations" | ||
| 3149 | ], | ||
| 3150 | [ {}, "_xpack", "migration", "deprecations" ], | ||
| 3151 | ], | ||
| 3152 | qs => { | ||
| 3153 | error_trace => "boolean", | ||
| 3154 | filter_path => "list", | ||
| 3155 | human => "boolean" | ||
| 3156 | }, | ||
| 3157 | }, | ||
| 3158 | |||
| 3159 | 'xpack.migration.get_assistance' => { | ||
| 3160 | doc => "migration-api-assistance", | ||
| 3161 | parts => { index => { multi => 1 } }, | ||
| 3162 | paths => [ | ||
| 3163 | [ { index => 3 }, "_xpack", "migration", "assistance", | ||
| 3164 | "{index}" | ||
| 3165 | ], | ||
| 3166 | [ {}, "_xpack", "migration", "assistance" ], | ||
| 3167 | ], | ||
| 3168 | qs => { | ||
| 3169 | allow_no_indices => "boolean", | ||
| 3170 | error_trace => "boolean", | ||
| 3171 | expand_wildcards => "enum", | ||
| 3172 | filter_path => "list", | ||
| 3173 | human => "boolean", | ||
| 3174 | ignore_unavailable => "boolean", | ||
| 3175 | }, | ||
| 3176 | }, | ||
| 3177 | |||
| 3178 | 'xpack.migration.upgrade' => { | ||
| 3179 | doc => "migration-api-upgrade", | ||
| 3180 | method => "POST", | ||
| 3181 | parts => { index => { required => 1 } }, | ||
| 3182 | paths => [ | ||
| 3183 | [ { index => 3 }, "_xpack", "migration", "upgrade", "{index}" ], | ||
| 3184 | ], | ||
| 3185 | qs => { | ||
| 3186 | error_trace => "boolean", | ||
| 3187 | filter_path => "list", | ||
| 3188 | human => "boolean", | ||
| 3189 | wait_for_completion => "boolean", | ||
| 3190 | }, | ||
| 3191 | }, | ||
| 3192 | |||
| 3193 | 'xpack.ml.close_job' => { | ||
| 3194 | body => {}, | ||
| 3195 | doc => "ml-close-job", | ||
| 3196 | method => "POST", | ||
| 3197 | parts => { job_id => { required => 1 } }, | ||
| 3198 | paths => [ | ||
| 3199 | [ { job_id => 3 }, "_xpack", | ||
| 3200 | "ml", "anomaly_detectors", | ||
| 3201 | "{job_id}", "_close", | ||
| 3202 | ], | ||
| 3203 | ], | ||
| 3204 | qs => { | ||
| 3205 | allow_no_jobs => "boolean", | ||
| 3206 | error_trace => "boolean", | ||
| 3207 | filter_path => "list", | ||
| 3208 | force => "boolean", | ||
| 3209 | human => "boolean", | ||
| 3210 | timeout => "time", | ||
| 3211 | }, | ||
| 3212 | }, | ||
| 3213 | |||
| 3214 | 'xpack.ml.delete_calendar' => { | ||
| 3215 | method => "DELETE", | ||
| 3216 | parts => { calendar_id => { required => 1 } }, | ||
| 3217 | paths => [ | ||
| 3218 | [ { calendar_id => 3 }, "_xpack", | ||
| 3219 | "ml", "calendars", | ||
| 3220 | "{calendar_id}", | ||
| 3221 | ], | ||
| 3222 | ], | ||
| 3223 | qs => { | ||
| 3224 | error_trace => "boolean", | ||
| 3225 | filter_path => "list", | ||
| 3226 | human => "boolean" | ||
| 3227 | }, | ||
| 3228 | }, | ||
| 3229 | |||
| 3230 | 'xpack.ml.delete_calendar_event' => { | ||
| 3231 | method => "DELETE", | ||
| 3232 | parts => { | ||
| 3233 | calendar_id => { required => 1 }, | ||
| 3234 | event_id => { required => 1 } | ||
| 3235 | }, | ||
| 3236 | paths => [ | ||
| 3237 | [ { calendar_id => 3, event_id => 5 }, | ||
| 3238 | "_xpack", "ml", "calendars", "{calendar_id}", "events", | ||
| 3239 | "{event_id}", | ||
| 3240 | ], | ||
| 3241 | ], | ||
| 3242 | qs => { | ||
| 3243 | error_trace => "boolean", | ||
| 3244 | filter_path => "list", | ||
| 3245 | human => "boolean" | ||
| 3246 | }, | ||
| 3247 | }, | ||
| 3248 | |||
| 3249 | 'xpack.ml.delete_calendar_job' => { | ||
| 3250 | method => "DELETE", | ||
| 3251 | parts => | ||
| 3252 | { calendar_id => { required => 1 }, job_id => { required => 1 } }, | ||
| 3253 | paths => [ | ||
| 3254 | [ { calendar_id => 3, job_id => 5 }, | ||
| 3255 | "_xpack", "ml", "calendars", "{calendar_id}", "jobs", | ||
| 3256 | "{job_id}", | ||
| 3257 | ], | ||
| 3258 | ], | ||
| 3259 | qs => { | ||
| 3260 | error_trace => "boolean", | ||
| 3261 | filter_path => "list", | ||
| 3262 | human => "boolean" | ||
| 3263 | }, | ||
| 3264 | }, | ||
| 3265 | |||
| 3266 | 'xpack.ml.delete_datafeed' => { | ||
| 3267 | doc => "ml-delete-datafeed", | ||
| 3268 | method => "DELETE", | ||
| 3269 | parts => { datafeed_id => { required => 1 } }, | ||
| 3270 | paths => [ | ||
| 3271 | [ { datafeed_id => 3 }, "_xpack", | ||
| 3272 | "ml", "datafeeds", | ||
| 3273 | "{datafeed_id}", | ||
| 3274 | ], | ||
| 3275 | ], | ||
| 3276 | qs => { | ||
| 3277 | error_trace => "boolean", | ||
| 3278 | filter_path => "list", | ||
| 3279 | force => "boolean", | ||
| 3280 | human => "boolean", | ||
| 3281 | }, | ||
| 3282 | }, | ||
| 3283 | |||
| 3284 | 'xpack.ml.delete_expired_data' => { | ||
| 3285 | method => "DELETE", | ||
| 3286 | parts => {}, | ||
| 3287 | paths => [ [ {}, "_xpack", "ml", "_delete_expired_data" ] ], | ||
| 3288 | qs => { | ||
| 3289 | error_trace => "boolean", | ||
| 3290 | filter_path => "list", | ||
| 3291 | human => "boolean" | ||
| 3292 | }, | ||
| 3293 | }, | ||
| 3294 | |||
| 3295 | 'xpack.ml.delete_filter' => { | ||
| 3296 | method => "DELETE", | ||
| 3297 | parts => { filter_id => { required => 1 } }, | ||
| 3298 | paths => [ | ||
| 3299 | [ { filter_id => 3 }, "_xpack", "ml", "filters", "{filter_id}" ], | ||
| 3300 | ], | ||
| 3301 | qs => { | ||
| 3302 | error_trace => "boolean", | ||
| 3303 | filter_path => "list", | ||
| 3304 | human => "boolean" | ||
| 3305 | }, | ||
| 3306 | }, | ||
| 3307 | |||
| 3308 | 'xpack.ml.delete_forecast' => { | ||
| 3309 | doc => "ml-delete-forecast", | ||
| 3310 | method => "DELETE", | ||
| 3311 | parts => { forecast_id => {}, job_id => { required => 1 } }, | ||
| 3312 | paths => [ | ||
| 3313 | [ { forecast_id => 5, job_id => 3 }, | ||
| 3314 | "_xpack", "ml", "anomaly_detectors", "{job_id}", "_forecast", | ||
| 3315 | "{forecast_id}", | ||
| 3316 | ], | ||
| 3317 | [ { job_id => 3 }, "_xpack", | ||
| 3318 | "ml", "anomaly_detectors", | ||
| 3319 | "{job_id}", "_forecast", | ||
| 3320 | ], | ||
| 3321 | ], | ||
| 3322 | qs => { | ||
| 3323 | allow_no_forecasts => "boolean", | ||
| 3324 | error_trace => "boolean", | ||
| 3325 | filter_path => "list", | ||
| 3326 | human => "boolean", | ||
| 3327 | timeout => "time", | ||
| 3328 | }, | ||
| 3329 | }, | ||
| 3330 | |||
| 3331 | 'xpack.ml.delete_job' => { | ||
| 3332 | doc => "ml-delete-job", | ||
| 3333 | method => "DELETE", | ||
| 3334 | parts => { job_id => { required => 1 } }, | ||
| 3335 | paths => [ | ||
| 3336 | [ { job_id => 3 }, "_xpack", | ||
| 3337 | "ml", "anomaly_detectors", | ||
| 3338 | "{job_id}" | ||
| 3339 | ], | ||
| 3340 | ], | ||
| 3341 | qs => { | ||
| 3342 | error_trace => "boolean", | ||
| 3343 | filter_path => "list", | ||
| 3344 | force => "boolean", | ||
| 3345 | human => "boolean", | ||
| 3346 | wait_for_completion => "boolean", | ||
| 3347 | }, | ||
| 3348 | }, | ||
| 3349 | |||
| 3350 | 'xpack.ml.delete_model_snapshot' => { | ||
| 3351 | doc => "ml-delete-snapshot", | ||
| 3352 | method => "DELETE", | ||
| 3353 | parts => | ||
| 3354 | { job_id => { required => 1 }, snapshot_id => { required => 1 } }, | ||
| 3355 | paths => [ | ||
| 3356 | [ { job_id => 3, snapshot_id => 5 }, | ||
| 3357 | "_xpack", "ml", "anomaly_detectors", "{job_id}", | ||
| 3358 | "model_snapshots", "{snapshot_id}", | ||
| 3359 | ], | ||
| 3360 | ], | ||
| 3361 | qs => { | ||
| 3362 | error_trace => "boolean", | ||
| 3363 | filter_path => "list", | ||
| 3364 | human => "boolean" | ||
| 3365 | }, | ||
| 3366 | }, | ||
| 3367 | |||
| 3368 | 'xpack.ml.find_file_structure' => { | ||
| 3369 | body => { required => 1 }, | ||
| 3370 | doc => "ml-find-file-structure", | ||
| 3371 | method => "POST", | ||
| 3372 | parts => {}, | ||
| 3373 | paths => [ [ {}, "_xpack", "ml", "find_file_structure" ] ], | ||
| 3374 | qs => { | ||
| 3375 | charset => "string", | ||
| 3376 | column_names => "list", | ||
| 3377 | delimiter => "string", | ||
| 3378 | error_trace => "boolean", | ||
| 3379 | explain => "boolean", | ||
| 3380 | filter_path => "list", | ||
| 3381 | format => "enum", | ||
| 3382 | grok_pattern => "string", | ||
| 3383 | has_header_row => "boolean", | ||
| 3384 | human => "boolean", | ||
| 3385 | lines_to_sample => "int", | ||
| 3386 | quote => "string", | ||
| 3387 | should_trim_fields => "boolean", | ||
| 3388 | timeout => "time", | ||
| 3389 | timestamp_field => "string", | ||
| 3390 | timestamp_format => "string", | ||
| 3391 | }, | ||
| 3392 | serialize => "bulk", | ||
| 3393 | }, | ||
| 3394 | |||
| 3395 | 'xpack.ml.flush_job' => { | ||
| 3396 | body => {}, | ||
| 3397 | doc => "ml-flush-job", | ||
| 3398 | method => "POST", | ||
| 3399 | parts => { job_id => { required => 1 } }, | ||
| 3400 | paths => [ | ||
| 3401 | [ { job_id => 3 }, "_xpack", | ||
| 3402 | "ml", "anomaly_detectors", | ||
| 3403 | "{job_id}", "_flush", | ||
| 3404 | ], | ||
| 3405 | ], | ||
| 3406 | qs => { | ||
| 3407 | advance_time => "string", | ||
| 3408 | calc_interim => "boolean", | ||
| 3409 | end => "string", | ||
| 3410 | error_trace => "boolean", | ||
| 3411 | filter_path => "list", | ||
| 3412 | human => "boolean", | ||
| 3413 | skip_time => "string", | ||
| 3414 | start => "string", | ||
| 3415 | }, | ||
| 3416 | }, | ||
| 3417 | |||
| 3418 | 'xpack.ml.forecast' => { | ||
| 3419 | method => "POST", | ||
| 3420 | parts => { job_id => { required => 1 } }, | ||
| 3421 | paths => [ | ||
| 3422 | [ { job_id => 3 }, "_xpack", | ||
| 3423 | "ml", "anomaly_detectors", | ||
| 3424 | "{job_id}", "_forecast", | ||
| 3425 | ], | ||
| 3426 | ], | ||
| 3427 | qs => { | ||
| 3428 | duration => "time", | ||
| 3429 | error_trace => "boolean", | ||
| 3430 | expires_in => "time", | ||
| 3431 | filter_path => "list", | ||
| 3432 | human => "boolean", | ||
| 3433 | }, | ||
| 3434 | }, | ||
| 3435 | |||
| 3436 | 'xpack.ml.get_buckets' => { | ||
| 3437 | body => {}, | ||
| 3438 | doc => "ml-get-bucket", | ||
| 3439 | parts => { job_id => { required => 1 }, timestamp => {} }, | ||
| 3440 | paths => [ | ||
| 3441 | [ { job_id => 3, timestamp => 6 }, | ||
| 3442 | "_xpack", "ml", "anomaly_detectors", "{job_id}", "results", | ||
| 3443 | "buckets", "{timestamp}", | ||
| 3444 | ], | ||
| 3445 | [ { job_id => 3 }, "_xpack", | ||
| 3446 | "ml", "anomaly_detectors", | ||
| 3447 | "{job_id}", "results", | ||
| 3448 | "buckets", | ||
| 3449 | ], | ||
| 3450 | ], | ||
| 3451 | qs => { | ||
| 3452 | anomaly_score => "double", | ||
| 3453 | desc => "boolean", | ||
| 3454 | end => "string", | ||
| 3455 | error_trace => "boolean", | ||
| 3456 | exclude_interim => "boolean", | ||
| 3457 | expand => "boolean", | ||
| 3458 | filter_path => "list", | ||
| 3459 | from => "int", | ||
| 3460 | human => "boolean", | ||
| 3461 | size => "int", | ||
| 3462 | sort => "string", | ||
| 3463 | start => "string", | ||
| 3464 | }, | ||
| 3465 | }, | ||
| 3466 | |||
| 3467 | 'xpack.ml.get_calendar_events' => { | ||
| 3468 | parts => { calendar_id => { required => 1 } }, | ||
| 3469 | paths => [ | ||
| 3470 | [ { calendar_id => 3 }, "_xpack", | ||
| 3471 | "ml", "calendars", | ||
| 3472 | "{calendar_id}", "events", | ||
| 3473 | ], | ||
| 3474 | ], | ||
| 3475 | qs => { | ||
| 3476 | end => "time", | ||
| 3477 | error_trace => "boolean", | ||
| 3478 | filter_path => "list", | ||
| 3479 | from => "int", | ||
| 3480 | human => "boolean", | ||
| 3481 | job_id => "string", | ||
| 3482 | size => "int", | ||
| 3483 | start => "string", | ||
| 3484 | }, | ||
| 3485 | }, | ||
| 3486 | |||
| 3487 | 'xpack.ml.get_calendars' => { | ||
| 3488 | parts => { calendar_id => {} }, | ||
| 3489 | paths => [ | ||
| 3490 | [ { calendar_id => 3 }, "_xpack", | ||
| 3491 | "ml", "calendars", | ||
| 3492 | "{calendar_id}", | ||
| 3493 | ], | ||
| 3494 | [ {}, "_xpack", "ml", "calendars" ], | ||
| 3495 | ], | ||
| 3496 | qs => { | ||
| 3497 | error_trace => "boolean", | ||
| 3498 | filter_path => "list", | ||
| 3499 | from => "int", | ||
| 3500 | human => "boolean", | ||
| 3501 | size => "int", | ||
| 3502 | }, | ||
| 3503 | }, | ||
| 3504 | |||
| 3505 | 'xpack.ml.get_categories' => { | ||
| 3506 | body => {}, | ||
| 3507 | doc => "ml-get-category", | ||
| 3508 | parts => { category_id => {}, job_id => { required => 1 } }, | ||
| 3509 | paths => [ | ||
| 3510 | [ { category_id => 6, job_id => 3 }, "_xpack", | ||
| 3511 | "ml", "anomaly_detectors", | ||
| 3512 | "{job_id}", "results", | ||
| 3513 | "categories", "{category_id}", | ||
| 3514 | ], | ||
| 3515 | [ { job_id => 3 }, "_xpack", | ||
| 3516 | "ml", "anomaly_detectors", | ||
| 3517 | "{job_id}", "results", | ||
| 3518 | "categories", | ||
| 3519 | ], | ||
| 3520 | ], | ||
| 3521 | qs => { | ||
| 3522 | error_trace => "boolean", | ||
| 3523 | filter_path => "list", | ||
| 3524 | from => "int", | ||
| 3525 | human => "boolean", | ||
| 3526 | size => "int", | ||
| 3527 | }, | ||
| 3528 | }, | ||
| 3529 | |||
| 3530 | 'xpack.ml.get_datafeed_stats' => { | ||
| 3531 | doc => "ml-get-datafeed-stats", | ||
| 3532 | parts => { datafeed_id => {} }, | ||
| 3533 | paths => [ | ||
| 3534 | [ { datafeed_id => 3 }, "_xpack", | ||
| 3535 | "ml", "datafeeds", | ||
| 3536 | "{datafeed_id}", "_stats", | ||
| 3537 | ], | ||
| 3538 | [ {}, "_xpack", "ml", "datafeeds", "_stats" ], | ||
| 3539 | ], | ||
| 3540 | qs => { | ||
| 3541 | allow_no_datafeeds => "boolean", | ||
| 3542 | error_trace => "boolean", | ||
| 3543 | filter_path => "list", | ||
| 3544 | human => "boolean", | ||
| 3545 | }, | ||
| 3546 | }, | ||
| 3547 | |||
| 3548 | 'xpack.ml.get_datafeeds' => { | ||
| 3549 | doc => "ml-get-datafeed", | ||
| 3550 | parts => { datafeed_id => {} }, | ||
| 3551 | paths => [ | ||
| 3552 | [ { datafeed_id => 3 }, "_xpack", | ||
| 3553 | "ml", "datafeeds", | ||
| 3554 | "{datafeed_id}", | ||
| 3555 | ], | ||
| 3556 | [ {}, "_xpack", "ml", "datafeeds" ], | ||
| 3557 | ], | ||
| 3558 | qs => { | ||
| 3559 | allow_no_datafeeds => "boolean", | ||
| 3560 | error_trace => "boolean", | ||
| 3561 | filter_path => "list", | ||
| 3562 | human => "boolean", | ||
| 3563 | }, | ||
| 3564 | }, | ||
| 3565 | |||
| 3566 | 'xpack.ml.get_filters' => { | ||
| 3567 | parts => { filter_id => {} }, | ||
| 3568 | paths => [ | ||
| 3569 | [ { filter_id => 3 }, "_xpack", "ml", "filters", "{filter_id}" ], | ||
| 3570 | [ {}, "_xpack", "ml", "filters" ], | ||
| 3571 | ], | ||
| 3572 | qs => { | ||
| 3573 | error_trace => "boolean", | ||
| 3574 | filter_path => "list", | ||
| 3575 | from => "int", | ||
| 3576 | human => "boolean", | ||
| 3577 | size => "int", | ||
| 3578 | }, | ||
| 3579 | }, | ||
| 3580 | |||
| 3581 | 'xpack.ml.get_influencers' => { | ||
| 3582 | body => {}, | ||
| 3583 | doc => "ml-get-influencer", | ||
| 3584 | parts => { job_id => { required => 1 } }, | ||
| 3585 | paths => [ | ||
| 3586 | [ { job_id => 3 }, "_xpack", | ||
| 3587 | "ml", "anomaly_detectors", | ||
| 3588 | "{job_id}", "results", | ||
| 3589 | "influencers", | ||
| 3590 | ], | ||
| 3591 | ], | ||
| 3592 | qs => { | ||
| 3593 | desc => "boolean", | ||
| 3594 | end => "string", | ||
| 3595 | error_trace => "boolean", | ||
| 3596 | exclude_interim => "boolean", | ||
| 3597 | filter_path => "list", | ||
| 3598 | from => "int", | ||
| 3599 | human => "boolean", | ||
| 3600 | influencer_score => "double", | ||
| 3601 | size => "int", | ||
| 3602 | sort => "string", | ||
| 3603 | start => "string", | ||
| 3604 | }, | ||
| 3605 | }, | ||
| 3606 | |||
| 3607 | 'xpack.ml.get_job_stats' => { | ||
| 3608 | doc => "ml-get-job-stats", | ||
| 3609 | parts => { job_id => {} }, | ||
| 3610 | paths => [ | ||
| 3611 | [ { job_id => 3 }, "_xpack", | ||
| 3612 | "ml", "anomaly_detectors", | ||
| 3613 | "{job_id}", "_stats", | ||
| 3614 | ], | ||
| 3615 | [ {}, "_xpack", "ml", "anomaly_detectors", "_stats" ], | ||
| 3616 | ], | ||
| 3617 | qs => { | ||
| 3618 | allow_no_jobs => "boolean", | ||
| 3619 | error_trace => "boolean", | ||
| 3620 | filter_path => "list", | ||
| 3621 | human => "boolean", | ||
| 3622 | }, | ||
| 3623 | }, | ||
| 3624 | |||
| 3625 | 'xpack.ml.get_jobs' => { | ||
| 3626 | doc => "ml-get-job", | ||
| 3627 | parts => { job_id => {} }, | ||
| 3628 | paths => [ | ||
| 3629 | [ { job_id => 3 }, "_xpack", | ||
| 3630 | "ml", "anomaly_detectors", | ||
| 3631 | "{job_id}" | ||
| 3632 | ], | ||
| 3633 | [ {}, "_xpack", "ml", "anomaly_detectors" ], | ||
| 3634 | ], | ||
| 3635 | qs => { | ||
| 3636 | allow_no_jobs => "boolean", | ||
| 3637 | error_trace => "boolean", | ||
| 3638 | filter_path => "list", | ||
| 3639 | human => "boolean", | ||
| 3640 | }, | ||
| 3641 | }, | ||
| 3642 | |||
| 3643 | 'xpack.ml.get_model_snapshots' => { | ||
| 3644 | body => {}, | ||
| 3645 | doc => "ml-get-snapshot", | ||
| 3646 | parts => { job_id => { required => 1 }, snapshot_id => {} }, | ||
| 3647 | paths => [ | ||
| 3648 | [ { job_id => 3, snapshot_id => 5 }, | ||
| 3649 | "_xpack", "ml", "anomaly_detectors", "{job_id}", | ||
| 3650 | "model_snapshots", "{snapshot_id}", | ||
| 3651 | ], | ||
| 3652 | [ { job_id => 3 }, "_xpack", | ||
| 3653 | "ml", "anomaly_detectors", | ||
| 3654 | "{job_id}", "model_snapshots", | ||
| 3655 | ], | ||
| 3656 | ], | ||
| 3657 | qs => { | ||
| 3658 | desc => "boolean", | ||
| 3659 | end => "time", | ||
| 3660 | error_trace => "boolean", | ||
| 3661 | filter_path => "list", | ||
| 3662 | from => "int", | ||
| 3663 | human => "boolean", | ||
| 3664 | size => "int", | ||
| 3665 | sort => "string", | ||
| 3666 | start => "time", | ||
| 3667 | }, | ||
| 3668 | }, | ||
| 3669 | |||
| 3670 | 'xpack.ml.get_overall_buckets' => { | ||
| 3671 | body => {}, | ||
| 3672 | doc => "ml-get-overall-buckets", | ||
| 3673 | parts => { job_id => { required => 1 } }, | ||
| 3674 | paths => [ | ||
| 3675 | [ { job_id => 3 }, "_xpack", | ||
| 3676 | "ml", "anomaly_detectors", | ||
| 3677 | "{job_id}", "results", | ||
| 3678 | "overall_buckets", | ||
| 3679 | ], | ||
| 3680 | ], | ||
| 3681 | qs => { | ||
| 3682 | allow_no_jobs => "boolean", | ||
| 3683 | bucket_span => "string", | ||
| 3684 | end => "string", | ||
| 3685 | error_trace => "boolean", | ||
| 3686 | exclude_interim => "boolean", | ||
| 3687 | filter_path => "list", | ||
| 3688 | human => "boolean", | ||
| 3689 | overall_score => "double", | ||
| 3690 | start => "string", | ||
| 3691 | top_n => "int", | ||
| 3692 | }, | ||
| 3693 | }, | ||
| 3694 | |||
| 3695 | 'xpack.ml.get_records' => { | ||
| 3696 | body => {}, | ||
| 3697 | doc => "ml-get-record", | ||
| 3698 | parts => { job_id => { required => 1 } }, | ||
| 3699 | paths => [ | ||
| 3700 | [ { job_id => 3 }, "_xpack", | ||
| 3701 | "ml", "anomaly_detectors", | ||
| 3702 | "{job_id}", "results", | ||
| 3703 | "records", | ||
| 3704 | ], | ||
| 3705 | ], | ||
| 3706 | qs => { | ||
| 3707 | desc => "boolean", | ||
| 3708 | end => "string", | ||
| 3709 | error_trace => "boolean", | ||
| 3710 | exclude_interim => "boolean", | ||
| 3711 | filter_path => "list", | ||
| 3712 | from => "int", | ||
| 3713 | human => "boolean", | ||
| 3714 | record_score => "double", | ||
| 3715 | size => "int", | ||
| 3716 | sort => "string", | ||
| 3717 | start => "string", | ||
| 3718 | }, | ||
| 3719 | }, | ||
| 3720 | |||
| 3721 | 'xpack.ml.info' => { | ||
| 3722 | parts => {}, | ||
| 3723 | paths => [ [ {}, "_xpack", "ml", "info" ] ], | ||
| 3724 | qs => { | ||
| 3725 | error_trace => "boolean", | ||
| 3726 | filter_path => "list", | ||
| 3727 | human => "boolean" | ||
| 3728 | }, | ||
| 3729 | }, | ||
| 3730 | |||
| 3731 | 'xpack.ml.open_job' => { | ||
| 3732 | doc => "ml-open-job", | ||
| 3733 | method => "POST", | ||
| 3734 | parts => { | ||
| 3735 | ignore_downtime => {}, | ||
| 3736 | job_id => { required => 1 }, | ||
| 3737 | timeout => {} | ||
| 3738 | }, | ||
| 3739 | paths => [ | ||
| 3740 | [ { job_id => 3 }, "_xpack", | ||
| 3741 | "ml", "anomaly_detectors", | ||
| 3742 | "{job_id}", "_open", | ||
| 3743 | ], | ||
| 3744 | ], | ||
| 3745 | qs => { | ||
| 3746 | error_trace => "boolean", | ||
| 3747 | filter_path => "list", | ||
| 3748 | human => "boolean" | ||
| 3749 | }, | ||
| 3750 | }, | ||
| 3751 | |||
| 3752 | 'xpack.ml.post_calendar_events' => { | ||
| 3753 | body => { required => 1 }, | ||
| 3754 | method => "POST", | ||
| 3755 | parts => { calendar_id => { required => 1 } }, | ||
| 3756 | paths => [ | ||
| 3757 | [ { calendar_id => 3 }, "_xpack", | ||
| 3758 | "ml", "calendars", | ||
| 3759 | "{calendar_id}", "events", | ||
| 3760 | ], | ||
| 3761 | ], | ||
| 3762 | qs => { | ||
| 3763 | error_trace => "boolean", | ||
| 3764 | filter_path => "list", | ||
| 3765 | human => "boolean" | ||
| 3766 | }, | ||
| 3767 | }, | ||
| 3768 | |||
| 3769 | 'xpack.ml.post_data' => { | ||
| 3770 | body => { required => 1 }, | ||
| 3771 | doc => "ml-post-data", | ||
| 3772 | method => "POST", | ||
| 3773 | parts => { job_id => { required => 1 } }, | ||
| 3774 | paths => [ | ||
| 3775 | [ { job_id => 3 }, "_xpack", | ||
| 3776 | "ml", "anomaly_detectors", | ||
| 3777 | "{job_id}", "_data", | ||
| 3778 | ], | ||
| 3779 | ], | ||
| 3780 | qs => { | ||
| 3781 | error_trace => "boolean", | ||
| 3782 | filter_path => "list", | ||
| 3783 | human => "boolean", | ||
| 3784 | reset_end => "string", | ||
| 3785 | reset_start => "string", | ||
| 3786 | }, | ||
| 3787 | serialize => "bulk", | ||
| 3788 | }, | ||
| 3789 | |||
| 3790 | 'xpack.ml.preview_datafeed' => { | ||
| 3791 | doc => "ml-preview-datafeed", | ||
| 3792 | parts => { datafeed_id => { required => 1 } }, | ||
| 3793 | paths => [ | ||
| 3794 | [ { datafeed_id => 3 }, "_xpack", | ||
| 3795 | "ml", "datafeeds", | ||
| 3796 | "{datafeed_id}", "_preview", | ||
| 3797 | ], | ||
| 3798 | ], | ||
| 3799 | qs => { | ||
| 3800 | error_trace => "boolean", | ||
| 3801 | filter_path => "list", | ||
| 3802 | human => "boolean" | ||
| 3803 | }, | ||
| 3804 | }, | ||
| 3805 | |||
| 3806 | 'xpack.ml.put_calendar' => { | ||
| 3807 | body => {}, | ||
| 3808 | method => "PUT", | ||
| 3809 | parts => { calendar_id => { required => 1 } }, | ||
| 3810 | paths => [ | ||
| 3811 | [ { calendar_id => 3 }, "_xpack", | ||
| 3812 | "ml", "calendars", | ||
| 3813 | "{calendar_id}", | ||
| 3814 | ], | ||
| 3815 | ], | ||
| 3816 | qs => { | ||
| 3817 | error_trace => "boolean", | ||
| 3818 | filter_path => "list", | ||
| 3819 | human => "boolean" | ||
| 3820 | }, | ||
| 3821 | }, | ||
| 3822 | |||
| 3823 | 'xpack.ml.put_calendar_job' => { | ||
| 3824 | method => "PUT", | ||
| 3825 | parts => | ||
| 3826 | { calendar_id => { required => 1 }, job_id => { required => 1 } }, | ||
| 3827 | paths => [ | ||
| 3828 | [ { calendar_id => 3, job_id => 5 }, | ||
| 3829 | "_xpack", "ml", "calendars", "{calendar_id}", "jobs", | ||
| 3830 | "{job_id}", | ||
| 3831 | ], | ||
| 3832 | ], | ||
| 3833 | qs => { | ||
| 3834 | error_trace => "boolean", | ||
| 3835 | filter_path => "list", | ||
| 3836 | human => "boolean" | ||
| 3837 | }, | ||
| 3838 | }, | ||
| 3839 | |||
| 3840 | 'xpack.ml.put_datafeed' => { | ||
| 3841 | body => { required => 1 }, | ||
| 3842 | doc => "ml-put-datafeed", | ||
| 3843 | method => "PUT", | ||
| 3844 | parts => { datafeed_id => { required => 1 } }, | ||
| 3845 | paths => [ | ||
| 3846 | [ { datafeed_id => 3 }, "_xpack", | ||
| 3847 | "ml", "datafeeds", | ||
| 3848 | "{datafeed_id}", | ||
| 3849 | ], | ||
| 3850 | ], | ||
| 3851 | qs => { | ||
| 3852 | error_trace => "boolean", | ||
| 3853 | filter_path => "list", | ||
| 3854 | human => "boolean" | ||
| 3855 | }, | ||
| 3856 | }, | ||
| 3857 | |||
| 3858 | 'xpack.ml.put_filter' => { | ||
| 3859 | body => { required => 1 }, | ||
| 3860 | method => "PUT", | ||
| 3861 | parts => { filter_id => { required => 1 } }, | ||
| 3862 | paths => [ | ||
| 3863 | [ { filter_id => 3 }, "_xpack", "ml", "filters", "{filter_id}" ], | ||
| 3864 | ], | ||
| 3865 | qs => { | ||
| 3866 | error_trace => "boolean", | ||
| 3867 | filter_path => "list", | ||
| 3868 | human => "boolean" | ||
| 3869 | }, | ||
| 3870 | }, | ||
| 3871 | |||
| 3872 | 'xpack.ml.put_job' => { | ||
| 3873 | body => { required => 1 }, | ||
| 3874 | doc => "ml-put-job", | ||
| 3875 | method => "PUT", | ||
| 3876 | parts => { job_id => { required => 1 } }, | ||
| 3877 | paths => [ | ||
| 3878 | [ { job_id => 3 }, "_xpack", | ||
| 3879 | "ml", "anomaly_detectors", | ||
| 3880 | "{job_id}" | ||
| 3881 | ], | ||
| 3882 | ], | ||
| 3883 | qs => { | ||
| 3884 | error_trace => "boolean", | ||
| 3885 | filter_path => "list", | ||
| 3886 | human => "boolean" | ||
| 3887 | }, | ||
| 3888 | }, | ||
| 3889 | |||
| 3890 | 'xpack.ml.revert_model_snapshot' => { | ||
| 3891 | body => {}, | ||
| 3892 | doc => "ml-revert-snapshot", | ||
| 3893 | method => "POST", | ||
| 3894 | parts => | ||
| 3895 | { job_id => { required => 1 }, snapshot_id => { required => 1 } }, | ||
| 3896 | paths => [ | ||
| 3897 | [ { job_id => 3, snapshot_id => 5 }, "_xpack", | ||
| 3898 | "ml", "anomaly_detectors", | ||
| 3899 | "{job_id}", "model_snapshots", | ||
| 3900 | "{snapshot_id}", "_revert", | ||
| 3901 | ], | ||
| 3902 | ], | ||
| 3903 | qs => { | ||
| 3904 | delete_intervening_results => "boolean", | ||
| 3905 | error_trace => "boolean", | ||
| 3906 | filter_path => "list", | ||
| 3907 | human => "boolean", | ||
| 3908 | }, | ||
| 3909 | }, | ||
| 3910 | |||
| 3911 | 'xpack.ml.set_upgrade_mode' => { | ||
| 3912 | doc => "ml-set-upgrade-mode", | ||
| 3913 | method => "POST", | ||
| 3914 | parts => {}, | ||
| 3915 | paths => [ [ {}, "_xpack", "ml", "set_upgrade_mode" ] ], | ||
| 3916 | qs => { | ||
| 3917 | enabled => "boolean", | ||
| 3918 | error_trace => "boolean", | ||
| 3919 | filter_path => "list", | ||
| 3920 | human => "boolean", | ||
| 3921 | timeout => "time", | ||
| 3922 | }, | ||
| 3923 | }, | ||
| 3924 | |||
| 3925 | 'xpack.ml.start_datafeed' => { | ||
| 3926 | body => {}, | ||
| 3927 | doc => "ml-start-datafeed", | ||
| 3928 | method => "POST", | ||
| 3929 | parts => { datafeed_id => { required => 1 } }, | ||
| 3930 | paths => [ | ||
| 3931 | [ { datafeed_id => 3 }, "_xpack", | ||
| 3932 | "ml", "datafeeds", | ||
| 3933 | "{datafeed_id}", "_start", | ||
| 3934 | ], | ||
| 3935 | ], | ||
| 3936 | qs => { | ||
| 3937 | end => "string", | ||
| 3938 | error_trace => "boolean", | ||
| 3939 | filter_path => "list", | ||
| 3940 | human => "boolean", | ||
| 3941 | start => "string", | ||
| 3942 | timeout => "time", | ||
| 3943 | }, | ||
| 3944 | }, | ||
| 3945 | |||
| 3946 | 'xpack.ml.stop_datafeed' => { | ||
| 3947 | doc => "ml-stop-datafeed", | ||
| 3948 | method => "POST", | ||
| 3949 | parts => { datafeed_id => { required => 1 } }, | ||
| 3950 | paths => [ | ||
| 3951 | [ { datafeed_id => 3 }, "_xpack", | ||
| 3952 | "ml", "datafeeds", | ||
| 3953 | "{datafeed_id}", "_stop", | ||
| 3954 | ], | ||
| 3955 | ], | ||
| 3956 | qs => { | ||
| 3957 | allow_no_datafeeds => "boolean", | ||
| 3958 | error_trace => "boolean", | ||
| 3959 | filter_path => "list", | ||
| 3960 | force => "boolean", | ||
| 3961 | human => "boolean", | ||
| 3962 | timeout => "time", | ||
| 3963 | }, | ||
| 3964 | }, | ||
| 3965 | |||
| 3966 | 'xpack.ml.update_datafeed' => { | ||
| 3967 | body => { required => 1 }, | ||
| 3968 | doc => "ml-update-datafeed", | ||
| 3969 | method => "POST", | ||
| 3970 | parts => { datafeed_id => { required => 1 } }, | ||
| 3971 | paths => [ | ||
| 3972 | [ { datafeed_id => 3 }, "_xpack", | ||
| 3973 | "ml", "datafeeds", | ||
| 3974 | "{datafeed_id}", "_update", | ||
| 3975 | ], | ||
| 3976 | ], | ||
| 3977 | qs => { | ||
| 3978 | error_trace => "boolean", | ||
| 3979 | filter_path => "list", | ||
| 3980 | human => "boolean" | ||
| 3981 | }, | ||
| 3982 | }, | ||
| 3983 | |||
| 3984 | 'xpack.ml.update_filter' => { | ||
| 3985 | body => { required => 1 }, | ||
| 3986 | method => "POST", | ||
| 3987 | parts => { filter_id => { required => 1 } }, | ||
| 3988 | paths => [ | ||
| 3989 | [ { filter_id => 3 }, "_xpack", | ||
| 3990 | "ml", "filters", | ||
| 3991 | "{filter_id}", "_update", | ||
| 3992 | ], | ||
| 3993 | ], | ||
| 3994 | qs => { | ||
| 3995 | error_trace => "boolean", | ||
| 3996 | filter_path => "list", | ||
| 3997 | human => "boolean" | ||
| 3998 | }, | ||
| 3999 | }, | ||
| 4000 | |||
| 4001 | 'xpack.ml.update_job' => { | ||
| 4002 | body => { required => 1 }, | ||
| 4003 | doc => "ml-update-job", | ||
| 4004 | method => "POST", | ||
| 4005 | parts => { job_id => { required => 1 } }, | ||
| 4006 | paths => [ | ||
| 4007 | [ { job_id => 3 }, "_xpack", | ||
| 4008 | "ml", "anomaly_detectors", | ||
| 4009 | "{job_id}", "_update", | ||
| 4010 | ], | ||
| 4011 | ], | ||
| 4012 | qs => { | ||
| 4013 | error_trace => "boolean", | ||
| 4014 | filter_path => "list", | ||
| 4015 | human => "boolean" | ||
| 4016 | }, | ||
| 4017 | }, | ||
| 4018 | |||
| 4019 | 'xpack.ml.update_model_snapshot' => { | ||
| 4020 | body => { required => 1 }, | ||
| 4021 | doc => "ml-update-snapshot", | ||
| 4022 | method => "POST", | ||
| 4023 | parts => | ||
| 4024 | { job_id => { required => 1 }, snapshot_id => { required => 1 } }, | ||
| 4025 | paths => [ | ||
| 4026 | [ { job_id => 3, snapshot_id => 5 }, "_xpack", | ||
| 4027 | "ml", "anomaly_detectors", | ||
| 4028 | "{job_id}", "model_snapshots", | ||
| 4029 | "{snapshot_id}", "_update", | ||
| 4030 | ], | ||
| 4031 | ], | ||
| 4032 | qs => { | ||
| 4033 | error_trace => "boolean", | ||
| 4034 | filter_path => "list", | ||
| 4035 | human => "boolean" | ||
| 4036 | }, | ||
| 4037 | }, | ||
| 4038 | |||
| 4039 | 'xpack.ml.validate' => { | ||
| 4040 | body => { required => 1 }, | ||
| 4041 | method => "POST", | ||
| 4042 | parts => {}, | ||
| 4043 | paths => [ [ {}, "_xpack", "ml", "anomaly_detectors", "_validate" ] ], | ||
| 4044 | qs => { | ||
| 4045 | error_trace => "boolean", | ||
| 4046 | filter_path => "list", | ||
| 4047 | human => "boolean" | ||
| 4048 | }, | ||
| 4049 | }, | ||
| 4050 | |||
| 4051 | 'xpack.ml.validate_detector' => { | ||
| 4052 | body => { required => 1 }, | ||
| 4053 | method => "POST", | ||
| 4054 | parts => {}, | ||
| 4055 | paths => [ | ||
| 4056 | [ {}, "_xpack", | ||
| 4057 | "ml", "anomaly_detectors", | ||
| 4058 | "_validate", "detector" | ||
| 4059 | ], | ||
| 4060 | ], | ||
| 4061 | qs => { | ||
| 4062 | error_trace => "boolean", | ||
| 4063 | filter_path => "list", | ||
| 4064 | human => "boolean" | ||
| 4065 | }, | ||
| 4066 | }, | ||
| 4067 | |||
| 4068 | 'xpack.monitoring.bulk' => { | ||
| 4069 | body => { required => 1 }, | ||
| 4070 | doc => "es-monitoring", | ||
| 4071 | method => "POST", | ||
| 4072 | parts => { type => {} }, | ||
| 4073 | paths => [ | ||
| 4074 | [ { type => 2 }, "_xpack", "monitoring", "{type}", "_bulk" ], | ||
| 4075 | [ {}, "_xpack", "monitoring", "_bulk" ], | ||
| 4076 | ], | ||
| 4077 | qs => { | ||
| 4078 | error_trace => "boolean", | ||
| 4079 | filter_path => "list", | ||
| 4080 | human => "boolean", | ||
| 4081 | interval => "string", | ||
| 4082 | system_api_version => "string", | ||
| 4083 | system_id => "string", | ||
| 4084 | }, | ||
| 4085 | serialize => "bulk", | ||
| 4086 | }, | ||
| 4087 | |||
| 4088 | 'xpack.rollup.delete_job' => { | ||
| 4089 | method => "DELETE", | ||
| 4090 | parts => { id => { required => 1 } }, | ||
| 4091 | paths => [ [ { id => 3 }, "_xpack", "rollup", "job", "{id}" ] ], | ||
| 4092 | qs => { | ||
| 4093 | error_trace => "boolean", | ||
| 4094 | filter_path => "list", | ||
| 4095 | human => "boolean" | ||
| 4096 | }, | ||
| 4097 | }, | ||
| 4098 | |||
| 4099 | 'xpack.rollup.get_jobs' => { | ||
| 4100 | parts => { id => {} }, | ||
| 4101 | paths => [ | ||
| 4102 | [ { id => 3 }, "_xpack", "rollup", "job", "{id}" ], | ||
| 4103 | [ {}, "_xpack", "rollup", "job" ], | ||
| 4104 | ], | ||
| 4105 | qs => { | ||
| 4106 | error_trace => "boolean", | ||
| 4107 | filter_path => "list", | ||
| 4108 | human => "boolean" | ||
| 4109 | }, | ||
| 4110 | }, | ||
| 4111 | |||
| 4112 | 'xpack.rollup.get_rollup_caps' => { | ||
| 4113 | parts => { id => {} }, | ||
| 4114 | paths => [ | ||
| 4115 | [ { id => 3 }, "_xpack", "rollup", "data", "{id}" ], | ||
| 4116 | [ {}, "_xpack", "rollup", "data" ], | ||
| 4117 | ], | ||
| 4118 | qs => { | ||
| 4119 | error_trace => "boolean", | ||
| 4120 | filter_path => "list", | ||
| 4121 | human => "boolean" | ||
| 4122 | }, | ||
| 4123 | }, | ||
| 4124 | |||
| 4125 | 'xpack.rollup.get_rollup_index_caps' => { | ||
| 4126 | parts => { index => { required => 1 } }, | ||
| 4127 | paths => | ||
| 4128 | [ [ { index => 0 }, "{index}", "_xpack", "rollup", "data" ] ], | ||
| 4129 | qs => { | ||
| 4130 | error_trace => "boolean", | ||
| 4131 | filter_path => "list", | ||
| 4132 | human => "boolean" | ||
| 4133 | }, | ||
| 4134 | }, | ||
| 4135 | |||
| 4136 | 'xpack.rollup.put_job' => { | ||
| 4137 | body => { required => 1 }, | ||
| 4138 | method => "PUT", | ||
| 4139 | parts => { id => { required => 1 } }, | ||
| 4140 | paths => [ [ { id => 3 }, "_xpack", "rollup", "job", "{id}" ] ], | ||
| 4141 | qs => { | ||
| 4142 | error_trace => "boolean", | ||
| 4143 | filter_path => "list", | ||
| 4144 | human => "boolean" | ||
| 4145 | }, | ||
| 4146 | }, | ||
| 4147 | |||
| 4148 | 'xpack.rollup.rollup_search' => { | ||
| 4149 | body => { required => 1 }, | ||
| 4150 | parts => { index => { required => 1 }, type => {} }, | ||
| 4151 | paths => [ | ||
| 4152 | [ { index => 0, type => 1 }, "{index}", | ||
| 4153 | "{type}", "_rollup_search", | ||
| 4154 | ], | ||
| 4155 | [ { index => 0 }, "{index}", "_rollup_search" ], | ||
| 4156 | ], | ||
| 4157 | qs => { | ||
| 4158 | error_trace => "boolean", | ||
| 4159 | filter_path => "list", | ||
| 4160 | human => "boolean", | ||
| 4161 | typed_keys => "boolean", | ||
| 4162 | }, | ||
| 4163 | }, | ||
| 4164 | |||
| 4165 | 'xpack.rollup.start_job' => { | ||
| 4166 | method => "POST", | ||
| 4167 | parts => { id => { required => 1 } }, | ||
| 4168 | paths => | ||
| 4169 | [ [ { id => 3 }, "_xpack", "rollup", "job", "{id}", "_start" ] ], | ||
| 4170 | qs => { | ||
| 4171 | error_trace => "boolean", | ||
| 4172 | filter_path => "list", | ||
| 4173 | human => "boolean" | ||
| 4174 | }, | ||
| 4175 | }, | ||
| 4176 | |||
| 4177 | 'xpack.rollup.stop_job' => { | ||
| 4178 | method => "POST", | ||
| 4179 | parts => { id => { required => 1 } }, | ||
| 4180 | paths => | ||
| 4181 | [ [ { id => 3 }, "_xpack", "rollup", "job", "{id}", "_stop" ] ], | ||
| 4182 | qs => { | ||
| 4183 | error_trace => "boolean", | ||
| 4184 | filter_path => "list", | ||
| 4185 | human => "boolean", | ||
| 4186 | timeout => "time", | ||
| 4187 | wait_for_completion => "boolean", | ||
| 4188 | }, | ||
| 4189 | }, | ||
| 4190 | |||
| 4191 | 'xpack.security.authenticate' => { | ||
| 4192 | doc => "security-api-authenticate", | ||
| 4193 | parts => {}, | ||
| 4194 | paths => [ [ {}, "_xpack", "security", "_authenticate" ] ], | ||
| 4195 | qs => { | ||
| 4196 | error_trace => "boolean", | ||
| 4197 | filter_path => "list", | ||
| 4198 | human => "boolean" | ||
| 4199 | }, | ||
| 4200 | }, | ||
| 4201 | |||
| 4202 | 'xpack.security.change_password' => { | ||
| 4203 | body => { required => 1 }, | ||
| 4204 | doc => "security-api-change-password", | ||
| 4205 | method => "PUT", | ||
| 4206 | parts => { username => {} }, | ||
| 4207 | paths => [ | ||
| 4208 | [ { username => 3 }, "_xpack", | ||
| 4209 | "security", "user", | ||
| 4210 | "{username}", "_password", | ||
| 4211 | ], | ||
| 4212 | [ {}, "_xpack", "security", "user", "_password" ], | ||
| 4213 | ], | ||
| 4214 | qs => { | ||
| 4215 | error_trace => "boolean", | ||
| 4216 | filter_path => "list", | ||
| 4217 | human => "boolean", | ||
| 4218 | refresh => "enum", | ||
| 4219 | }, | ||
| 4220 | }, | ||
| 4221 | |||
| 4222 | 'xpack.security.clear_cached_realms' => { | ||
| 4223 | doc => "security-api-clear-cache", | ||
| 4224 | method => "POST", | ||
| 4225 | parts => { realms => { multi => 1, required => 1 } }, | ||
| 4226 | paths => [ | ||
| 4227 | [ { realms => 3 }, "_xpack", | ||
| 4228 | "security", "realm", | ||
| 4229 | "{realms}", "_clear_cache", | ||
| 4230 | ], | ||
| 4231 | ], | ||
| 4232 | qs => { | ||
| 4233 | error_trace => "boolean", | ||
| 4234 | filter_path => "list", | ||
| 4235 | human => "boolean", | ||
| 4236 | usernames => "list", | ||
| 4237 | }, | ||
| 4238 | }, | ||
| 4239 | |||
| 4240 | 'xpack.security.clear_cached_roles' => { | ||
| 4241 | doc => "security-api-clear-role-cache", | ||
| 4242 | method => "POST", | ||
| 4243 | parts => { name => { multi => 1, required => 1 } }, | ||
| 4244 | paths => [ | ||
| 4245 | [ { name => 3 }, "_xpack", | ||
| 4246 | "security", "role", | ||
| 4247 | "{name}", "_clear_cache", | ||
| 4248 | ], | ||
| 4249 | ], | ||
| 4250 | qs => { | ||
| 4251 | error_trace => "boolean", | ||
| 4252 | filter_path => "list", | ||
| 4253 | human => "boolean" | ||
| 4254 | }, | ||
| 4255 | }, | ||
| 4256 | |||
| 4257 | 'xpack.security.delete_privileges' => { | ||
| 4258 | doc => "", | ||
| 4259 | method => "DELETE", | ||
| 4260 | parts => | ||
| 4261 | { application => { required => 1 }, name => { required => 1 } }, | ||
| 4262 | paths => [ | ||
| 4263 | [ { application => 3, name => 4 }, "_xpack", | ||
| 4264 | "security", "privilege", | ||
| 4265 | "{application}", "{name}", | ||
| 4266 | ], | ||
| 4267 | ], | ||
| 4268 | qs => { | ||
| 4269 | error_trace => "boolean", | ||
| 4270 | filter_path => "list", | ||
| 4271 | human => "boolean", | ||
| 4272 | refresh => "enum", | ||
| 4273 | }, | ||
| 4274 | }, | ||
| 4275 | |||
| 4276 | 'xpack.security.delete_role' => { | ||
| 4277 | doc => "security-api-delete-role", | ||
| 4278 | method => "DELETE", | ||
| 4279 | parts => { name => { required => 1 } }, | ||
| 4280 | paths => | ||
| 4281 | [ [ { name => 3 }, "_xpack", "security", "role", "{name}" ] ], | ||
| 4282 | qs => { | ||
| 4283 | error_trace => "boolean", | ||
| 4284 | filter_path => "list", | ||
| 4285 | human => "boolean", | ||
| 4286 | refresh => "enum", | ||
| 4287 | }, | ||
| 4288 | }, | ||
| 4289 | |||
| 4290 | 'xpack.security.delete_role_mapping' => { | ||
| 4291 | doc => "security-api-delete-role-mapping", | ||
| 4292 | method => "DELETE", | ||
| 4293 | parts => { name => { required => 1 } }, | ||
| 4294 | paths => [ | ||
| 4295 | [ { name => 3 }, "_xpack", "security", "role_mapping", "{name}" ], | ||
| 4296 | ], | ||
| 4297 | qs => { | ||
| 4298 | error_trace => "boolean", | ||
| 4299 | filter_path => "list", | ||
| 4300 | human => "boolean", | ||
| 4301 | refresh => "enum", | ||
| 4302 | }, | ||
| 4303 | }, | ||
| 4304 | |||
| 4305 | 'xpack.security.delete_user' => { | ||
| 4306 | doc => "security-api-delete-user", | ||
| 4307 | method => "DELETE", | ||
| 4308 | parts => { username => { required => 1 } }, | ||
| 4309 | paths => [ | ||
| 4310 | [ { username => 3 }, "_xpack", "security", "user", "{username}" ], | ||
| 4311 | ], | ||
| 4312 | qs => { | ||
| 4313 | error_trace => "boolean", | ||
| 4314 | filter_path => "list", | ||
| 4315 | human => "boolean", | ||
| 4316 | refresh => "enum", | ||
| 4317 | }, | ||
| 4318 | }, | ||
| 4319 | |||
| 4320 | 'xpack.security.disable_user' => { | ||
| 4321 | doc => "security-api-disable-user", | ||
| 4322 | method => "PUT", | ||
| 4323 | parts => { username => { required => 1 } }, | ||
| 4324 | paths => [ | ||
| 4325 | [ { username => 3 }, "_xpack", | ||
| 4326 | "security", "user", | ||
| 4327 | "{username}", "_disable", | ||
| 4328 | ], | ||
| 4329 | ], | ||
| 4330 | qs => { | ||
| 4331 | error_trace => "boolean", | ||
| 4332 | filter_path => "list", | ||
| 4333 | human => "boolean", | ||
| 4334 | refresh => "enum", | ||
| 4335 | }, | ||
| 4336 | }, | ||
| 4337 | |||
| 4338 | 'xpack.security.enable_user' => { | ||
| 4339 | doc => "security-api-enable-user", | ||
| 4340 | method => "PUT", | ||
| 4341 | parts => { username => { required => 1 } }, | ||
| 4342 | paths => [ | ||
| 4343 | [ { username => 3 }, "_xpack", "security", "user", | ||
| 4344 | "{username}", "_enable", | ||
| 4345 | ], | ||
| 4346 | ], | ||
| 4347 | qs => { | ||
| 4348 | error_trace => "boolean", | ||
| 4349 | filter_path => "list", | ||
| 4350 | human => "boolean", | ||
| 4351 | refresh => "enum", | ||
| 4352 | }, | ||
| 4353 | }, | ||
| 4354 | |||
| 4355 | 'xpack.security.get_privileges' => { | ||
| 4356 | doc => "", | ||
| 4357 | parts => { application => {}, name => {} }, | ||
| 4358 | paths => [ | ||
| 4359 | [ { application => 3, name => 4 }, "_xpack", | ||
| 4360 | "security", "privilege", | ||
| 4361 | "{application}", "{name}", | ||
| 4362 | ], | ||
| 4363 | [ { application => 3 }, "_xpack", | ||
| 4364 | "security", "privilege", | ||
| 4365 | "{application}", | ||
| 4366 | ], | ||
| 4367 | [ {}, "_xpack", "security", "privilege" ], | ||
| 4368 | ], | ||
| 4369 | qs => { | ||
| 4370 | error_trace => "boolean", | ||
| 4371 | filter_path => "list", | ||
| 4372 | human => "boolean" | ||
| 4373 | }, | ||
| 4374 | }, | ||
| 4375 | |||
| 4376 | 'xpack.security.get_role' => { | ||
| 4377 | doc => "security-api-get-role", | ||
| 4378 | parts => { name => {} }, | ||
| 4379 | paths => [ | ||
| 4380 | [ { name => 3 }, "_xpack", "security", "role", "{name}" ], | ||
| 4381 | [ {}, "_xpack", "security", "role" ], | ||
| 4382 | ], | ||
| 4383 | qs => { | ||
| 4384 | error_trace => "boolean", | ||
| 4385 | filter_path => "list", | ||
| 4386 | human => "boolean" | ||
| 4387 | }, | ||
| 4388 | }, | ||
| 4389 | |||
| 4390 | 'xpack.security.get_role_mapping' => { | ||
| 4391 | doc => "security-api-get-role-mapping", | ||
| 4392 | parts => { name => {} }, | ||
| 4393 | paths => [ | ||
| 4394 | [ { name => 3 }, "_xpack", "security", "role_mapping", "{name}" ], | ||
| 4395 | [ {}, "_xpack", "security", "role_mapping" ], | ||
| 4396 | ], | ||
| 4397 | qs => { | ||
| 4398 | error_trace => "boolean", | ||
| 4399 | filter_path => "list", | ||
| 4400 | human => "boolean" | ||
| 4401 | }, | ||
| 4402 | }, | ||
| 4403 | |||
| 4404 | 'xpack.security.get_token' => { | ||
| 4405 | body => { required => 1 }, | ||
| 4406 | doc => "security-api-get-token", | ||
| 4407 | method => "POST", | ||
| 4408 | parts => {}, | ||
| 4409 | paths => [ [ {}, "_xpack", "security", "oauth2", "token" ] ], | ||
| 4410 | qs => { | ||
| 4411 | error_trace => "boolean", | ||
| 4412 | filter_path => "list", | ||
| 4413 | human => "boolean" | ||
| 4414 | }, | ||
| 4415 | }, | ||
| 4416 | |||
| 4417 | 'xpack.security.get_user' => { | ||
| 4418 | doc => "security-api-get-user", | ||
| 4419 | parts => { username => { multi => 1 } }, | ||
| 4420 | paths => [ | ||
| 4421 | [ { username => 3 }, "_xpack", "security", "user", "{username}" ], | ||
| 4422 | [ {}, "_xpack", "security", "user" ], | ||
| 4423 | ], | ||
| 4424 | qs => { | ||
| 4425 | error_trace => "boolean", | ||
| 4426 | filter_path => "list", | ||
| 4427 | human => "boolean" | ||
| 4428 | }, | ||
| 4429 | }, | ||
| 4430 | |||
| 4431 | 'xpack.security.get_user_privileges' => { | ||
| 4432 | doc => "security-api-get-privileges", | ||
| 4433 | parts => {}, | ||
| 4434 | paths => [ [ {}, "_xpack", "security", "user", "_privileges" ] ], | ||
| 4435 | qs => { | ||
| 4436 | error_trace => "boolean", | ||
| 4437 | filter_path => "list", | ||
| 4438 | human => "boolean" | ||
| 4439 | }, | ||
| 4440 | }, | ||
| 4441 | |||
| 4442 | 'xpack.security.has_privileges' => { | ||
| 4443 | body => { required => 1 }, | ||
| 4444 | doc => "security-api-has-privileges", | ||
| 4445 | parts => { user => {} }, | ||
| 4446 | paths => [ | ||
| 4447 | [ { user => 3 }, "_xpack", | ||
| 4448 | "security", "user", | ||
| 4449 | "{user}", "_has_privileges", | ||
| 4450 | ], | ||
| 4451 | [ {}, "_xpack", "security", "user", "_has_privileges" ], | ||
| 4452 | ], | ||
| 4453 | qs => { | ||
| 4454 | error_trace => "boolean", | ||
| 4455 | filter_path => "list", | ||
| 4456 | human => "boolean" | ||
| 4457 | }, | ||
| 4458 | }, | ||
| 4459 | |||
| 4460 | 'xpack.security.invalidate_token' => { | ||
| 4461 | body => { required => 1 }, | ||
| 4462 | doc => "security-api-invalidate-token", | ||
| 4463 | method => "DELETE", | ||
| 4464 | parts => {}, | ||
| 4465 | paths => [ [ {}, "_xpack", "security", "oauth2", "token" ] ], | ||
| 4466 | qs => { | ||
| 4467 | error_trace => "boolean", | ||
| 4468 | filter_path => "list", | ||
| 4469 | human => "boolean" | ||
| 4470 | }, | ||
| 4471 | }, | ||
| 4472 | |||
| 4473 | 'xpack.security.put_privileges' => { | ||
| 4474 | body => { required => 1 }, | ||
| 4475 | doc => "", | ||
| 4476 | method => "PUT", | ||
| 4477 | parts => {}, | ||
| 4478 | paths => [ [ {}, "_xpack", "security", "privilege" ] ], | ||
| 4479 | qs => { | ||
| 4480 | error_trace => "boolean", | ||
| 4481 | filter_path => "list", | ||
| 4482 | human => "boolean", | ||
| 4483 | refresh => "enum", | ||
| 4484 | }, | ||
| 4485 | }, | ||
| 4486 | |||
| 4487 | 'xpack.security.put_role' => { | ||
| 4488 | body => { required => 1 }, | ||
| 4489 | doc => "security-api-put-role", | ||
| 4490 | method => "PUT", | ||
| 4491 | parts => { name => { required => 1 } }, | ||
| 4492 | paths => | ||
| 4493 | [ [ { name => 3 }, "_xpack", "security", "role", "{name}" ] ], | ||
| 4494 | qs => { | ||
| 4495 | error_trace => "boolean", | ||
| 4496 | filter_path => "list", | ||
| 4497 | human => "boolean", | ||
| 4498 | refresh => "enum", | ||
| 4499 | }, | ||
| 4500 | }, | ||
| 4501 | |||
| 4502 | 'xpack.security.put_role_mapping' => { | ||
| 4503 | body => { required => 1 }, | ||
| 4504 | doc => "security-api-put-role-mapping", | ||
| 4505 | method => "PUT", | ||
| 4506 | parts => { name => { required => 1 } }, | ||
| 4507 | paths => [ | ||
| 4508 | [ { name => 3 }, "_xpack", "security", "role_mapping", "{name}" ], | ||
| 4509 | ], | ||
| 4510 | qs => { | ||
| 4511 | error_trace => "boolean", | ||
| 4512 | filter_path => "list", | ||
| 4513 | human => "boolean", | ||
| 4514 | refresh => "enum", | ||
| 4515 | }, | ||
| 4516 | }, | ||
| 4517 | |||
| 4518 | 'xpack.security.put_user' => { | ||
| 4519 | body => { required => 1 }, | ||
| 4520 | doc => "security-api-put-user", | ||
| 4521 | method => "PUT", | ||
| 4522 | parts => { username => { required => 1 } }, | ||
| 4523 | paths => [ | ||
| 4524 | [ { username => 3 }, "_xpack", "security", "user", "{username}" ], | ||
| 4525 | ], | ||
| 4526 | qs => { | ||
| 4527 | error_trace => "boolean", | ||
| 4528 | filter_path => "list", | ||
| 4529 | human => "boolean", | ||
| 4530 | refresh => "enum", | ||
| 4531 | }, | ||
| 4532 | }, | ||
| 4533 | |||
| 4534 | 'xpack.sql.clear_cursor' => { | ||
| 4535 | body => { required => 1 }, | ||
| 4536 | doc => "", | ||
| 4537 | method => "POST", | ||
| 4538 | parts => {}, | ||
| 4539 | paths => [ [ {}, "_xpack", "sql", "close" ] ], | ||
| 4540 | qs => { | ||
| 4541 | error_trace => "boolean", | ||
| 4542 | filter_path => "list", | ||
| 4543 | human => "boolean" | ||
| 4544 | }, | ||
| 4545 | }, | ||
| 4546 | |||
| 4547 | 'xpack.sql.query' => { | ||
| 4548 | body => { required => 1 }, | ||
| 4549 | doc => "", | ||
| 4550 | method => "POST", | ||
| 4551 | parts => {}, | ||
| 4552 | paths => [ [ {}, "_xpack", "sql" ] ], | ||
| 4553 | qs => { | ||
| 4554 | error_trace => "boolean", | ||
| 4555 | filter_path => "list", | ||
| 4556 | format => "string", | ||
| 4557 | human => "boolean", | ||
| 4558 | }, | ||
| 4559 | }, | ||
| 4560 | |||
| 4561 | 'xpack.sql.translate' => { | ||
| 4562 | body => { required => 1 }, | ||
| 4563 | doc => "", | ||
| 4564 | method => "POST", | ||
| 4565 | parts => {}, | ||
| 4566 | paths => [ [ {}, "_xpack", "sql", "translate" ] ], | ||
| 4567 | qs => { | ||
| 4568 | error_trace => "boolean", | ||
| 4569 | filter_path => "list", | ||
| 4570 | human => "boolean" | ||
| 4571 | }, | ||
| 4572 | }, | ||
| 4573 | |||
| 4574 | 'xpack.ssl.certificates' => { | ||
| 4575 | doc => "security-api-ssl", | ||
| 4576 | parts => {}, | ||
| 4577 | paths => [ [ {}, "_xpack", "ssl", "certificates" ] ], | ||
| 4578 | qs => { | ||
| 4579 | error_trace => "boolean", | ||
| 4580 | filter_path => "list", | ||
| 4581 | human => "boolean" | ||
| 4582 | }, | ||
| 4583 | }, | ||
| 4584 | |||
| 4585 | 'xpack.usage' => { | ||
| 4586 | doc => "", | ||
| 4587 | parts => {}, | ||
| 4588 | paths => [ [ {}, "_xpack", "usage" ] ], | ||
| 4589 | qs => { | ||
| 4590 | error_trace => "boolean", | ||
| 4591 | filter_path => "list", | ||
| 4592 | human => "boolean", | ||
| 4593 | master_timeout => "time", | ||
| 4594 | }, | ||
| 4595 | }, | ||
| 4596 | |||
| 4597 | 'xpack.watcher.ack_watch' => { | ||
| 4598 | doc => "watcher-api-ack-watch", | ||
| 4599 | method => "PUT", | ||
| 4600 | parts => | ||
| 4601 | { action_id => { multi => 1 }, watch_id => { required => 1 } }, | ||
| 4602 | paths => [ | ||
| 4603 | [ { action_id => 5, watch_id => 3 }, "_xpack", | ||
| 4604 | "watcher", "watch", | ||
| 4605 | "{watch_id}", "_ack", | ||
| 4606 | "{action_id}", | ||
| 4607 | ], | ||
| 4608 | [ { watch_id => 3 }, "_xpack", "watcher", "watch", | ||
| 4609 | "{watch_id}", "_ack", | ||
| 4610 | ], | ||
| 4611 | ], | ||
| 4612 | qs => { | ||
| 4613 | error_trace => "boolean", | ||
| 4614 | filter_path => "list", | ||
| 4615 | human => "boolean", | ||
| 4616 | master_timeout => "time", | ||
| 4617 | }, | ||
| 4618 | }, | ||
| 4619 | |||
| 4620 | 'xpack.watcher.activate_watch' => { | ||
| 4621 | doc => "watcher-api-activate-watch", | ||
| 4622 | method => "PUT", | ||
| 4623 | parts => { watch_id => { required => 1 } }, | ||
| 4624 | paths => [ | ||
| 4625 | [ { watch_id => 3 }, "_xpack", | ||
| 4626 | "watcher", "watch", | ||
| 4627 | "{watch_id}", "_activate", | ||
| 4628 | ], | ||
| 4629 | ], | ||
| 4630 | qs => { | ||
| 4631 | error_trace => "boolean", | ||
| 4632 | filter_path => "list", | ||
| 4633 | human => "boolean", | ||
| 4634 | master_timeout => "time", | ||
| 4635 | }, | ||
| 4636 | }, | ||
| 4637 | |||
| 4638 | 'xpack.watcher.deactivate_watch' => { | ||
| 4639 | doc => "watcher-api-deactivate-watch", | ||
| 4640 | method => "PUT", | ||
| 4641 | parts => { watch_id => { required => 1 } }, | ||
| 4642 | paths => [ | ||
| 4643 | [ { watch_id => 3 }, "_xpack", | ||
| 4644 | "watcher", "watch", | ||
| 4645 | "{watch_id}", "_deactivate", | ||
| 4646 | ], | ||
| 4647 | ], | ||
| 4648 | qs => { | ||
| 4649 | error_trace => "boolean", | ||
| 4650 | filter_path => "list", | ||
| 4651 | human => "boolean", | ||
| 4652 | master_timeout => "time", | ||
| 4653 | }, | ||
| 4654 | }, | ||
| 4655 | |||
| 4656 | 'xpack.watcher.delete_watch' => { | ||
| 4657 | doc => "watcher-api-delete-watch", | ||
| 4658 | method => "DELETE", | ||
| 4659 | parts => { id => { required => 1 } }, | ||
| 4660 | paths => [ [ { id => 3 }, "_xpack", "watcher", "watch", "{id}" ] ], | ||
| 4661 | qs => { | ||
| 4662 | error_trace => "boolean", | ||
| 4663 | filter_path => "list", | ||
| 4664 | human => "boolean", | ||
| 4665 | master_timeout => "time", | ||
| 4666 | }, | ||
| 4667 | }, | ||
| 4668 | |||
| 4669 | 'xpack.watcher.execute_watch' => { | ||
| 4670 | body => {}, | ||
| 4671 | doc => "watcher-api-execute-watch", | ||
| 4672 | method => "PUT", | ||
| 4673 | parts => { id => {} }, | ||
| 4674 | paths => [ | ||
| 4675 | [ { id => 3 }, "_xpack", "watcher", "watch", "{id}", "_execute" ], | ||
| 4676 | [ {}, "_xpack", "watcher", "watch", "_execute" ], | ||
| 4677 | ], | ||
| 4678 | qs => { | ||
| 4679 | debug => "boolean", | ||
| 4680 | error_trace => "boolean", | ||
| 4681 | filter_path => "list", | ||
| 4682 | human => "boolean", | ||
| 4683 | }, | ||
| 4684 | }, | ||
| 4685 | |||
| 4686 | 'xpack.watcher.get_watch' => { | ||
| 4687 | doc => "watcher-api-get-watch", | ||
| 4688 | parts => { id => { required => 1 } }, | ||
| 4689 | paths => [ [ { id => 3 }, "_xpack", "watcher", "watch", "{id}" ] ], | ||
| 4690 | qs => { | ||
| 4691 | error_trace => "boolean", | ||
| 4692 | filter_path => "list", | ||
| 4693 | human => "boolean" | ||
| 4694 | }, | ||
| 4695 | }, | ||
| 4696 | |||
| 4697 | 'xpack.watcher.put_watch' => { | ||
| 4698 | body => {}, | ||
| 4699 | doc => "watcher-api-put-watch", | ||
| 4700 | method => "PUT", | ||
| 4701 | parts => { id => { required => 1 } }, | ||
| 4702 | paths => [ [ { id => 3 }, "_xpack", "watcher", "watch", "{id}" ] ], | ||
| 4703 | qs => { | ||
| 4704 | active => "boolean", | ||
| 4705 | error_trace => "boolean", | ||
| 4706 | filter_path => "list", | ||
| 4707 | human => "boolean", | ||
| 4708 | if_primary_term => "number", | ||
| 4709 | if_seq_no => "number", | ||
| 4710 | master_timeout => "time", | ||
| 4711 | version => "number", | ||
| 4712 | }, | ||
| 4713 | }, | ||
| 4714 | |||
| 4715 | 'xpack.watcher.restart' => { | ||
| 4716 | doc => "watcher-api-restart", | ||
| 4717 | method => "POST", | ||
| 4718 | parts => {}, | ||
| 4719 | paths => [ [ {}, "_xpack", "watcher", "_restart" ] ], | ||
| 4720 | qs => { | ||
| 4721 | error_trace => "boolean", | ||
| 4722 | filter_path => "list", | ||
| 4723 | human => "boolean" | ||
| 4724 | }, | ||
| 4725 | }, | ||
| 4726 | |||
| 4727 | 'xpack.watcher.start' => { | ||
| 4728 | doc => "watcher-api-start", | ||
| 4729 | method => "POST", | ||
| 4730 | parts => {}, | ||
| 4731 | paths => [ [ {}, "_xpack", "watcher", "_start" ] ], | ||
| 4732 | qs => { | ||
| 4733 | error_trace => "boolean", | ||
| 4734 | filter_path => "list", | ||
| 4735 | human => "boolean" | ||
| 4736 | }, | ||
| 4737 | }, | ||
| 4738 | |||
| 4739 | 'xpack.watcher.stats' => { | ||
| 4740 | doc => "watcher-api-stats", | ||
| 4741 | parts => { metric => {} }, | ||
| 4742 | paths => [ | ||
| 4743 | [ { metric => 3 }, "_xpack", "watcher", "stats", "{metric}" ], | ||
| 4744 | [ {}, "_xpack", "watcher", "stats" ], | ||
| 4745 | ], | ||
| 4746 | qs => { | ||
| 4747 | emit_stacktraces => "boolean", | ||
| 4748 | error_trace => "boolean", | ||
| 4749 | filter_path => "list", | ||
| 4750 | human => "boolean", | ||
| 4751 | }, | ||
| 4752 | }, | ||
| 4753 | |||
| 4754 | 'xpack.watcher.stop' => { | ||
| 4755 | doc => "watcher-api-stop", | ||
| 4756 | method => "POST", | ||
| 4757 | parts => {}, | ||
| 4758 | paths => [ [ {}, "_xpack", "watcher", "_stop" ] ], | ||
| 4759 | qs => { | ||
| 4760 | error_trace => "boolean", | ||
| 4761 | filter_path => "list", | ||
| 4762 | human => "boolean" | ||
| 4763 | }, | ||
| 4764 | }, | ||
| 4765 | |||
| 4766 | #=== AUTOGEN - END === | ||
| 4767 | |||
| 4768 | ); | ||
| 4769 | |||
| 4770 | __PACKAGE__->_qs_init( \%API ); | ||
| 4771 | 1; | ||
| 4772 | |||
| 4773 | =pod | ||
| 4774 | |||
| 4775 | =encoding UTF-8 | ||
| 4776 | |||
| 4777 | =head1 NAME | ||
| 4778 | |||
| 4779 | Search::Elasticsearch::Client::6_0::Role::API - This class contains the spec for the Elasticsearch APIs | ||
| 4780 | |||
| 4781 | =head1 VERSION | ||
| 4782 | |||
| 4783 | version 7.711001 | ||
| 4784 | |||
| 4785 | =head1 DESCRIPTION | ||
| 4786 | |||
| 4787 | All of the Elasticsearch APIs are defined in this role. The example given below | ||
| 4788 | is the definition for the L<Search::Elasticsearch::Client::6_0::Direct/index()> method: | ||
| 4789 | |||
| 4790 | 'index' => { | ||
| 4791 | body => { required => 1 }, | ||
| 4792 | doc => "docs-index_", | ||
| 4793 | method => "POST", | ||
| 4794 | parts => { | ||
| 4795 | id => {}, | ||
| 4796 | index => { required => 1 }, | ||
| 4797 | type => { required => 1 } | ||
| 4798 | }, | ||
| 4799 | paths => [ | ||
| 4800 | [ { id => 2, index => 0, type => 1 }, "{index}", | ||
| 4801 | "{type}", "{id}" | ||
| 4802 | ], | ||
| 4803 | [ { index => 0, type => 1 }, "{index}", "{type}" ], | ||
| 4804 | ], | ||
| 4805 | qs => { | ||
| 4806 | filter_path => "list", | ||
| 4807 | op_type => "enum", | ||
| 4808 | parent => "string", | ||
| 4809 | pipeline => "string", | ||
| 4810 | refresh => "enum", | ||
| 4811 | routing => "string", | ||
| 4812 | timeout => "time", | ||
| 4813 | timestamp => "time", | ||
| 4814 | ttl => "time", | ||
| 4815 | version => "number", | ||
| 4816 | version_type => "enum", | ||
| 4817 | wait_for_active_shards => "string", | ||
| 4818 | }, | ||
| 4819 | }, | ||
| 4820 | |||
| 4821 | These definitions can be used by different L<Search::Elasticsearch::Role::Client> | ||
| 4822 | implementations to provide distinct user interfaces. | ||
| 4823 | |||
| 4824 | =head1 METHODS | ||
| 4825 | |||
| 4826 | =head2 C<api()> | ||
| 4827 | |||
| 4828 | $defn = $api->api($name); | ||
| 4829 | |||
| 4830 | The only method in this class is the C<api()> method which takes the name | ||
| 4831 | of the I<action> and returns its definition. Actions in the | ||
| 4832 | C<indices> or C<cluster> namespace use the namespace as a prefix, eg: | ||
| 4833 | |||
| 4834 | $defn = $e->api('indices.create'); | ||
| 4835 | $defn = $e->api('cluster.node_stats'); | ||
| 4836 | |||
| 4837 | =head1 SEE ALSO | ||
| 4838 | |||
| 4839 | =over | ||
| 4840 | |||
| 4841 | =item * | ||
| 4842 | |||
| 4843 | L<Search::Elasticsearch::Role::API> | ||
| 4844 | |||
| 4845 | =item * | ||
| 4846 | |||
| 4847 | L<Search::Elasticsearch::Client::6_0::Direct> | ||
| 4848 | |||
| 4849 | =back | ||
| 4850 | |||
| 4851 | =head1 AUTHOR | ||
| 4852 | |||
| 4853 | Enrico Zimuel <enrico.zimuel@elastic.co> | ||
| 4854 | |||
| 4855 | =head1 COPYRIGHT AND LICENSE | ||
| 4856 | |||
| 4857 | This software is Copyright (c) 2021 by Elasticsearch BV. | ||
| 4858 | |||
| 4859 | This is free software, licensed under: | ||
| 4860 | |||
| 4861 | The Apache License, Version 2.0, January 2004 | ||
| 4862 | |||
| 4863 | =cut | ||
| 4864 | |||
| 4865 | __END__ |