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