| 1 | # Licensed to Elasticsearch B.V under one or more agreements. | ||||||||||||||||||||
| 2 | # Elasticsearch B.V licenses this file to you under the Apache 2.0 License. | ||||||||||||||||||||
| 3 | # See the LICENSE file in the project root for more information | ||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | package Search::Elasticsearch::Client::7_0::Role::API; | ||||||||||||||||||||
| 6 | 55 | $Search::Elasticsearch::Client::7_0::Role::API::VERSION = '7.30_1'; # TRIAL | |||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | 55 | $Search::Elasticsearch::Client::7_0::Role::API::VERSION = '7.301'; | |||||||||||||||||||
| 9 | 55 | ▶ | use Moo::Role; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 10 | 55 | with 'Search::Elasticsearch::Role::API'; | |||||||||||||||||||
| 11 | |||||||||||||||||||||
| 12 | 55 | ▶ | use Search::Elasticsearch::Util qw(throw); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 13 | 55 | ▶ | use namespace::clean; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | 55 | has 'api_version' => ( is => 'ro', default => '7_0' ); | |||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | 55 | our %API; | |||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | #=================================== | ||||||||||||||||||||
| 20 | sub api { | ||||||||||||||||||||
| 21 | #=================================== | ||||||||||||||||||||
| 22 | 55 | ▶ | my $name = $_[1] || return \%API; | ||||||||||||||||||
|
Subroutine
api: called CC=3 SCAR=18.4
Pod
documented
Condition50%1/2
$_[1] || (return \%Search::Elasticsearch::Client::7_0::Role::API::API)
MC/DC0%0/1
$_[1] || (return \%Search::Elasticsearch::Client::7_0::Role::API::API)
$_[1]
Truth table50%1/2
A
A= $_[1]
| |||||||||||||||||||||
| 23 | 0 | ▶ | return $API{$name} | ||||||||||||||||||
|
Condition0%0/3
$Search::Elasticsearch::Client::7_0::Role::API::API{$name} || throw('Internal', "Unknown api name ($name)")
MC/DC0%0/2
$Search::Elasticsearch::Client::7_0::Role::API::API{$name} || throw('Internal', "Unknown api name ($name)")
$Search::Elasticsearch::Client::7_0::Role::API::API{$name}
throw('Internal', "Unknown api name ($name)")
Truth table0%0/3
A || B
A= $Search::Elasticsearch::Client::7_0::Role::API::API{$name}B= throw('Internal', "Unknown api name ($name)")
| |||||||||||||||||||||
| 24 | || throw( 'Internal', "Unknown api name ($name)" ); | ||||||||||||||||||||
| 25 | } | ||||||||||||||||||||
| 26 | |||||||||||||||||||||
| 27 | #=================================== | ||||||||||||||||||||
| 28 | 55 | %API = ( | |||||||||||||||||||
| 29 | #=================================== | ||||||||||||||||||||
| 30 | |||||||||||||||||||||
| 31 | 'bulk.metadata' => { | ||||||||||||||||||||
| 32 | params => { | ||||||||||||||||||||
| 33 | '_index' => '_index', | ||||||||||||||||||||
| 34 | 'index' => '_index', | ||||||||||||||||||||
| 35 | '_id' => '_id', | ||||||||||||||||||||
| 36 | 'id' => '_id', | ||||||||||||||||||||
| 37 | 'pipeline' => 'pipeline', | ||||||||||||||||||||
| 38 | 'routing' => 'routing', | ||||||||||||||||||||
| 39 | '_routing' => 'routing', | ||||||||||||||||||||
| 40 | 'parent' => 'parent', | ||||||||||||||||||||
| 41 | '_parent' => 'parent', | ||||||||||||||||||||
| 42 | 'timestamp' => 'timestamp', | ||||||||||||||||||||
| 43 | '_timestamp' => 'timestamp', | ||||||||||||||||||||
| 44 | 'ttl' => 'ttl', | ||||||||||||||||||||
| 45 | '_ttl' => 'ttl', | ||||||||||||||||||||
| 46 | 'version' => 'version', | ||||||||||||||||||||
| 47 | '_version' => 'version', | ||||||||||||||||||||
| 48 | 'version_type' => 'version_type', | ||||||||||||||||||||
| 49 | '_version_type' => 'version_type', | ||||||||||||||||||||
| 50 | 'if_seq_no' => 'if_seq_no', | ||||||||||||||||||||
| 51 | 'if_primary_term' => 'if_primary_term' | ||||||||||||||||||||
| 52 | } | ||||||||||||||||||||
| 53 | }, | ||||||||||||||||||||
| 54 | 'bulk.update' => { | ||||||||||||||||||||
| 55 | params => [ | ||||||||||||||||||||
| 56 | '_source', '_source_includes', | ||||||||||||||||||||
| 57 | '_source_excludes', 'detect_noop', | ||||||||||||||||||||
| 58 | 'doc', 'doc_as_upsert', | ||||||||||||||||||||
| 59 | 'fields', 'retry_on_conflict', | ||||||||||||||||||||
| 60 | 'scripted_upsert', 'script', | ||||||||||||||||||||
| 61 | 'upsert', | ||||||||||||||||||||
| 62 | ] | ||||||||||||||||||||
| 63 | }, | ||||||||||||||||||||
| 64 | 'bulk.required' => { params => ['index'] }, | ||||||||||||||||||||
| 65 | |||||||||||||||||||||
| 66 | #=== AUTOGEN - START === | ||||||||||||||||||||
| 67 | |||||||||||||||||||||
| 68 | 'bulk' => { | ||||||||||||||||||||
| 69 | body => { required => 1 }, | ||||||||||||||||||||
| 70 | doc => "docs-bulk", | ||||||||||||||||||||
| 71 | method => "POST", | ||||||||||||||||||||
| 72 | parts => { index => {}, type => {} }, | ||||||||||||||||||||
| 73 | paths => [ | ||||||||||||||||||||
| 74 | [ { index => 0, type => 1 }, "{index}", "{type}", "_bulk" ], | ||||||||||||||||||||
| 75 | [ { index => 0 }, "{index}", "_bulk" ], | ||||||||||||||||||||
| 76 | [ {}, "_bulk" ], | ||||||||||||||||||||
| 77 | ], | ||||||||||||||||||||
| 78 | qs => { | ||||||||||||||||||||
| 79 | _source => "list", | ||||||||||||||||||||
| 80 | _source_excludes => "list", | ||||||||||||||||||||
| 81 | _source_includes => "list", | ||||||||||||||||||||
| 82 | error_trace => "boolean", | ||||||||||||||||||||
| 83 | filter_path => "list", | ||||||||||||||||||||
| 84 | human => "boolean", | ||||||||||||||||||||
| 85 | pipeline => "string", | ||||||||||||||||||||
| 86 | refresh => "enum", | ||||||||||||||||||||
| 87 | routing => "string", | ||||||||||||||||||||
| 88 | timeout => "time", | ||||||||||||||||||||
| 89 | wait_for_active_shards => "string", | ||||||||||||||||||||
| 90 | }, | ||||||||||||||||||||
| 91 | serialize => "bulk", | ||||||||||||||||||||
| 92 | }, | ||||||||||||||||||||
| 93 | |||||||||||||||||||||
| 94 | 'clear_scroll' => { | ||||||||||||||||||||
| 95 | body => {}, | ||||||||||||||||||||
| 96 | doc => "", | ||||||||||||||||||||
| 97 | method => "DELETE", | ||||||||||||||||||||
| 98 | parts => { scroll_id => { multi => 1 } }, | ||||||||||||||||||||
| 99 | paths => [ | ||||||||||||||||||||
| 100 | [ { scroll_id => 2 }, "_search", "scroll", "{scroll_id}" ], | ||||||||||||||||||||
| 101 | [ {}, "_search", "scroll" ], | ||||||||||||||||||||
| 102 | ], | ||||||||||||||||||||
| 103 | qs => { | ||||||||||||||||||||
| 104 | error_trace => "boolean", | ||||||||||||||||||||
| 105 | filter_path => "list", | ||||||||||||||||||||
| 106 | human => "boolean" | ||||||||||||||||||||
| 107 | }, | ||||||||||||||||||||
| 108 | }, | ||||||||||||||||||||
| 109 | |||||||||||||||||||||
| 110 | 'count' => { | ||||||||||||||||||||
| 111 | body => {}, | ||||||||||||||||||||
| 112 | doc => "search-count", | ||||||||||||||||||||
| 113 | method => "POST", | ||||||||||||||||||||
| 114 | parts => { index => { multi => 1 }, type => { multi => 1 } }, | ||||||||||||||||||||
| 115 | paths => [ | ||||||||||||||||||||
| 116 | [ { index => 0, type => 1 }, "{index}", "{type}", "_count" ], | ||||||||||||||||||||
| 117 | [ { index => 0 }, "{index}", "_count" ], | ||||||||||||||||||||
| 118 | [ {}, "_count" ], | ||||||||||||||||||||
| 119 | ], | ||||||||||||||||||||
| 120 | qs => { | ||||||||||||||||||||
| 121 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 122 | analyze_wildcard => "boolean", | ||||||||||||||||||||
| 123 | analyzer => "string", | ||||||||||||||||||||
| 124 | default_operator => "enum", | ||||||||||||||||||||
| 125 | df => "string", | ||||||||||||||||||||
| 126 | error_trace => "boolean", | ||||||||||||||||||||
| 127 | expand_wildcards => "enum", | ||||||||||||||||||||
| 128 | filter_path => "list", | ||||||||||||||||||||
| 129 | human => "boolean", | ||||||||||||||||||||
| 130 | ignore_throttled => "boolean", | ||||||||||||||||||||
| 131 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 132 | lenient => "boolean", | ||||||||||||||||||||
| 133 | min_score => "number", | ||||||||||||||||||||
| 134 | preference => "string", | ||||||||||||||||||||
| 135 | q => "string", | ||||||||||||||||||||
| 136 | routing => "list", | ||||||||||||||||||||
| 137 | terminate_after => "number", | ||||||||||||||||||||
| 138 | }, | ||||||||||||||||||||
| 139 | }, | ||||||||||||||||||||
| 140 | |||||||||||||||||||||
| 141 | 'create' => { | ||||||||||||||||||||
| 142 | body => { required => 1 }, | ||||||||||||||||||||
| 143 | doc => "docs-index_", | ||||||||||||||||||||
| 144 | method => "PUT", | ||||||||||||||||||||
| 145 | parts => { | ||||||||||||||||||||
| 146 | id => { required => 1 }, | ||||||||||||||||||||
| 147 | index => { required => 1 }, | ||||||||||||||||||||
| 148 | type => {} | ||||||||||||||||||||
| 149 | }, | ||||||||||||||||||||
| 150 | paths => [ | ||||||||||||||||||||
| 151 | [ { id => 2, index => 0, type => 1 }, | ||||||||||||||||||||
| 152 | "{index}", "{type}", "{id}", "_create", | ||||||||||||||||||||
| 153 | ], | ||||||||||||||||||||
| 154 | [ { id => 2, index => 0 }, "{index}", "_create", "{id}" ], | ||||||||||||||||||||
| 155 | ], | ||||||||||||||||||||
| 156 | qs => { | ||||||||||||||||||||
| 157 | error_trace => "boolean", | ||||||||||||||||||||
| 158 | filter_path => "list", | ||||||||||||||||||||
| 159 | human => "boolean", | ||||||||||||||||||||
| 160 | pipeline => "string", | ||||||||||||||||||||
| 161 | refresh => "enum", | ||||||||||||||||||||
| 162 | routing => "string", | ||||||||||||||||||||
| 163 | timeout => "time", | ||||||||||||||||||||
| 164 | version => "number", | ||||||||||||||||||||
| 165 | version_type => "enum", | ||||||||||||||||||||
| 166 | wait_for_active_shards => "string", | ||||||||||||||||||||
| 167 | }, | ||||||||||||||||||||
| 168 | }, | ||||||||||||||||||||
| 169 | |||||||||||||||||||||
| 170 | 'delete' => { | ||||||||||||||||||||
| 171 | doc => "docs-delete", | ||||||||||||||||||||
| 172 | method => "DELETE", | ||||||||||||||||||||
| 173 | parts => { | ||||||||||||||||||||
| 174 | id => { required => 1 }, | ||||||||||||||||||||
| 175 | index => { required => 1 }, | ||||||||||||||||||||
| 176 | type => {} | ||||||||||||||||||||
| 177 | }, | ||||||||||||||||||||
| 178 | paths => [ | ||||||||||||||||||||
| 179 | [ { id => 2, index => 0, type => 1 }, "{index}", | ||||||||||||||||||||
| 180 | "{type}", "{id}" | ||||||||||||||||||||
| 181 | ], | ||||||||||||||||||||
| 182 | [ { id => 2, index => 0 }, "{index}", "_doc", "{id}" ], | ||||||||||||||||||||
| 183 | ], | ||||||||||||||||||||
| 184 | qs => { | ||||||||||||||||||||
| 185 | error_trace => "boolean", | ||||||||||||||||||||
| 186 | filter_path => "list", | ||||||||||||||||||||
| 187 | human => "boolean", | ||||||||||||||||||||
| 188 | if_primary_term => "number", | ||||||||||||||||||||
| 189 | if_seq_no => "number", | ||||||||||||||||||||
| 190 | refresh => "enum", | ||||||||||||||||||||
| 191 | routing => "string", | ||||||||||||||||||||
| 192 | timeout => "time", | ||||||||||||||||||||
| 193 | version => "number", | ||||||||||||||||||||
| 194 | version_type => "enum", | ||||||||||||||||||||
| 195 | wait_for_active_shards => "string", | ||||||||||||||||||||
| 196 | }, | ||||||||||||||||||||
| 197 | }, | ||||||||||||||||||||
| 198 | |||||||||||||||||||||
| 199 | 'delete_by_query' => { | ||||||||||||||||||||
| 200 | body => { required => 1 }, | ||||||||||||||||||||
| 201 | doc => "docs-delete-by-query", | ||||||||||||||||||||
| 202 | method => "POST", | ||||||||||||||||||||
| 203 | parts => { | ||||||||||||||||||||
| 204 | index => { multi => 1, required => 1 }, | ||||||||||||||||||||
| 205 | type => { multi => 1 } | ||||||||||||||||||||
| 206 | }, | ||||||||||||||||||||
| 207 | paths => [ | ||||||||||||||||||||
| 208 | [ { index => 0, type => 1 }, "{index}", | ||||||||||||||||||||
| 209 | "{type}", "_delete_by_query", | ||||||||||||||||||||
| 210 | ], | ||||||||||||||||||||
| 211 | [ { index => 0 }, "{index}", "_delete_by_query" ], | ||||||||||||||||||||
| 212 | ], | ||||||||||||||||||||
| 213 | qs => { | ||||||||||||||||||||
| 214 | _source => "list", | ||||||||||||||||||||
| 215 | _source_excludes => "list", | ||||||||||||||||||||
| 216 | _source_includes => "list", | ||||||||||||||||||||
| 217 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 218 | analyze_wildcard => "boolean", | ||||||||||||||||||||
| 219 | analyzer => "string", | ||||||||||||||||||||
| 220 | conflicts => "enum", | ||||||||||||||||||||
| 221 | default_operator => "enum", | ||||||||||||||||||||
| 222 | df => "string", | ||||||||||||||||||||
| 223 | error_trace => "boolean", | ||||||||||||||||||||
| 224 | expand_wildcards => "enum", | ||||||||||||||||||||
| 225 | filter_path => "list", | ||||||||||||||||||||
| 226 | from => "number", | ||||||||||||||||||||
| 227 | human => "boolean", | ||||||||||||||||||||
| 228 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 229 | lenient => "boolean", | ||||||||||||||||||||
| 230 | max_docs => "number", | ||||||||||||||||||||
| 231 | preference => "string", | ||||||||||||||||||||
| 232 | q => "string", | ||||||||||||||||||||
| 233 | refresh => "boolean", | ||||||||||||||||||||
| 234 | request_cache => "boolean", | ||||||||||||||||||||
| 235 | requests_per_second => "number", | ||||||||||||||||||||
| 236 | routing => "list", | ||||||||||||||||||||
| 237 | scroll => "time", | ||||||||||||||||||||
| 238 | scroll_size => "number", | ||||||||||||||||||||
| 239 | search_timeout => "time", | ||||||||||||||||||||
| 240 | search_type => "enum", | ||||||||||||||||||||
| 241 | size => "number", | ||||||||||||||||||||
| 242 | slices => "number", | ||||||||||||||||||||
| 243 | sort => "list", | ||||||||||||||||||||
| 244 | stats => "list", | ||||||||||||||||||||
| 245 | terminate_after => "number", | ||||||||||||||||||||
| 246 | timeout => "time", | ||||||||||||||||||||
| 247 | version => "boolean", | ||||||||||||||||||||
| 248 | wait_for_active_shards => "string", | ||||||||||||||||||||
| 249 | wait_for_completion => "boolean", | ||||||||||||||||||||
| 250 | }, | ||||||||||||||||||||
| 251 | }, | ||||||||||||||||||||
| 252 | |||||||||||||||||||||
| 253 | 'delete_by_query_rethrottle' => { | ||||||||||||||||||||
| 254 | doc => "docs-delete-by-query", | ||||||||||||||||||||
| 255 | method => "POST", | ||||||||||||||||||||
| 256 | parts => { task_id => { required => 1 } }, | ||||||||||||||||||||
| 257 | paths => [ | ||||||||||||||||||||
| 258 | [ { task_id => 1 }, "_delete_by_query", | ||||||||||||||||||||
| 259 | "{task_id}", "_rethrottle", | ||||||||||||||||||||
| 260 | ], | ||||||||||||||||||||
| 261 | ], | ||||||||||||||||||||
| 262 | qs => { | ||||||||||||||||||||
| 263 | error_trace => "boolean", | ||||||||||||||||||||
| 264 | filter_path => "list", | ||||||||||||||||||||
| 265 | human => "boolean", | ||||||||||||||||||||
| 266 | requests_per_second => "number", | ||||||||||||||||||||
| 267 | }, | ||||||||||||||||||||
| 268 | }, | ||||||||||||||||||||
| 269 | |||||||||||||||||||||
| 270 | 'delete_script' => { | ||||||||||||||||||||
| 271 | doc => "modules-scripting", | ||||||||||||||||||||
| 272 | method => "DELETE", | ||||||||||||||||||||
| 273 | parts => { id => { required => 1 } }, | ||||||||||||||||||||
| 274 | paths => [ [ { id => 1 }, "_scripts", "{id}" ] ], | ||||||||||||||||||||
| 275 | qs => { | ||||||||||||||||||||
| 276 | error_trace => "boolean", | ||||||||||||||||||||
| 277 | filter_path => "list", | ||||||||||||||||||||
| 278 | human => "boolean", | ||||||||||||||||||||
| 279 | master_timeout => "time", | ||||||||||||||||||||
| 280 | timeout => "time", | ||||||||||||||||||||
| 281 | }, | ||||||||||||||||||||
| 282 | }, | ||||||||||||||||||||
| 283 | |||||||||||||||||||||
| 284 | 'exists' => { | ||||||||||||||||||||
| 285 | doc => "docs-get", | ||||||||||||||||||||
| 286 | method => "HEAD", | ||||||||||||||||||||
| 287 | parts => { | ||||||||||||||||||||
| 288 | id => { required => 1 }, | ||||||||||||||||||||
| 289 | index => { required => 1 }, | ||||||||||||||||||||
| 290 | type => {} | ||||||||||||||||||||
| 291 | }, | ||||||||||||||||||||
| 292 | paths => [ | ||||||||||||||||||||
| 293 | [ { id => 2, index => 0, type => 1 }, "{index}", | ||||||||||||||||||||
| 294 | "{type}", "{id}" | ||||||||||||||||||||
| 295 | ], | ||||||||||||||||||||
| 296 | [ { id => 2, index => 0 }, "{index}", "_doc", "{id}" ], | ||||||||||||||||||||
| 297 | ], | ||||||||||||||||||||
| 298 | qs => { | ||||||||||||||||||||
| 299 | _source => "list", | ||||||||||||||||||||
| 300 | _source_excludes => "list", | ||||||||||||||||||||
| 301 | _source_includes => "list", | ||||||||||||||||||||
| 302 | error_trace => "boolean", | ||||||||||||||||||||
| 303 | filter_path => "list", | ||||||||||||||||||||
| 304 | human => "boolean", | ||||||||||||||||||||
| 305 | preference => "string", | ||||||||||||||||||||
| 306 | realtime => "boolean", | ||||||||||||||||||||
| 307 | refresh => "boolean", | ||||||||||||||||||||
| 308 | routing => "string", | ||||||||||||||||||||
| 309 | stored_fields => "list", | ||||||||||||||||||||
| 310 | version => "number", | ||||||||||||||||||||
| 311 | version_type => "enum", | ||||||||||||||||||||
| 312 | }, | ||||||||||||||||||||
| 313 | }, | ||||||||||||||||||||
| 314 | |||||||||||||||||||||
| 315 | 'exists_source' => { | ||||||||||||||||||||
| 316 | doc => "docs-get", | ||||||||||||||||||||
| 317 | method => "HEAD", | ||||||||||||||||||||
| 318 | parts => { | ||||||||||||||||||||
| 319 | id => { required => 1 }, | ||||||||||||||||||||
| 320 | index => { required => 1 }, | ||||||||||||||||||||
| 321 | type => {} | ||||||||||||||||||||
| 322 | }, | ||||||||||||||||||||
| 323 | paths => [ | ||||||||||||||||||||
| 324 | [ { id => 2, index => 0, type => 1 }, | ||||||||||||||||||||
| 325 | "{index}", "{type}", "{id}", "_source", | ||||||||||||||||||||
| 326 | ], | ||||||||||||||||||||
| 327 | [ { id => 2, index => 0 }, "{index}", "_source", "{id}" ], | ||||||||||||||||||||
| 328 | ], | ||||||||||||||||||||
| 329 | qs => { | ||||||||||||||||||||
| 330 | _source => "list", | ||||||||||||||||||||
| 331 | _source_excludes => "list", | ||||||||||||||||||||
| 332 | _source_includes => "list", | ||||||||||||||||||||
| 333 | error_trace => "boolean", | ||||||||||||||||||||
| 334 | filter_path => "list", | ||||||||||||||||||||
| 335 | human => "boolean", | ||||||||||||||||||||
| 336 | preference => "string", | ||||||||||||||||||||
| 337 | realtime => "boolean", | ||||||||||||||||||||
| 338 | refresh => "boolean", | ||||||||||||||||||||
| 339 | routing => "string", | ||||||||||||||||||||
| 340 | version => "number", | ||||||||||||||||||||
| 341 | version_type => "enum", | ||||||||||||||||||||
| 342 | }, | ||||||||||||||||||||
| 343 | }, | ||||||||||||||||||||
| 344 | |||||||||||||||||||||
| 345 | 'explain' => { | ||||||||||||||||||||
| 346 | body => {}, | ||||||||||||||||||||
| 347 | doc => "search-explain", | ||||||||||||||||||||
| 348 | parts => { | ||||||||||||||||||||
| 349 | id => { required => 1 }, | ||||||||||||||||||||
| 350 | index => { required => 1 }, | ||||||||||||||||||||
| 351 | type => {} | ||||||||||||||||||||
| 352 | }, | ||||||||||||||||||||
| 353 | paths => [ | ||||||||||||||||||||
| 354 | [ { id => 2, index => 0, type => 1 }, "{index}", | ||||||||||||||||||||
| 355 | "{type}", "{id}", | ||||||||||||||||||||
| 356 | "_explain", | ||||||||||||||||||||
| 357 | ], | ||||||||||||||||||||
| 358 | [ { id => 2, index => 0 }, "{index}", "_explain", "{id}" ], | ||||||||||||||||||||
| 359 | ], | ||||||||||||||||||||
| 360 | qs => { | ||||||||||||||||||||
| 361 | _source => "list", | ||||||||||||||||||||
| 362 | _source_excludes => "list", | ||||||||||||||||||||
| 363 | _source_includes => "list", | ||||||||||||||||||||
| 364 | analyze_wildcard => "boolean", | ||||||||||||||||||||
| 365 | analyzer => "string", | ||||||||||||||||||||
| 366 | default_operator => "enum", | ||||||||||||||||||||
| 367 | df => "string", | ||||||||||||||||||||
| 368 | error_trace => "boolean", | ||||||||||||||||||||
| 369 | filter_path => "list", | ||||||||||||||||||||
| 370 | human => "boolean", | ||||||||||||||||||||
| 371 | lenient => "boolean", | ||||||||||||||||||||
| 372 | preference => "string", | ||||||||||||||||||||
| 373 | q => "string", | ||||||||||||||||||||
| 374 | routing => "string", | ||||||||||||||||||||
| 375 | stored_fields => "list", | ||||||||||||||||||||
| 376 | }, | ||||||||||||||||||||
| 377 | }, | ||||||||||||||||||||
| 378 | |||||||||||||||||||||
| 379 | 'field_caps' => { | ||||||||||||||||||||
| 380 | doc => "search-field-caps", | ||||||||||||||||||||
| 381 | parts => { index => { multi => 1 } }, | ||||||||||||||||||||
| 382 | paths => [ | ||||||||||||||||||||
| 383 | [ { index => 0 }, "{index}", "_field_caps" ], | ||||||||||||||||||||
| 384 | [ {}, "_field_caps" ], | ||||||||||||||||||||
| 385 | ], | ||||||||||||||||||||
| 386 | qs => { | ||||||||||||||||||||
| 387 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 388 | error_trace => "boolean", | ||||||||||||||||||||
| 389 | expand_wildcards => "enum", | ||||||||||||||||||||
| 390 | fields => "list", | ||||||||||||||||||||
| 391 | filter_path => "list", | ||||||||||||||||||||
| 392 | human => "boolean", | ||||||||||||||||||||
| 393 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 394 | include_unmapped => "boolean", | ||||||||||||||||||||
| 395 | }, | ||||||||||||||||||||
| 396 | }, | ||||||||||||||||||||
| 397 | |||||||||||||||||||||
| 398 | 'get' => { | ||||||||||||||||||||
| 399 | doc => "docs-get", | ||||||||||||||||||||
| 400 | parts => { | ||||||||||||||||||||
| 401 | id => { required => 1 }, | ||||||||||||||||||||
| 402 | index => { required => 1 }, | ||||||||||||||||||||
| 403 | type => {} | ||||||||||||||||||||
| 404 | }, | ||||||||||||||||||||
| 405 | paths => [ | ||||||||||||||||||||
| 406 | [ { id => 2, index => 0, type => 1 }, "{index}", | ||||||||||||||||||||
| 407 | "{type}", "{id}" | ||||||||||||||||||||
| 408 | ], | ||||||||||||||||||||
| 409 | [ { id => 2, index => 0 }, "{index}", "_doc", "{id}" ], | ||||||||||||||||||||
| 410 | ], | ||||||||||||||||||||
| 411 | qs => { | ||||||||||||||||||||
| 412 | _source => "list", | ||||||||||||||||||||
| 413 | _source_excludes => "list", | ||||||||||||||||||||
| 414 | _source_includes => "list", | ||||||||||||||||||||
| 415 | error_trace => "boolean", | ||||||||||||||||||||
| 416 | filter_path => "list", | ||||||||||||||||||||
| 417 | human => "boolean", | ||||||||||||||||||||
| 418 | preference => "string", | ||||||||||||||||||||
| 419 | realtime => "boolean", | ||||||||||||||||||||
| 420 | refresh => "boolean", | ||||||||||||||||||||
| 421 | routing => "string", | ||||||||||||||||||||
| 422 | stored_fields => "list", | ||||||||||||||||||||
| 423 | version => "number", | ||||||||||||||||||||
| 424 | version_type => "enum", | ||||||||||||||||||||
| 425 | }, | ||||||||||||||||||||
| 426 | }, | ||||||||||||||||||||
| 427 | |||||||||||||||||||||
| 428 | 'get_script' => { | ||||||||||||||||||||
| 429 | doc => "modules-scripting", | ||||||||||||||||||||
| 430 | parts => { id => { required => 1 } }, | ||||||||||||||||||||
| 431 | paths => [ [ { id => 1 }, "_scripts", "{id}" ] ], | ||||||||||||||||||||
| 432 | qs => { | ||||||||||||||||||||
| 433 | error_trace => "boolean", | ||||||||||||||||||||
| 434 | filter_path => "list", | ||||||||||||||||||||
| 435 | human => "boolean", | ||||||||||||||||||||
| 436 | master_timeout => "time", | ||||||||||||||||||||
| 437 | }, | ||||||||||||||||||||
| 438 | }, | ||||||||||||||||||||
| 439 | |||||||||||||||||||||
| 440 | 'get_source' => { | ||||||||||||||||||||
| 441 | doc => "docs-get", | ||||||||||||||||||||
| 442 | parts => { | ||||||||||||||||||||
| 443 | id => { required => 1 }, | ||||||||||||||||||||
| 444 | index => { required => 1 }, | ||||||||||||||||||||
| 445 | type => {} | ||||||||||||||||||||
| 446 | }, | ||||||||||||||||||||
| 447 | paths => [ | ||||||||||||||||||||
| 448 | [ { id => 2, index => 0, type => 1 }, | ||||||||||||||||||||
| 449 | "{index}", "{type}", "{id}", "_source", | ||||||||||||||||||||
| 450 | ], | ||||||||||||||||||||
| 451 | [ { id => 2, index => 0 }, "{index}", "_source", "{id}" ], | ||||||||||||||||||||
| 452 | ], | ||||||||||||||||||||
| 453 | qs => { | ||||||||||||||||||||
| 454 | _source => "list", | ||||||||||||||||||||
| 455 | _source_excludes => "list", | ||||||||||||||||||||
| 456 | _source_includes => "list", | ||||||||||||||||||||
| 457 | error_trace => "boolean", | ||||||||||||||||||||
| 458 | filter_path => "list", | ||||||||||||||||||||
| 459 | human => "boolean", | ||||||||||||||||||||
| 460 | preference => "string", | ||||||||||||||||||||
| 461 | realtime => "boolean", | ||||||||||||||||||||
| 462 | refresh => "boolean", | ||||||||||||||||||||
| 463 | routing => "string", | ||||||||||||||||||||
| 464 | version => "number", | ||||||||||||||||||||
| 465 | version_type => "enum", | ||||||||||||||||||||
| 466 | }, | ||||||||||||||||||||
| 467 | }, | ||||||||||||||||||||
| 468 | |||||||||||||||||||||
| 469 | 'index' => { | ||||||||||||||||||||
| 470 | body => { required => 1 }, | ||||||||||||||||||||
| 471 | doc => "docs-index_", | ||||||||||||||||||||
| 472 | method => "POST", | ||||||||||||||||||||
| 473 | parts => { id => {}, index => { required => 1 }, type => {} }, | ||||||||||||||||||||
| 474 | paths => [ | ||||||||||||||||||||
| 475 | [ { id => 2, index => 0, type => 1 }, "{index}", | ||||||||||||||||||||
| 476 | "{type}", "{id}" | ||||||||||||||||||||
| 477 | ], | ||||||||||||||||||||
| 478 | [ { id => 2, index => 0 }, "{index}", "_doc", "{id}" ], | ||||||||||||||||||||
| 479 | [ { index => 0, type => 1 }, "{index}", "{type}" ], | ||||||||||||||||||||
| 480 | [ { index => 0 }, "{index}", "_doc" ], | ||||||||||||||||||||
| 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 | pipeline => "string", | ||||||||||||||||||||
| 490 | refresh => "enum", | ||||||||||||||||||||
| 491 | routing => "string", | ||||||||||||||||||||
| 492 | timeout => "time", | ||||||||||||||||||||
| 493 | version => "number", | ||||||||||||||||||||
| 494 | version_type => "enum", | ||||||||||||||||||||
| 495 | wait_for_active_shards => "string", | ||||||||||||||||||||
| 496 | }, | ||||||||||||||||||||
| 497 | }, | ||||||||||||||||||||
| 498 | |||||||||||||||||||||
| 499 | 'info' => { | ||||||||||||||||||||
| 500 | doc => "", | ||||||||||||||||||||
| 501 | parts => {}, | ||||||||||||||||||||
| 502 | paths => [ [ {} ] ], | ||||||||||||||||||||
| 503 | qs => { | ||||||||||||||||||||
| 504 | error_trace => "boolean", | ||||||||||||||||||||
| 505 | filter_path => "list", | ||||||||||||||||||||
| 506 | human => "boolean" | ||||||||||||||||||||
| 507 | }, | ||||||||||||||||||||
| 508 | }, | ||||||||||||||||||||
| 509 | |||||||||||||||||||||
| 510 | 'mget' => { | ||||||||||||||||||||
| 511 | body => { required => 1 }, | ||||||||||||||||||||
| 512 | doc => "docs-multi-get", | ||||||||||||||||||||
| 513 | parts => { index => {}, type => {} }, | ||||||||||||||||||||
| 514 | paths => [ | ||||||||||||||||||||
| 515 | [ { index => 0, type => 1 }, "{index}", "{type}", "_mget" ], | ||||||||||||||||||||
| 516 | [ { index => 0 }, "{index}", "_mget" ], | ||||||||||||||||||||
| 517 | [ {}, "_mget" ], | ||||||||||||||||||||
| 518 | ], | ||||||||||||||||||||
| 519 | qs => { | ||||||||||||||||||||
| 520 | _source => "list", | ||||||||||||||||||||
| 521 | _source_excludes => "list", | ||||||||||||||||||||
| 522 | _source_includes => "list", | ||||||||||||||||||||
| 523 | error_trace => "boolean", | ||||||||||||||||||||
| 524 | filter_path => "list", | ||||||||||||||||||||
| 525 | human => "boolean", | ||||||||||||||||||||
| 526 | preference => "string", | ||||||||||||||||||||
| 527 | realtime => "boolean", | ||||||||||||||||||||
| 528 | refresh => "boolean", | ||||||||||||||||||||
| 529 | routing => "string", | ||||||||||||||||||||
| 530 | stored_fields => "list", | ||||||||||||||||||||
| 531 | }, | ||||||||||||||||||||
| 532 | }, | ||||||||||||||||||||
| 533 | |||||||||||||||||||||
| 534 | 'msearch' => { | ||||||||||||||||||||
| 535 | body => { required => 1 }, | ||||||||||||||||||||
| 536 | doc => "search-multi-search", | ||||||||||||||||||||
| 537 | parts => { index => { multi => 1 }, type => { multi => 1 } }, | ||||||||||||||||||||
| 538 | paths => [ | ||||||||||||||||||||
| 539 | [ { index => 0, type => 1 }, "{index}", "{type}", "_msearch" ], | ||||||||||||||||||||
| 540 | [ { index => 0 }, "{index}", "_msearch" ], | ||||||||||||||||||||
| 541 | [ {}, "_msearch" ], | ||||||||||||||||||||
| 542 | ], | ||||||||||||||||||||
| 543 | qs => { | ||||||||||||||||||||
| 544 | ccs_minimize_roundtrips => "boolean", | ||||||||||||||||||||
| 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 | ccs_minimize_roundtrips => "boolean", | ||||||||||||||||||||
| 572 | error_trace => "boolean", | ||||||||||||||||||||
| 573 | filter_path => "list", | ||||||||||||||||||||
| 574 | human => "boolean", | ||||||||||||||||||||
| 575 | max_concurrent_searches => "number", | ||||||||||||||||||||
| 576 | rest_total_hits_as_int => "boolean", | ||||||||||||||||||||
| 577 | search_type => "enum", | ||||||||||||||||||||
| 578 | typed_keys => "boolean", | ||||||||||||||||||||
| 579 | }, | ||||||||||||||||||||
| 580 | serialize => "bulk", | ||||||||||||||||||||
| 581 | }, | ||||||||||||||||||||
| 582 | |||||||||||||||||||||
| 583 | 'mtermvectors' => { | ||||||||||||||||||||
| 584 | body => {}, | ||||||||||||||||||||
| 585 | doc => "docs-multi-termvectors", | ||||||||||||||||||||
| 586 | parts => { index => {}, type => {} }, | ||||||||||||||||||||
| 587 | paths => [ | ||||||||||||||||||||
| 588 | [ { index => 0, type => 1 }, "{index}", | ||||||||||||||||||||
| 589 | "{type}", "_mtermvectors" | ||||||||||||||||||||
| 590 | ], | ||||||||||||||||||||
| 591 | [ { index => 0 }, "{index}", "_mtermvectors" ], | ||||||||||||||||||||
| 592 | [ {}, "_mtermvectors" ], | ||||||||||||||||||||
| 593 | ], | ||||||||||||||||||||
| 594 | qs => { | ||||||||||||||||||||
| 595 | error_trace => "boolean", | ||||||||||||||||||||
| 596 | field_statistics => "boolean", | ||||||||||||||||||||
| 597 | fields => "list", | ||||||||||||||||||||
| 598 | filter_path => "list", | ||||||||||||||||||||
| 599 | human => "boolean", | ||||||||||||||||||||
| 600 | ids => "list", | ||||||||||||||||||||
| 601 | offsets => "boolean", | ||||||||||||||||||||
| 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 | max_docs => "number", | ||||||||||||||||||||
| 672 | refresh => "boolean", | ||||||||||||||||||||
| 673 | requests_per_second => "number", | ||||||||||||||||||||
| 674 | scroll => "time", | ||||||||||||||||||||
| 675 | slices => "number", | ||||||||||||||||||||
| 676 | timeout => "time", | ||||||||||||||||||||
| 677 | wait_for_active_shards => "string", | ||||||||||||||||||||
| 678 | wait_for_completion => "boolean", | ||||||||||||||||||||
| 679 | }, | ||||||||||||||||||||
| 680 | }, | ||||||||||||||||||||
| 681 | |||||||||||||||||||||
| 682 | 'reindex_rethrottle' => { | ||||||||||||||||||||
| 683 | doc => "docs-reindex", | ||||||||||||||||||||
| 684 | method => "POST", | ||||||||||||||||||||
| 685 | parts => { task_id => { required => 1 } }, | ||||||||||||||||||||
| 686 | paths => | ||||||||||||||||||||
| 687 | [ [ { task_id => 1 }, "_reindex", "{task_id}", "_rethrottle" ] ], | ||||||||||||||||||||
| 688 | qs => { | ||||||||||||||||||||
| 689 | error_trace => "boolean", | ||||||||||||||||||||
| 690 | filter_path => "list", | ||||||||||||||||||||
| 691 | human => "boolean", | ||||||||||||||||||||
| 692 | requests_per_second => "number", | ||||||||||||||||||||
| 693 | }, | ||||||||||||||||||||
| 694 | }, | ||||||||||||||||||||
| 695 | |||||||||||||||||||||
| 696 | 'render_search_template' => { | ||||||||||||||||||||
| 697 | body => {}, | ||||||||||||||||||||
| 698 | doc => "search-template", | ||||||||||||||||||||
| 699 | parts => { id => {} }, | ||||||||||||||||||||
| 700 | paths => [ | ||||||||||||||||||||
| 701 | [ { id => 2 }, "_render", "template", "{id}" ], | ||||||||||||||||||||
| 702 | [ {}, "_render", "template" ], | ||||||||||||||||||||
| 703 | ], | ||||||||||||||||||||
| 704 | qs => { | ||||||||||||||||||||
| 705 | error_trace => "boolean", | ||||||||||||||||||||
| 706 | filter_path => "list", | ||||||||||||||||||||
| 707 | human => "boolean" | ||||||||||||||||||||
| 708 | }, | ||||||||||||||||||||
| 709 | }, | ||||||||||||||||||||
| 710 | |||||||||||||||||||||
| 711 | 'scripts_painless_execute' => { | ||||||||||||||||||||
| 712 | body => {}, | ||||||||||||||||||||
| 713 | doc => "painless-execute-api", | ||||||||||||||||||||
| 714 | parts => {}, | ||||||||||||||||||||
| 715 | paths => [ [ {}, "_scripts", "painless", "_execute" ] ], | ||||||||||||||||||||
| 716 | qs => { | ||||||||||||||||||||
| 717 | error_trace => "boolean", | ||||||||||||||||||||
| 718 | filter_path => "list", | ||||||||||||||||||||
| 719 | human => "boolean" | ||||||||||||||||||||
| 720 | }, | ||||||||||||||||||||
| 721 | }, | ||||||||||||||||||||
| 722 | |||||||||||||||||||||
| 723 | 'scroll' => { | ||||||||||||||||||||
| 724 | body => {}, | ||||||||||||||||||||
| 725 | doc => "", | ||||||||||||||||||||
| 726 | parts => { scroll_id => {} }, | ||||||||||||||||||||
| 727 | paths => [ | ||||||||||||||||||||
| 728 | [ { scroll_id => 2 }, "_search", "scroll", "{scroll_id}" ], | ||||||||||||||||||||
| 729 | [ {}, "_search", "scroll" ], | ||||||||||||||||||||
| 730 | ], | ||||||||||||||||||||
| 731 | qs => { | ||||||||||||||||||||
| 732 | error_trace => "boolean", | ||||||||||||||||||||
| 733 | filter_path => "list", | ||||||||||||||||||||
| 734 | human => "boolean", | ||||||||||||||||||||
| 735 | rest_total_hits_as_int => "boolean", | ||||||||||||||||||||
| 736 | scroll => "time", | ||||||||||||||||||||
| 737 | }, | ||||||||||||||||||||
| 738 | }, | ||||||||||||||||||||
| 739 | |||||||||||||||||||||
| 740 | 'search' => { | ||||||||||||||||||||
| 741 | body => {}, | ||||||||||||||||||||
| 742 | doc => "search-search", | ||||||||||||||||||||
| 743 | parts => { index => { multi => 1 }, type => { multi => 1 } }, | ||||||||||||||||||||
| 744 | paths => [ | ||||||||||||||||||||
| 745 | [ { index => 0, type => 1 }, "{index}", "{type}", "_search" ], | ||||||||||||||||||||
| 746 | [ { index => 0 }, "{index}", "_search" ], | ||||||||||||||||||||
| 747 | [ {}, "_search" ], | ||||||||||||||||||||
| 748 | ], | ||||||||||||||||||||
| 749 | qs => { | ||||||||||||||||||||
| 750 | _source => "list", | ||||||||||||||||||||
| 751 | _source_excludes => "list", | ||||||||||||||||||||
| 752 | _source_includes => "list", | ||||||||||||||||||||
| 753 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 754 | allow_partial_search_results => "boolean", | ||||||||||||||||||||
| 755 | analyze_wildcard => "boolean", | ||||||||||||||||||||
| 756 | analyzer => "string", | ||||||||||||||||||||
| 757 | batched_reduce_size => "number", | ||||||||||||||||||||
| 758 | ccs_minimize_roundtrips => "boolean", | ||||||||||||||||||||
| 759 | default_operator => "enum", | ||||||||||||||||||||
| 760 | df => "string", | ||||||||||||||||||||
| 761 | docvalue_fields => "list", | ||||||||||||||||||||
| 762 | error_trace => "boolean", | ||||||||||||||||||||
| 763 | expand_wildcards => "enum", | ||||||||||||||||||||
| 764 | explain => "boolean", | ||||||||||||||||||||
| 765 | filter_path => "list", | ||||||||||||||||||||
| 766 | from => "number", | ||||||||||||||||||||
| 767 | human => "boolean", | ||||||||||||||||||||
| 768 | ignore_throttled => "boolean", | ||||||||||||||||||||
| 769 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 770 | lenient => "boolean", | ||||||||||||||||||||
| 771 | max_concurrent_shard_requests => "number", | ||||||||||||||||||||
| 772 | pre_filter_shard_size => "number", | ||||||||||||||||||||
| 773 | preference => "string", | ||||||||||||||||||||
| 774 | q => "string", | ||||||||||||||||||||
| 775 | request_cache => "boolean", | ||||||||||||||||||||
| 776 | rest_total_hits_as_int => "boolean", | ||||||||||||||||||||
| 777 | routing => "list", | ||||||||||||||||||||
| 778 | scroll => "time", | ||||||||||||||||||||
| 779 | search_type => "enum", | ||||||||||||||||||||
| 780 | seq_no_primary_term => "boolean", | ||||||||||||||||||||
| 781 | size => "number", | ||||||||||||||||||||
| 782 | sort => "list", | ||||||||||||||||||||
| 783 | stats => "list", | ||||||||||||||||||||
| 784 | stored_fields => "list", | ||||||||||||||||||||
| 785 | suggest_field => "string", | ||||||||||||||||||||
| 786 | suggest_mode => "enum", | ||||||||||||||||||||
| 787 | suggest_size => "number", | ||||||||||||||||||||
| 788 | suggest_text => "string", | ||||||||||||||||||||
| 789 | terminate_after => "number", | ||||||||||||||||||||
| 790 | timeout => "time", | ||||||||||||||||||||
| 791 | track_scores => "boolean", | ||||||||||||||||||||
| 792 | track_total_hits => "boolean", | ||||||||||||||||||||
| 793 | typed_keys => "boolean", | ||||||||||||||||||||
| 794 | version => "boolean", | ||||||||||||||||||||
| 795 | }, | ||||||||||||||||||||
| 796 | }, | ||||||||||||||||||||
| 797 | |||||||||||||||||||||
| 798 | 'search_shards' => { | ||||||||||||||||||||
| 799 | doc => "search-shards", | ||||||||||||||||||||
| 800 | parts => { index => { multi => 1 } }, | ||||||||||||||||||||
| 801 | paths => [ | ||||||||||||||||||||
| 802 | [ { index => 0 }, "{index}", "_search_shards" ], | ||||||||||||||||||||
| 803 | [ {}, "_search_shards" ], | ||||||||||||||||||||
| 804 | ], | ||||||||||||||||||||
| 805 | qs => { | ||||||||||||||||||||
| 806 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 807 | error_trace => "boolean", | ||||||||||||||||||||
| 808 | expand_wildcards => "enum", | ||||||||||||||||||||
| 809 | filter_path => "list", | ||||||||||||||||||||
| 810 | human => "boolean", | ||||||||||||||||||||
| 811 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 812 | local => "boolean", | ||||||||||||||||||||
| 813 | preference => "string", | ||||||||||||||||||||
| 814 | routing => "string", | ||||||||||||||||||||
| 815 | }, | ||||||||||||||||||||
| 816 | }, | ||||||||||||||||||||
| 817 | |||||||||||||||||||||
| 818 | 'search_template' => { | ||||||||||||||||||||
| 819 | body => { required => 1 }, | ||||||||||||||||||||
| 820 | doc => "search-template", | ||||||||||||||||||||
| 821 | parts => { index => { multi => 1 }, type => { multi => 1 } }, | ||||||||||||||||||||
| 822 | paths => [ | ||||||||||||||||||||
| 823 | [ { index => 0, type => 1 }, "{index}", | ||||||||||||||||||||
| 824 | "{type}", "_search", | ||||||||||||||||||||
| 825 | "template", | ||||||||||||||||||||
| 826 | ], | ||||||||||||||||||||
| 827 | [ { index => 0 }, "{index}", "_search", "template" ], | ||||||||||||||||||||
| 828 | [ {}, "_search", "template" ], | ||||||||||||||||||||
| 829 | ], | ||||||||||||||||||||
| 830 | qs => { | ||||||||||||||||||||
| 831 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 832 | ccs_minimize_roundtrips => "boolean", | ||||||||||||||||||||
| 833 | error_trace => "boolean", | ||||||||||||||||||||
| 834 | expand_wildcards => "enum", | ||||||||||||||||||||
| 835 | explain => "boolean", | ||||||||||||||||||||
| 836 | filter_path => "list", | ||||||||||||||||||||
| 837 | human => "boolean", | ||||||||||||||||||||
| 838 | ignore_throttled => "boolean", | ||||||||||||||||||||
| 839 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 840 | preference => "string", | ||||||||||||||||||||
| 841 | profile => "boolean", | ||||||||||||||||||||
| 842 | rest_total_hits_as_int => "boolean", | ||||||||||||||||||||
| 843 | routing => "list", | ||||||||||||||||||||
| 844 | scroll => "time", | ||||||||||||||||||||
| 845 | search_type => "enum", | ||||||||||||||||||||
| 846 | typed_keys => "boolean", | ||||||||||||||||||||
| 847 | }, | ||||||||||||||||||||
| 848 | }, | ||||||||||||||||||||
| 849 | |||||||||||||||||||||
| 850 | 'termvectors' => { | ||||||||||||||||||||
| 851 | body => {}, | ||||||||||||||||||||
| 852 | doc => "docs-termvectors", | ||||||||||||||||||||
| 853 | parts => { id => {}, index => { required => 1 }, type => {} }, | ||||||||||||||||||||
| 854 | paths => [ | ||||||||||||||||||||
| 855 | [ { id => 2, index => 0, type => 1 }, "{index}", | ||||||||||||||||||||
| 856 | "{type}", "{id}", | ||||||||||||||||||||
| 857 | "_termvectors", | ||||||||||||||||||||
| 858 | ], | ||||||||||||||||||||
| 859 | [ { id => 2, index => 0 }, "{index}", "_termvectors", "{id}" ], | ||||||||||||||||||||
| 860 | [ { index => 0, type => 1 }, "{index}", "{type}", | ||||||||||||||||||||
| 861 | "_termvectors" | ||||||||||||||||||||
| 862 | ], | ||||||||||||||||||||
| 863 | [ { index => 0 }, "{index}", "_termvectors" ], | ||||||||||||||||||||
| 864 | ], | ||||||||||||||||||||
| 865 | qs => { | ||||||||||||||||||||
| 866 | error_trace => "boolean", | ||||||||||||||||||||
| 867 | field_statistics => "boolean", | ||||||||||||||||||||
| 868 | fields => "list", | ||||||||||||||||||||
| 869 | filter_path => "list", | ||||||||||||||||||||
| 870 | human => "boolean", | ||||||||||||||||||||
| 871 | offsets => "boolean", | ||||||||||||||||||||
| 872 | payloads => "boolean", | ||||||||||||||||||||
| 873 | positions => "boolean", | ||||||||||||||||||||
| 874 | preference => "string", | ||||||||||||||||||||
| 875 | realtime => "boolean", | ||||||||||||||||||||
| 876 | routing => "string", | ||||||||||||||||||||
| 877 | term_statistics => "boolean", | ||||||||||||||||||||
| 878 | version => "number", | ||||||||||||||||||||
| 879 | version_type => "enum", | ||||||||||||||||||||
| 880 | }, | ||||||||||||||||||||
| 881 | }, | ||||||||||||||||||||
| 882 | |||||||||||||||||||||
| 883 | 'update' => { | ||||||||||||||||||||
| 884 | body => { required => 1 }, | ||||||||||||||||||||
| 885 | doc => "docs-update", | ||||||||||||||||||||
| 886 | method => "POST", | ||||||||||||||||||||
| 887 | parts => { | ||||||||||||||||||||
| 888 | id => { required => 1 }, | ||||||||||||||||||||
| 889 | index => { required => 1 }, | ||||||||||||||||||||
| 890 | type => {} | ||||||||||||||||||||
| 891 | }, | ||||||||||||||||||||
| 892 | paths => [ | ||||||||||||||||||||
| 893 | [ { id => 2, index => 0, type => 1 }, | ||||||||||||||||||||
| 894 | "{index}", "{type}", "{id}", "_update", | ||||||||||||||||||||
| 895 | ], | ||||||||||||||||||||
| 896 | [ { id => 2, index => 0 }, "{index}", "_update", "{id}" ], | ||||||||||||||||||||
| 897 | ], | ||||||||||||||||||||
| 898 | qs => { | ||||||||||||||||||||
| 899 | _source => "list", | ||||||||||||||||||||
| 900 | _source_excludes => "list", | ||||||||||||||||||||
| 901 | _source_includes => "list", | ||||||||||||||||||||
| 902 | error_trace => "boolean", | ||||||||||||||||||||
| 903 | filter_path => "list", | ||||||||||||||||||||
| 904 | human => "boolean", | ||||||||||||||||||||
| 905 | if_primary_term => "number", | ||||||||||||||||||||
| 906 | if_seq_no => "number", | ||||||||||||||||||||
| 907 | lang => "string", | ||||||||||||||||||||
| 908 | refresh => "enum", | ||||||||||||||||||||
| 909 | retry_on_conflict => "number", | ||||||||||||||||||||
| 910 | routing => "string", | ||||||||||||||||||||
| 911 | timeout => "time", | ||||||||||||||||||||
| 912 | wait_for_active_shards => "string", | ||||||||||||||||||||
| 913 | }, | ||||||||||||||||||||
| 914 | }, | ||||||||||||||||||||
| 915 | |||||||||||||||||||||
| 916 | 'update_by_query' => { | ||||||||||||||||||||
| 917 | body => {}, | ||||||||||||||||||||
| 918 | doc => "docs-update-by-query", | ||||||||||||||||||||
| 919 | method => "POST", | ||||||||||||||||||||
| 920 | parts => { | ||||||||||||||||||||
| 921 | index => { multi => 1, required => 1 }, | ||||||||||||||||||||
| 922 | type => { multi => 1 } | ||||||||||||||||||||
| 923 | }, | ||||||||||||||||||||
| 924 | paths => [ | ||||||||||||||||||||
| 925 | [ { index => 0, type => 1 }, "{index}", | ||||||||||||||||||||
| 926 | "{type}", "_update_by_query", | ||||||||||||||||||||
| 927 | ], | ||||||||||||||||||||
| 928 | [ { index => 0 }, "{index}", "_update_by_query" ], | ||||||||||||||||||||
| 929 | ], | ||||||||||||||||||||
| 930 | qs => { | ||||||||||||||||||||
| 931 | _source => "list", | ||||||||||||||||||||
| 932 | _source_excludes => "list", | ||||||||||||||||||||
| 933 | _source_includes => "list", | ||||||||||||||||||||
| 934 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 935 | analyze_wildcard => "boolean", | ||||||||||||||||||||
| 936 | analyzer => "string", | ||||||||||||||||||||
| 937 | conflicts => "enum", | ||||||||||||||||||||
| 938 | default_operator => "enum", | ||||||||||||||||||||
| 939 | df => "string", | ||||||||||||||||||||
| 940 | error_trace => "boolean", | ||||||||||||||||||||
| 941 | expand_wildcards => "enum", | ||||||||||||||||||||
| 942 | filter_path => "list", | ||||||||||||||||||||
| 943 | from => "number", | ||||||||||||||||||||
| 944 | human => "boolean", | ||||||||||||||||||||
| 945 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 946 | lenient => "boolean", | ||||||||||||||||||||
| 947 | max_docs => "number", | ||||||||||||||||||||
| 948 | pipeline => "string", | ||||||||||||||||||||
| 949 | preference => "string", | ||||||||||||||||||||
| 950 | q => "string", | ||||||||||||||||||||
| 951 | refresh => "boolean", | ||||||||||||||||||||
| 952 | request_cache => "boolean", | ||||||||||||||||||||
| 953 | requests_per_second => "number", | ||||||||||||||||||||
| 954 | routing => "list", | ||||||||||||||||||||
| 955 | scroll => "time", | ||||||||||||||||||||
| 956 | scroll_size => "number", | ||||||||||||||||||||
| 957 | search_timeout => "time", | ||||||||||||||||||||
| 958 | search_type => "enum", | ||||||||||||||||||||
| 959 | size => "number", | ||||||||||||||||||||
| 960 | slices => "number", | ||||||||||||||||||||
| 961 | sort => "list", | ||||||||||||||||||||
| 962 | stats => "list", | ||||||||||||||||||||
| 963 | terminate_after => "number", | ||||||||||||||||||||
| 964 | timeout => "time", | ||||||||||||||||||||
| 965 | version => "boolean", | ||||||||||||||||||||
| 966 | version_type => "boolean", | ||||||||||||||||||||
| 967 | wait_for_active_shards => "string", | ||||||||||||||||||||
| 968 | wait_for_completion => "boolean", | ||||||||||||||||||||
| 969 | }, | ||||||||||||||||||||
| 970 | }, | ||||||||||||||||||||
| 971 | |||||||||||||||||||||
| 972 | 'update_by_query_rethrottle' => { | ||||||||||||||||||||
| 973 | doc => "docs-update-by-query", | ||||||||||||||||||||
| 974 | method => "POST", | ||||||||||||||||||||
| 975 | parts => { task_id => { required => 1 } }, | ||||||||||||||||||||
| 976 | paths => [ | ||||||||||||||||||||
| 977 | [ { task_id => 1 }, "_update_by_query", | ||||||||||||||||||||
| 978 | "{task_id}", "_rethrottle", | ||||||||||||||||||||
| 979 | ], | ||||||||||||||||||||
| 980 | ], | ||||||||||||||||||||
| 981 | qs => { | ||||||||||||||||||||
| 982 | error_trace => "boolean", | ||||||||||||||||||||
| 983 | filter_path => "list", | ||||||||||||||||||||
| 984 | human => "boolean", | ||||||||||||||||||||
| 985 | requests_per_second => "number", | ||||||||||||||||||||
| 986 | }, | ||||||||||||||||||||
| 987 | }, | ||||||||||||||||||||
| 988 | |||||||||||||||||||||
| 989 | 'cat.aliases' => { | ||||||||||||||||||||
| 990 | doc => "cat-alias", | ||||||||||||||||||||
| 991 | parts => { name => { multi => 1 } }, | ||||||||||||||||||||
| 992 | paths => [ | ||||||||||||||||||||
| 993 | [ { name => 2 }, "_cat", "aliases", "{name}" ], | ||||||||||||||||||||
| 994 | [ {}, "_cat", "aliases" ], | ||||||||||||||||||||
| 995 | ], | ||||||||||||||||||||
| 996 | qs => { | ||||||||||||||||||||
| 997 | error_trace => "boolean", | ||||||||||||||||||||
| 998 | filter_path => "list", | ||||||||||||||||||||
| 999 | format => "string", | ||||||||||||||||||||
| 1000 | h => "list", | ||||||||||||||||||||
| 1001 | help => "boolean", | ||||||||||||||||||||
| 1002 | human => "boolean", | ||||||||||||||||||||
| 1003 | local => "boolean", | ||||||||||||||||||||
| 1004 | master_timeout => "time", | ||||||||||||||||||||
| 1005 | s => "list", | ||||||||||||||||||||
| 1006 | v => "boolean", | ||||||||||||||||||||
| 1007 | }, | ||||||||||||||||||||
| 1008 | }, | ||||||||||||||||||||
| 1009 | |||||||||||||||||||||
| 1010 | 'cat.allocation' => { | ||||||||||||||||||||
| 1011 | doc => "cat-allocation", | ||||||||||||||||||||
| 1012 | parts => { node_id => { multi => 1 } }, | ||||||||||||||||||||
| 1013 | paths => [ | ||||||||||||||||||||
| 1014 | [ { node_id => 2 }, "_cat", "allocation", "{node_id}" ], | ||||||||||||||||||||
| 1015 | [ {}, "_cat", "allocation" ], | ||||||||||||||||||||
| 1016 | ], | ||||||||||||||||||||
| 1017 | qs => { | ||||||||||||||||||||
| 1018 | bytes => "enum", | ||||||||||||||||||||
| 1019 | error_trace => "boolean", | ||||||||||||||||||||
| 1020 | filter_path => "list", | ||||||||||||||||||||
| 1021 | format => "string", | ||||||||||||||||||||
| 1022 | h => "list", | ||||||||||||||||||||
| 1023 | help => "boolean", | ||||||||||||||||||||
| 1024 | human => "boolean", | ||||||||||||||||||||
| 1025 | local => "boolean", | ||||||||||||||||||||
| 1026 | master_timeout => "time", | ||||||||||||||||||||
| 1027 | s => "list", | ||||||||||||||||||||
| 1028 | v => "boolean", | ||||||||||||||||||||
| 1029 | }, | ||||||||||||||||||||
| 1030 | }, | ||||||||||||||||||||
| 1031 | |||||||||||||||||||||
| 1032 | 'cat.count' => { | ||||||||||||||||||||
| 1033 | doc => "cat-count", | ||||||||||||||||||||
| 1034 | parts => { index => { multi => 1 } }, | ||||||||||||||||||||
| 1035 | paths => [ | ||||||||||||||||||||
| 1036 | [ { index => 2 }, "_cat", "count", "{index}" ], | ||||||||||||||||||||
| 1037 | [ {}, "_cat", "count" ], | ||||||||||||||||||||
| 1038 | ], | ||||||||||||||||||||
| 1039 | qs => { | ||||||||||||||||||||
| 1040 | error_trace => "boolean", | ||||||||||||||||||||
| 1041 | filter_path => "list", | ||||||||||||||||||||
| 1042 | format => "string", | ||||||||||||||||||||
| 1043 | h => "list", | ||||||||||||||||||||
| 1044 | help => "boolean", | ||||||||||||||||||||
| 1045 | human => "boolean", | ||||||||||||||||||||
| 1046 | local => "boolean", | ||||||||||||||||||||
| 1047 | master_timeout => "time", | ||||||||||||||||||||
| 1048 | s => "list", | ||||||||||||||||||||
| 1049 | v => "boolean", | ||||||||||||||||||||
| 1050 | }, | ||||||||||||||||||||
| 1051 | }, | ||||||||||||||||||||
| 1052 | |||||||||||||||||||||
| 1053 | 'cat.fielddata' => { | ||||||||||||||||||||
| 1054 | doc => "cat-fielddata", | ||||||||||||||||||||
| 1055 | parts => { fields => { multi => 1 } }, | ||||||||||||||||||||
| 1056 | paths => [ | ||||||||||||||||||||
| 1057 | [ { fields => 2 }, "_cat", "fielddata", "{fields}" ], | ||||||||||||||||||||
| 1058 | [ {}, "_cat", "fielddata" ], | ||||||||||||||||||||
| 1059 | ], | ||||||||||||||||||||
| 1060 | qs => { | ||||||||||||||||||||
| 1061 | bytes => "enum", | ||||||||||||||||||||
| 1062 | error_trace => "boolean", | ||||||||||||||||||||
| 1063 | filter_path => "list", | ||||||||||||||||||||
| 1064 | format => "string", | ||||||||||||||||||||
| 1065 | h => "list", | ||||||||||||||||||||
| 1066 | help => "boolean", | ||||||||||||||||||||
| 1067 | human => "boolean", | ||||||||||||||||||||
| 1068 | local => "boolean", | ||||||||||||||||||||
| 1069 | master_timeout => "time", | ||||||||||||||||||||
| 1070 | s => "list", | ||||||||||||||||||||
| 1071 | v => "boolean", | ||||||||||||||||||||
| 1072 | }, | ||||||||||||||||||||
| 1073 | }, | ||||||||||||||||||||
| 1074 | |||||||||||||||||||||
| 1075 | 'cat.health' => { | ||||||||||||||||||||
| 1076 | doc => "cat-health", | ||||||||||||||||||||
| 1077 | parts => {}, | ||||||||||||||||||||
| 1078 | paths => [ [ {}, "_cat", "health" ] ], | ||||||||||||||||||||
| 1079 | qs => { | ||||||||||||||||||||
| 1080 | error_trace => "boolean", | ||||||||||||||||||||
| 1081 | filter_path => "list", | ||||||||||||||||||||
| 1082 | format => "string", | ||||||||||||||||||||
| 1083 | h => "list", | ||||||||||||||||||||
| 1084 | help => "boolean", | ||||||||||||||||||||
| 1085 | human => "boolean", | ||||||||||||||||||||
| 1086 | local => "boolean", | ||||||||||||||||||||
| 1087 | master_timeout => "time", | ||||||||||||||||||||
| 1088 | s => "list", | ||||||||||||||||||||
| 1089 | ts => "boolean", | ||||||||||||||||||||
| 1090 | v => "boolean", | ||||||||||||||||||||
| 1091 | }, | ||||||||||||||||||||
| 1092 | }, | ||||||||||||||||||||
| 1093 | |||||||||||||||||||||
| 1094 | 'cat.help' => { | ||||||||||||||||||||
| 1095 | doc => "cat", | ||||||||||||||||||||
| 1096 | parts => {}, | ||||||||||||||||||||
| 1097 | paths => [ [ {}, "_cat" ] ], | ||||||||||||||||||||
| 1098 | qs => { | ||||||||||||||||||||
| 1099 | error_trace => "boolean", | ||||||||||||||||||||
| 1100 | filter_path => "list", | ||||||||||||||||||||
| 1101 | help => "boolean", | ||||||||||||||||||||
| 1102 | human => "boolean", | ||||||||||||||||||||
| 1103 | s => "list", | ||||||||||||||||||||
| 1104 | }, | ||||||||||||||||||||
| 1105 | }, | ||||||||||||||||||||
| 1106 | |||||||||||||||||||||
| 1107 | 'cat.indices' => { | ||||||||||||||||||||
| 1108 | doc => "cat-indices", | ||||||||||||||||||||
| 1109 | parts => { index => { multi => 1 } }, | ||||||||||||||||||||
| 1110 | paths => [ | ||||||||||||||||||||
| 1111 | [ { index => 2 }, "_cat", "indices", "{index}" ], | ||||||||||||||||||||
| 1112 | [ {}, "_cat", "indices" ], | ||||||||||||||||||||
| 1113 | ], | ||||||||||||||||||||
| 1114 | qs => { | ||||||||||||||||||||
| 1115 | bytes => "enum", | ||||||||||||||||||||
| 1116 | error_trace => "boolean", | ||||||||||||||||||||
| 1117 | filter_path => "list", | ||||||||||||||||||||
| 1118 | format => "string", | ||||||||||||||||||||
| 1119 | h => "list", | ||||||||||||||||||||
| 1120 | health => "enum", | ||||||||||||||||||||
| 1121 | help => "boolean", | ||||||||||||||||||||
| 1122 | human => "boolean", | ||||||||||||||||||||
| 1123 | include_unloaded_segments => "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, required => 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 | expand_wildcards => "enum", | ||||||||||||||||||||
| 1565 | filter_path => "list", | ||||||||||||||||||||
| 1566 | human => "boolean", | ||||||||||||||||||||
| 1567 | level => "enum", | ||||||||||||||||||||
| 1568 | local => "boolean", | ||||||||||||||||||||
| 1569 | master_timeout => "time", | ||||||||||||||||||||
| 1570 | timeout => "time", | ||||||||||||||||||||
| 1571 | wait_for_active_shards => "string", | ||||||||||||||||||||
| 1572 | wait_for_events => "enum", | ||||||||||||||||||||
| 1573 | wait_for_no_initializing_shards => "boolean", | ||||||||||||||||||||
| 1574 | wait_for_no_relocating_shards => "boolean", | ||||||||||||||||||||
| 1575 | wait_for_nodes => "string", | ||||||||||||||||||||
| 1576 | wait_for_status => "enum", | ||||||||||||||||||||
| 1577 | }, | ||||||||||||||||||||
| 1578 | }, | ||||||||||||||||||||
| 1579 | |||||||||||||||||||||
| 1580 | 'cluster.pending_tasks' => { | ||||||||||||||||||||
| 1581 | doc => "cluster-pending", | ||||||||||||||||||||
| 1582 | parts => {}, | ||||||||||||||||||||
| 1583 | paths => [ [ {}, "_cluster", "pending_tasks" ] ], | ||||||||||||||||||||
| 1584 | qs => { | ||||||||||||||||||||
| 1585 | error_trace => "boolean", | ||||||||||||||||||||
| 1586 | filter_path => "list", | ||||||||||||||||||||
| 1587 | human => "boolean", | ||||||||||||||||||||
| 1588 | local => "boolean", | ||||||||||||||||||||
| 1589 | master_timeout => "time", | ||||||||||||||||||||
| 1590 | }, | ||||||||||||||||||||
| 1591 | }, | ||||||||||||||||||||
| 1592 | |||||||||||||||||||||
| 1593 | 'cluster.put_settings' => { | ||||||||||||||||||||
| 1594 | body => { required => 1 }, | ||||||||||||||||||||
| 1595 | doc => "cluster-update-settings", | ||||||||||||||||||||
| 1596 | method => "PUT", | ||||||||||||||||||||
| 1597 | parts => {}, | ||||||||||||||||||||
| 1598 | paths => [ [ {}, "_cluster", "settings" ] ], | ||||||||||||||||||||
| 1599 | qs => { | ||||||||||||||||||||
| 1600 | error_trace => "boolean", | ||||||||||||||||||||
| 1601 | filter_path => "list", | ||||||||||||||||||||
| 1602 | flat_settings => "boolean", | ||||||||||||||||||||
| 1603 | human => "boolean", | ||||||||||||||||||||
| 1604 | master_timeout => "time", | ||||||||||||||||||||
| 1605 | timeout => "time", | ||||||||||||||||||||
| 1606 | }, | ||||||||||||||||||||
| 1607 | }, | ||||||||||||||||||||
| 1608 | |||||||||||||||||||||
| 1609 | 'cluster.remote_info' => { | ||||||||||||||||||||
| 1610 | doc => "cluster-remote-info", | ||||||||||||||||||||
| 1611 | parts => {}, | ||||||||||||||||||||
| 1612 | paths => [ [ {}, "_remote", "info" ] ], | ||||||||||||||||||||
| 1613 | qs => { | ||||||||||||||||||||
| 1614 | error_trace => "boolean", | ||||||||||||||||||||
| 1615 | filter_path => "list", | ||||||||||||||||||||
| 1616 | human => "boolean" | ||||||||||||||||||||
| 1617 | }, | ||||||||||||||||||||
| 1618 | }, | ||||||||||||||||||||
| 1619 | |||||||||||||||||||||
| 1620 | 'cluster.reroute' => { | ||||||||||||||||||||
| 1621 | body => {}, | ||||||||||||||||||||
| 1622 | doc => "cluster-reroute", | ||||||||||||||||||||
| 1623 | method => "POST", | ||||||||||||||||||||
| 1624 | parts => {}, | ||||||||||||||||||||
| 1625 | paths => [ [ {}, "_cluster", "reroute" ] ], | ||||||||||||||||||||
| 1626 | qs => { | ||||||||||||||||||||
| 1627 | dry_run => "boolean", | ||||||||||||||||||||
| 1628 | error_trace => "boolean", | ||||||||||||||||||||
| 1629 | explain => "boolean", | ||||||||||||||||||||
| 1630 | filter_path => "list", | ||||||||||||||||||||
| 1631 | human => "boolean", | ||||||||||||||||||||
| 1632 | master_timeout => "time", | ||||||||||||||||||||
| 1633 | metric => "list", | ||||||||||||||||||||
| 1634 | retry_failed => "boolean", | ||||||||||||||||||||
| 1635 | timeout => "time", | ||||||||||||||||||||
| 1636 | }, | ||||||||||||||||||||
| 1637 | }, | ||||||||||||||||||||
| 1638 | |||||||||||||||||||||
| 1639 | 'cluster.state' => { | ||||||||||||||||||||
| 1640 | doc => "cluster-state", | ||||||||||||||||||||
| 1641 | parts => { index => { multi => 1 }, metric => { multi => 1 } }, | ||||||||||||||||||||
| 1642 | paths => [ | ||||||||||||||||||||
| 1643 | [ { index => 3, metric => 2 }, "_cluster", | ||||||||||||||||||||
| 1644 | "state", "{metric}", | ||||||||||||||||||||
| 1645 | "{index}", | ||||||||||||||||||||
| 1646 | ], | ||||||||||||||||||||
| 1647 | [ { metric => 2 }, "_cluster", "state", "{metric}" ], | ||||||||||||||||||||
| 1648 | [ {}, "_cluster", "state" ], | ||||||||||||||||||||
| 1649 | ], | ||||||||||||||||||||
| 1650 | qs => { | ||||||||||||||||||||
| 1651 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 1652 | error_trace => "boolean", | ||||||||||||||||||||
| 1653 | expand_wildcards => "enum", | ||||||||||||||||||||
| 1654 | filter_path => "list", | ||||||||||||||||||||
| 1655 | flat_settings => "boolean", | ||||||||||||||||||||
| 1656 | human => "boolean", | ||||||||||||||||||||
| 1657 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 1658 | local => "boolean", | ||||||||||||||||||||
| 1659 | master_timeout => "time", | ||||||||||||||||||||
| 1660 | wait_for_metadata_version => "number", | ||||||||||||||||||||
| 1661 | wait_for_timeout => "time", | ||||||||||||||||||||
| 1662 | }, | ||||||||||||||||||||
| 1663 | }, | ||||||||||||||||||||
| 1664 | |||||||||||||||||||||
| 1665 | 'cluster.stats' => { | ||||||||||||||||||||
| 1666 | doc => "cluster-stats", | ||||||||||||||||||||
| 1667 | parts => { node_id => { multi => 1 } }, | ||||||||||||||||||||
| 1668 | paths => [ | ||||||||||||||||||||
| 1669 | [ { node_id => 3 }, "_cluster", "stats", "nodes", "{node_id}" ], | ||||||||||||||||||||
| 1670 | [ {}, "_cluster", "stats" ], | ||||||||||||||||||||
| 1671 | ], | ||||||||||||||||||||
| 1672 | qs => { | ||||||||||||||||||||
| 1673 | error_trace => "boolean", | ||||||||||||||||||||
| 1674 | filter_path => "list", | ||||||||||||||||||||
| 1675 | flat_settings => "boolean", | ||||||||||||||||||||
| 1676 | human => "boolean", | ||||||||||||||||||||
| 1677 | timeout => "time", | ||||||||||||||||||||
| 1678 | }, | ||||||||||||||||||||
| 1679 | }, | ||||||||||||||||||||
| 1680 | |||||||||||||||||||||
| 1681 | 'data_frame.delete_data_frame_transform' => { | ||||||||||||||||||||
| 1682 | doc => "delete-data-frame-transform", | ||||||||||||||||||||
| 1683 | method => "DELETE", | ||||||||||||||||||||
| 1684 | parts => { transform_id => { required => 1 } }, | ||||||||||||||||||||
| 1685 | paths => [ | ||||||||||||||||||||
| 1686 | [ { transform_id => 2 }, "_data_frame", | ||||||||||||||||||||
| 1687 | "transforms", "{transform_id}", | ||||||||||||||||||||
| 1688 | ], | ||||||||||||||||||||
| 1689 | ], | ||||||||||||||||||||
| 1690 | qs => { | ||||||||||||||||||||
| 1691 | error_trace => "boolean", | ||||||||||||||||||||
| 1692 | filter_path => "list", | ||||||||||||||||||||
| 1693 | human => "boolean" | ||||||||||||||||||||
| 1694 | }, | ||||||||||||||||||||
| 1695 | }, | ||||||||||||||||||||
| 1696 | |||||||||||||||||||||
| 1697 | 'data_frame.get_data_frame_transform' => { | ||||||||||||||||||||
| 1698 | doc => "get-data-frame-transform", | ||||||||||||||||||||
| 1699 | parts => { transform_id => {} }, | ||||||||||||||||||||
| 1700 | paths => [ | ||||||||||||||||||||
| 1701 | [ { transform_id => 2 }, "_data_frame", | ||||||||||||||||||||
| 1702 | "transforms", "{transform_id}", | ||||||||||||||||||||
| 1703 | ], | ||||||||||||||||||||
| 1704 | [ {}, "_data_frame", "transforms" ], | ||||||||||||||||||||
| 1705 | ], | ||||||||||||||||||||
| 1706 | qs => { | ||||||||||||||||||||
| 1707 | allow_no_match => "boolean", | ||||||||||||||||||||
| 1708 | error_trace => "boolean", | ||||||||||||||||||||
| 1709 | filter_path => "list", | ||||||||||||||||||||
| 1710 | from => "int", | ||||||||||||||||||||
| 1711 | human => "boolean", | ||||||||||||||||||||
| 1712 | size => "int", | ||||||||||||||||||||
| 1713 | }, | ||||||||||||||||||||
| 1714 | }, | ||||||||||||||||||||
| 1715 | |||||||||||||||||||||
| 1716 | 'data_frame.get_data_frame_transform_stats' => { | ||||||||||||||||||||
| 1717 | doc => "get-data-frame-transform-stats", | ||||||||||||||||||||
| 1718 | parts => { transform_id => {} }, | ||||||||||||||||||||
| 1719 | paths => [ | ||||||||||||||||||||
| 1720 | [ { transform_id => 2 }, "_data_frame", | ||||||||||||||||||||
| 1721 | "transforms", "{transform_id}", | ||||||||||||||||||||
| 1722 | "_stats", | ||||||||||||||||||||
| 1723 | ], | ||||||||||||||||||||
| 1724 | ], | ||||||||||||||||||||
| 1725 | qs => { | ||||||||||||||||||||
| 1726 | allow_no_match => "boolean", | ||||||||||||||||||||
| 1727 | error_trace => "boolean", | ||||||||||||||||||||
| 1728 | filter_path => "list", | ||||||||||||||||||||
| 1729 | from => "number", | ||||||||||||||||||||
| 1730 | human => "boolean", | ||||||||||||||||||||
| 1731 | size => "number", | ||||||||||||||||||||
| 1732 | }, | ||||||||||||||||||||
| 1733 | }, | ||||||||||||||||||||
| 1734 | |||||||||||||||||||||
| 1735 | 'data_frame.preview_data_frame_transform' => { | ||||||||||||||||||||
| 1736 | body => { required => 1 }, | ||||||||||||||||||||
| 1737 | doc => "preview-data-frame-transform", | ||||||||||||||||||||
| 1738 | method => "POST", | ||||||||||||||||||||
| 1739 | parts => {}, | ||||||||||||||||||||
| 1740 | paths => [ [ {}, "_data_frame", "transforms", "_preview" ] ], | ||||||||||||||||||||
| 1741 | qs => { | ||||||||||||||||||||
| 1742 | error_trace => "boolean", | ||||||||||||||||||||
| 1743 | filter_path => "list", | ||||||||||||||||||||
| 1744 | human => "boolean" | ||||||||||||||||||||
| 1745 | }, | ||||||||||||||||||||
| 1746 | }, | ||||||||||||||||||||
| 1747 | |||||||||||||||||||||
| 1748 | 'data_frame.put_data_frame_transform' => { | ||||||||||||||||||||
| 1749 | body => { required => 1 }, | ||||||||||||||||||||
| 1750 | doc => "put-data-frame-transform", | ||||||||||||||||||||
| 1751 | method => "PUT", | ||||||||||||||||||||
| 1752 | parts => { transform_id => { required => 1 } }, | ||||||||||||||||||||
| 1753 | paths => [ | ||||||||||||||||||||
| 1754 | [ { transform_id => 2 }, "_data_frame", | ||||||||||||||||||||
| 1755 | "transforms", "{transform_id}", | ||||||||||||||||||||
| 1756 | ], | ||||||||||||||||||||
| 1757 | ], | ||||||||||||||||||||
| 1758 | qs => { | ||||||||||||||||||||
| 1759 | error_trace => "boolean", | ||||||||||||||||||||
| 1760 | filter_path => "list", | ||||||||||||||||||||
| 1761 | human => "boolean" | ||||||||||||||||||||
| 1762 | }, | ||||||||||||||||||||
| 1763 | }, | ||||||||||||||||||||
| 1764 | |||||||||||||||||||||
| 1765 | 'data_frame.start_data_frame_transform' => { | ||||||||||||||||||||
| 1766 | doc => "start-data-frame-transform", | ||||||||||||||||||||
| 1767 | method => "POST", | ||||||||||||||||||||
| 1768 | parts => { transform_id => { required => 1 } }, | ||||||||||||||||||||
| 1769 | paths => [ | ||||||||||||||||||||
| 1770 | [ { transform_id => 2 }, "_data_frame", | ||||||||||||||||||||
| 1771 | "transforms", "{transform_id}", | ||||||||||||||||||||
| 1772 | "_start", | ||||||||||||||||||||
| 1773 | ], | ||||||||||||||||||||
| 1774 | ], | ||||||||||||||||||||
| 1775 | qs => { | ||||||||||||||||||||
| 1776 | error_trace => "boolean", | ||||||||||||||||||||
| 1777 | filter_path => "list", | ||||||||||||||||||||
| 1778 | human => "boolean", | ||||||||||||||||||||
| 1779 | timeout => "time", | ||||||||||||||||||||
| 1780 | }, | ||||||||||||||||||||
| 1781 | }, | ||||||||||||||||||||
| 1782 | |||||||||||||||||||||
| 1783 | 'data_frame.stop_data_frame_transform' => { | ||||||||||||||||||||
| 1784 | doc => "stop-data-frame-transform", | ||||||||||||||||||||
| 1785 | method => "POST", | ||||||||||||||||||||
| 1786 | parts => { transform_id => { required => 1 } }, | ||||||||||||||||||||
| 1787 | paths => [ | ||||||||||||||||||||
| 1788 | [ { transform_id => 2 }, "_data_frame", | ||||||||||||||||||||
| 1789 | "transforms", "{transform_id}", | ||||||||||||||||||||
| 1790 | "_stop", | ||||||||||||||||||||
| 1791 | ], | ||||||||||||||||||||
| 1792 | ], | ||||||||||||||||||||
| 1793 | qs => { | ||||||||||||||||||||
| 1794 | allow_no_match => "boolean", | ||||||||||||||||||||
| 1795 | error_trace => "boolean", | ||||||||||||||||||||
| 1796 | filter_path => "list", | ||||||||||||||||||||
| 1797 | human => "boolean", | ||||||||||||||||||||
| 1798 | timeout => "time", | ||||||||||||||||||||
| 1799 | wait_for_completion => "boolean", | ||||||||||||||||||||
| 1800 | }, | ||||||||||||||||||||
| 1801 | }, | ||||||||||||||||||||
| 1802 | |||||||||||||||||||||
| 1803 | 'graph.explore' => { | ||||||||||||||||||||
| 1804 | body => {}, | ||||||||||||||||||||
| 1805 | doc => "graph-explore-api", | ||||||||||||||||||||
| 1806 | parts => { index => { multi => 1 }, type => { multi => 1 } }, | ||||||||||||||||||||
| 1807 | paths => [ | ||||||||||||||||||||
| 1808 | [ { index => 0, type => 1 }, "{index}", | ||||||||||||||||||||
| 1809 | "{type}", "_graph", | ||||||||||||||||||||
| 1810 | "explore", | ||||||||||||||||||||
| 1811 | ], | ||||||||||||||||||||
| 1812 | [ { index => 0 }, "{index}", "_graph", "explore" ], | ||||||||||||||||||||
| 1813 | ], | ||||||||||||||||||||
| 1814 | qs => { | ||||||||||||||||||||
| 1815 | error_trace => "boolean", | ||||||||||||||||||||
| 1816 | filter_path => "list", | ||||||||||||||||||||
| 1817 | human => "boolean", | ||||||||||||||||||||
| 1818 | routing => "string", | ||||||||||||||||||||
| 1819 | timeout => "time", | ||||||||||||||||||||
| 1820 | }, | ||||||||||||||||||||
| 1821 | }, | ||||||||||||||||||||
| 1822 | |||||||||||||||||||||
| 1823 | 'ilm.delete_lifecycle' => { | ||||||||||||||||||||
| 1824 | doc => "ilm-delete-lifecycle", | ||||||||||||||||||||
| 1825 | method => "DELETE", | ||||||||||||||||||||
| 1826 | parts => { policy => {} }, | ||||||||||||||||||||
| 1827 | paths => [ [ { policy => 2 }, "_ilm", "policy", "{policy}" ] ], | ||||||||||||||||||||
| 1828 | qs => { | ||||||||||||||||||||
| 1829 | error_trace => "boolean", | ||||||||||||||||||||
| 1830 | filter_path => "list", | ||||||||||||||||||||
| 1831 | human => "boolean" | ||||||||||||||||||||
| 1832 | }, | ||||||||||||||||||||
| 1833 | }, | ||||||||||||||||||||
| 1834 | |||||||||||||||||||||
| 1835 | 'ilm.explain_lifecycle' => { | ||||||||||||||||||||
| 1836 | doc => "ilm-explain-lifecycle", | ||||||||||||||||||||
| 1837 | parts => { index => {} }, | ||||||||||||||||||||
| 1838 | paths => [ [ { index => 0 }, "{index}", "_ilm", "explain" ] ], | ||||||||||||||||||||
| 1839 | qs => { | ||||||||||||||||||||
| 1840 | error_trace => "boolean", | ||||||||||||||||||||
| 1841 | filter_path => "list", | ||||||||||||||||||||
| 1842 | human => "boolean" | ||||||||||||||||||||
| 1843 | }, | ||||||||||||||||||||
| 1844 | }, | ||||||||||||||||||||
| 1845 | |||||||||||||||||||||
| 1846 | 'ilm.get_lifecycle' => { | ||||||||||||||||||||
| 1847 | doc => "ilm-get-lifecycle", | ||||||||||||||||||||
| 1848 | parts => { policy => {} }, | ||||||||||||||||||||
| 1849 | paths => [ | ||||||||||||||||||||
| 1850 | [ { policy => 2 }, "_ilm", "policy", "{policy}" ], | ||||||||||||||||||||
| 1851 | [ {}, "_ilm", "policy" ], | ||||||||||||||||||||
| 1852 | ], | ||||||||||||||||||||
| 1853 | qs => { | ||||||||||||||||||||
| 1854 | error_trace => "boolean", | ||||||||||||||||||||
| 1855 | filter_path => "list", | ||||||||||||||||||||
| 1856 | human => "boolean" | ||||||||||||||||||||
| 1857 | }, | ||||||||||||||||||||
| 1858 | }, | ||||||||||||||||||||
| 1859 | |||||||||||||||||||||
| 1860 | 'ilm.get_status' => { | ||||||||||||||||||||
| 1861 | doc => "ilm-get-status", | ||||||||||||||||||||
| 1862 | parts => {}, | ||||||||||||||||||||
| 1863 | paths => [ [ {}, "_ilm", "status" ] ], | ||||||||||||||||||||
| 1864 | qs => { | ||||||||||||||||||||
| 1865 | error_trace => "boolean", | ||||||||||||||||||||
| 1866 | filter_path => "list", | ||||||||||||||||||||
| 1867 | human => "boolean" | ||||||||||||||||||||
| 1868 | }, | ||||||||||||||||||||
| 1869 | }, | ||||||||||||||||||||
| 1870 | |||||||||||||||||||||
| 1871 | 'ilm.move_to_step' => { | ||||||||||||||||||||
| 1872 | body => {}, | ||||||||||||||||||||
| 1873 | doc => "ilm-move-to-step", | ||||||||||||||||||||
| 1874 | method => "POST", | ||||||||||||||||||||
| 1875 | parts => { index => {} }, | ||||||||||||||||||||
| 1876 | paths => [ [ { index => 2 }, "_ilm", "move", "{index}" ] ], | ||||||||||||||||||||
| 1877 | qs => { | ||||||||||||||||||||
| 1878 | error_trace => "boolean", | ||||||||||||||||||||
| 1879 | filter_path => "list", | ||||||||||||||||||||
| 1880 | human => "boolean" | ||||||||||||||||||||
| 1881 | }, | ||||||||||||||||||||
| 1882 | }, | ||||||||||||||||||||
| 1883 | |||||||||||||||||||||
| 1884 | 'ilm.put_lifecycle' => { | ||||||||||||||||||||
| 1885 | body => {}, | ||||||||||||||||||||
| 1886 | doc => "ilm-put-lifecycle", | ||||||||||||||||||||
| 1887 | method => "PUT", | ||||||||||||||||||||
| 1888 | parts => { policy => {} }, | ||||||||||||||||||||
| 1889 | paths => [ [ { policy => 2 }, "_ilm", "policy", "{policy}" ] ], | ||||||||||||||||||||
| 1890 | qs => { | ||||||||||||||||||||
| 1891 | error_trace => "boolean", | ||||||||||||||||||||
| 1892 | filter_path => "list", | ||||||||||||||||||||
| 1893 | human => "boolean" | ||||||||||||||||||||
| 1894 | }, | ||||||||||||||||||||
| 1895 | }, | ||||||||||||||||||||
| 1896 | |||||||||||||||||||||
| 1897 | 'ilm.remove_policy' => { | ||||||||||||||||||||
| 1898 | doc => "ilm-remove-policy", | ||||||||||||||||||||
| 1899 | method => "POST", | ||||||||||||||||||||
| 1900 | parts => { index => {} }, | ||||||||||||||||||||
| 1901 | paths => [ [ { index => 0 }, "{index}", "_ilm", "remove" ] ], | ||||||||||||||||||||
| 1902 | qs => { | ||||||||||||||||||||
| 1903 | error_trace => "boolean", | ||||||||||||||||||||
| 1904 | filter_path => "list", | ||||||||||||||||||||
| 1905 | human => "boolean" | ||||||||||||||||||||
| 1906 | }, | ||||||||||||||||||||
| 1907 | }, | ||||||||||||||||||||
| 1908 | |||||||||||||||||||||
| 1909 | 'ilm.retry' => { | ||||||||||||||||||||
| 1910 | doc => "ilm-retry-policy", | ||||||||||||||||||||
| 1911 | method => "POST", | ||||||||||||||||||||
| 1912 | parts => { index => {} }, | ||||||||||||||||||||
| 1913 | paths => [ [ { index => 0 }, "{index}", "_ilm", "retry" ] ], | ||||||||||||||||||||
| 1914 | qs => { | ||||||||||||||||||||
| 1915 | error_trace => "boolean", | ||||||||||||||||||||
| 1916 | filter_path => "list", | ||||||||||||||||||||
| 1917 | human => "boolean" | ||||||||||||||||||||
| 1918 | }, | ||||||||||||||||||||
| 1919 | }, | ||||||||||||||||||||
| 1920 | |||||||||||||||||||||
| 1921 | 'ilm.start' => { | ||||||||||||||||||||
| 1922 | doc => "ilm-start", | ||||||||||||||||||||
| 1923 | method => "POST", | ||||||||||||||||||||
| 1924 | parts => {}, | ||||||||||||||||||||
| 1925 | paths => [ [ {}, "_ilm", "start" ] ], | ||||||||||||||||||||
| 1926 | qs => { | ||||||||||||||||||||
| 1927 | error_trace => "boolean", | ||||||||||||||||||||
| 1928 | filter_path => "list", | ||||||||||||||||||||
| 1929 | human => "boolean" | ||||||||||||||||||||
| 1930 | }, | ||||||||||||||||||||
| 1931 | }, | ||||||||||||||||||||
| 1932 | |||||||||||||||||||||
| 1933 | 'ilm.stop' => { | ||||||||||||||||||||
| 1934 | doc => "ilm-stop", | ||||||||||||||||||||
| 1935 | method => "POST", | ||||||||||||||||||||
| 1936 | parts => {}, | ||||||||||||||||||||
| 1937 | paths => [ [ {}, "_ilm", "stop" ] ], | ||||||||||||||||||||
| 1938 | qs => { | ||||||||||||||||||||
| 1939 | error_trace => "boolean", | ||||||||||||||||||||
| 1940 | filter_path => "list", | ||||||||||||||||||||
| 1941 | human => "boolean" | ||||||||||||||||||||
| 1942 | }, | ||||||||||||||||||||
| 1943 | }, | ||||||||||||||||||||
| 1944 | |||||||||||||||||||||
| 1945 | 'indices.analyze' => { | ||||||||||||||||||||
| 1946 | body => {}, | ||||||||||||||||||||
| 1947 | doc => "indices-analyze", | ||||||||||||||||||||
| 1948 | parts => { index => {} }, | ||||||||||||||||||||
| 1949 | paths => | ||||||||||||||||||||
| 1950 | [ [ { index => 0 }, "{index}", "_analyze" ], [ {}, "_analyze" ] ], | ||||||||||||||||||||
| 1951 | qs => { | ||||||||||||||||||||
| 1952 | error_trace => "boolean", | ||||||||||||||||||||
| 1953 | filter_path => "list", | ||||||||||||||||||||
| 1954 | human => "boolean" | ||||||||||||||||||||
| 1955 | }, | ||||||||||||||||||||
| 1956 | }, | ||||||||||||||||||||
| 1957 | |||||||||||||||||||||
| 1958 | 'indices.clear_cache' => { | ||||||||||||||||||||
| 1959 | doc => "indices-clearcache", | ||||||||||||||||||||
| 1960 | method => "POST", | ||||||||||||||||||||
| 1961 | parts => { index => { multi => 1 } }, | ||||||||||||||||||||
| 1962 | paths => [ | ||||||||||||||||||||
| 1963 | [ { index => 0 }, "{index}", "_cache", "clear" ], | ||||||||||||||||||||
| 1964 | [ {}, "_cache", "clear" ], | ||||||||||||||||||||
| 1965 | ], | ||||||||||||||||||||
| 1966 | qs => { | ||||||||||||||||||||
| 1967 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 1968 | error_trace => "boolean", | ||||||||||||||||||||
| 1969 | expand_wildcards => "enum", | ||||||||||||||||||||
| 1970 | fielddata => "boolean", | ||||||||||||||||||||
| 1971 | fields => "list", | ||||||||||||||||||||
| 1972 | filter_path => "list", | ||||||||||||||||||||
| 1973 | human => "boolean", | ||||||||||||||||||||
| 1974 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 1975 | query => "boolean", | ||||||||||||||||||||
| 1976 | request => "boolean", | ||||||||||||||||||||
| 1977 | }, | ||||||||||||||||||||
| 1978 | }, | ||||||||||||||||||||
| 1979 | |||||||||||||||||||||
| 1980 | 'indices.close' => { | ||||||||||||||||||||
| 1981 | doc => "indices-open-close", | ||||||||||||||||||||
| 1982 | method => "POST", | ||||||||||||||||||||
| 1983 | parts => { index => { multi => 1, required => 1 } }, | ||||||||||||||||||||
| 1984 | paths => [ [ { index => 0 }, "{index}", "_close" ] ], | ||||||||||||||||||||
| 1985 | qs => { | ||||||||||||||||||||
| 1986 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 1987 | error_trace => "boolean", | ||||||||||||||||||||
| 1988 | expand_wildcards => "enum", | ||||||||||||||||||||
| 1989 | filter_path => "list", | ||||||||||||||||||||
| 1990 | human => "boolean", | ||||||||||||||||||||
| 1991 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 1992 | master_timeout => "time", | ||||||||||||||||||||
| 1993 | timeout => "time", | ||||||||||||||||||||
| 1994 | wait_for_active_shards => "string", | ||||||||||||||||||||
| 1995 | }, | ||||||||||||||||||||
| 1996 | }, | ||||||||||||||||||||
| 1997 | |||||||||||||||||||||
| 1998 | 'indices.create' => { | ||||||||||||||||||||
| 1999 | body => {}, | ||||||||||||||||||||
| 2000 | doc => "indices-create-index", | ||||||||||||||||||||
| 2001 | method => "PUT", | ||||||||||||||||||||
| 2002 | parts => { index => { required => 1 } }, | ||||||||||||||||||||
| 2003 | paths => [ [ { index => 0 }, "{index}" ] ], | ||||||||||||||||||||
| 2004 | qs => { | ||||||||||||||||||||
| 2005 | error_trace => "boolean", | ||||||||||||||||||||
| 2006 | filter_path => "list", | ||||||||||||||||||||
| 2007 | human => "boolean", | ||||||||||||||||||||
| 2008 | include_type_name => "boolean", | ||||||||||||||||||||
| 2009 | master_timeout => "time", | ||||||||||||||||||||
| 2010 | timeout => "time", | ||||||||||||||||||||
| 2011 | wait_for_active_shards => "string", | ||||||||||||||||||||
| 2012 | }, | ||||||||||||||||||||
| 2013 | }, | ||||||||||||||||||||
| 2014 | |||||||||||||||||||||
| 2015 | 'indices.delete' => { | ||||||||||||||||||||
| 2016 | doc => "indices-delete-index", | ||||||||||||||||||||
| 2017 | method => "DELETE", | ||||||||||||||||||||
| 2018 | parts => { index => { multi => 1, required => 1 } }, | ||||||||||||||||||||
| 2019 | paths => [ [ { index => 0 }, "{index}" ] ], | ||||||||||||||||||||
| 2020 | qs => { | ||||||||||||||||||||
| 2021 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2022 | error_trace => "boolean", | ||||||||||||||||||||
| 2023 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2024 | filter_path => "list", | ||||||||||||||||||||
| 2025 | human => "boolean", | ||||||||||||||||||||
| 2026 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2027 | master_timeout => "time", | ||||||||||||||||||||
| 2028 | timeout => "time", | ||||||||||||||||||||
| 2029 | }, | ||||||||||||||||||||
| 2030 | }, | ||||||||||||||||||||
| 2031 | |||||||||||||||||||||
| 2032 | 'indices.delete_alias' => { | ||||||||||||||||||||
| 2033 | doc => "indices-aliases", | ||||||||||||||||||||
| 2034 | method => "DELETE", | ||||||||||||||||||||
| 2035 | parts => { | ||||||||||||||||||||
| 2036 | index => { multi => 1, required => 1 }, | ||||||||||||||||||||
| 2037 | name => { multi => 1, required => 1 }, | ||||||||||||||||||||
| 2038 | }, | ||||||||||||||||||||
| 2039 | paths => | ||||||||||||||||||||
| 2040 | [ [ { index => 0, name => 2 }, "{index}", "_alias", "{name}" ] ], | ||||||||||||||||||||
| 2041 | qs => { | ||||||||||||||||||||
| 2042 | error_trace => "boolean", | ||||||||||||||||||||
| 2043 | filter_path => "list", | ||||||||||||||||||||
| 2044 | human => "boolean", | ||||||||||||||||||||
| 2045 | master_timeout => "time", | ||||||||||||||||||||
| 2046 | timeout => "time", | ||||||||||||||||||||
| 2047 | }, | ||||||||||||||||||||
| 2048 | }, | ||||||||||||||||||||
| 2049 | |||||||||||||||||||||
| 2050 | 'indices.delete_template' => { | ||||||||||||||||||||
| 2051 | doc => "indices-templates", | ||||||||||||||||||||
| 2052 | method => "DELETE", | ||||||||||||||||||||
| 2053 | parts => { name => { required => 1 } }, | ||||||||||||||||||||
| 2054 | paths => [ [ { name => 1 }, "_template", "{name}" ] ], | ||||||||||||||||||||
| 2055 | qs => { | ||||||||||||||||||||
| 2056 | error_trace => "boolean", | ||||||||||||||||||||
| 2057 | filter_path => "list", | ||||||||||||||||||||
| 2058 | human => "boolean", | ||||||||||||||||||||
| 2059 | master_timeout => "time", | ||||||||||||||||||||
| 2060 | timeout => "time", | ||||||||||||||||||||
| 2061 | }, | ||||||||||||||||||||
| 2062 | }, | ||||||||||||||||||||
| 2063 | |||||||||||||||||||||
| 2064 | 'indices.exists' => { | ||||||||||||||||||||
| 2065 | doc => "indices-exists", | ||||||||||||||||||||
| 2066 | method => "HEAD", | ||||||||||||||||||||
| 2067 | parts => { index => { multi => 1, required => 1 } }, | ||||||||||||||||||||
| 2068 | paths => [ [ { index => 0 }, "{index}" ] ], | ||||||||||||||||||||
| 2069 | qs => { | ||||||||||||||||||||
| 2070 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2071 | error_trace => "boolean", | ||||||||||||||||||||
| 2072 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2073 | filter_path => "list", | ||||||||||||||||||||
| 2074 | flat_settings => "boolean", | ||||||||||||||||||||
| 2075 | human => "boolean", | ||||||||||||||||||||
| 2076 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2077 | include_defaults => "boolean", | ||||||||||||||||||||
| 2078 | local => "boolean", | ||||||||||||||||||||
| 2079 | }, | ||||||||||||||||||||
| 2080 | }, | ||||||||||||||||||||
| 2081 | |||||||||||||||||||||
| 2082 | 'indices.exists_alias' => { | ||||||||||||||||||||
| 2083 | doc => "indices-aliases", | ||||||||||||||||||||
| 2084 | method => "HEAD", | ||||||||||||||||||||
| 2085 | parts => { | ||||||||||||||||||||
| 2086 | index => { multi => 1 }, | ||||||||||||||||||||
| 2087 | name => { multi => 1, required => 1 } | ||||||||||||||||||||
| 2088 | }, | ||||||||||||||||||||
| 2089 | paths => [ | ||||||||||||||||||||
| 2090 | [ { index => 0, name => 2 }, "{index}", "_alias", "{name}" ], | ||||||||||||||||||||
| 2091 | [ { name => 1 }, "_alias", "{name}" ], | ||||||||||||||||||||
| 2092 | ], | ||||||||||||||||||||
| 2093 | qs => { | ||||||||||||||||||||
| 2094 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2095 | error_trace => "boolean", | ||||||||||||||||||||
| 2096 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2097 | filter_path => "list", | ||||||||||||||||||||
| 2098 | human => "boolean", | ||||||||||||||||||||
| 2099 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2100 | local => "boolean", | ||||||||||||||||||||
| 2101 | }, | ||||||||||||||||||||
| 2102 | }, | ||||||||||||||||||||
| 2103 | |||||||||||||||||||||
| 2104 | 'indices.exists_template' => { | ||||||||||||||||||||
| 2105 | doc => "indices-templates", | ||||||||||||||||||||
| 2106 | method => "HEAD", | ||||||||||||||||||||
| 2107 | parts => { name => { multi => 1, required => 1 } }, | ||||||||||||||||||||
| 2108 | paths => [ [ { name => 1 }, "_template", "{name}" ] ], | ||||||||||||||||||||
| 2109 | qs => { | ||||||||||||||||||||
| 2110 | error_trace => "boolean", | ||||||||||||||||||||
| 2111 | filter_path => "list", | ||||||||||||||||||||
| 2112 | flat_settings => "boolean", | ||||||||||||||||||||
| 2113 | human => "boolean", | ||||||||||||||||||||
| 2114 | local => "boolean", | ||||||||||||||||||||
| 2115 | master_timeout => "time", | ||||||||||||||||||||
| 2116 | }, | ||||||||||||||||||||
| 2117 | }, | ||||||||||||||||||||
| 2118 | |||||||||||||||||||||
| 2119 | 'indices.exists_type' => { | ||||||||||||||||||||
| 2120 | doc => "indices-types-exists", | ||||||||||||||||||||
| 2121 | method => "HEAD", | ||||||||||||||||||||
| 2122 | parts => { | ||||||||||||||||||||
| 2123 | index => { multi => 1, required => 1 }, | ||||||||||||||||||||
| 2124 | type => { multi => 1, required => 1 }, | ||||||||||||||||||||
| 2125 | }, | ||||||||||||||||||||
| 2126 | paths => [ | ||||||||||||||||||||
| 2127 | [ { index => 0, type => 2 }, "{index}", "_mapping", "{type}" ] | ||||||||||||||||||||
| 2128 | ], | ||||||||||||||||||||
| 2129 | qs => { | ||||||||||||||||||||
| 2130 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2131 | error_trace => "boolean", | ||||||||||||||||||||
| 2132 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2133 | filter_path => "list", | ||||||||||||||||||||
| 2134 | human => "boolean", | ||||||||||||||||||||
| 2135 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2136 | local => "boolean", | ||||||||||||||||||||
| 2137 | }, | ||||||||||||||||||||
| 2138 | }, | ||||||||||||||||||||
| 2139 | |||||||||||||||||||||
| 2140 | 'indices.flush' => { | ||||||||||||||||||||
| 2141 | doc => "indices-flush", | ||||||||||||||||||||
| 2142 | method => "POST", | ||||||||||||||||||||
| 2143 | parts => { index => { multi => 1 } }, | ||||||||||||||||||||
| 2144 | paths => | ||||||||||||||||||||
| 2145 | [ [ { index => 0 }, "{index}", "_flush" ], [ {}, "_flush" ] ], | ||||||||||||||||||||
| 2146 | qs => { | ||||||||||||||||||||
| 2147 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2148 | error_trace => "boolean", | ||||||||||||||||||||
| 2149 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2150 | filter_path => "list", | ||||||||||||||||||||
| 2151 | force => "boolean", | ||||||||||||||||||||
| 2152 | human => "boolean", | ||||||||||||||||||||
| 2153 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2154 | wait_if_ongoing => "boolean", | ||||||||||||||||||||
| 2155 | }, | ||||||||||||||||||||
| 2156 | }, | ||||||||||||||||||||
| 2157 | |||||||||||||||||||||
| 2158 | 'indices.flush_synced' => { | ||||||||||||||||||||
| 2159 | doc => "", | ||||||||||||||||||||
| 2160 | method => "POST", | ||||||||||||||||||||
| 2161 | parts => { index => { multi => 1 } }, | ||||||||||||||||||||
| 2162 | paths => [ | ||||||||||||||||||||
| 2163 | [ { index => 0 }, "{index}", "_flush", "synced" ], | ||||||||||||||||||||
| 2164 | [ {}, "_flush", "synced" ], | ||||||||||||||||||||
| 2165 | ], | ||||||||||||||||||||
| 2166 | qs => { | ||||||||||||||||||||
| 2167 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2168 | error_trace => "boolean", | ||||||||||||||||||||
| 2169 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2170 | filter_path => "list", | ||||||||||||||||||||
| 2171 | human => "boolean", | ||||||||||||||||||||
| 2172 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2173 | }, | ||||||||||||||||||||
| 2174 | }, | ||||||||||||||||||||
| 2175 | |||||||||||||||||||||
| 2176 | 'indices.forcemerge' => { | ||||||||||||||||||||
| 2177 | doc => "indices-forcemerge", | ||||||||||||||||||||
| 2178 | method => "POST", | ||||||||||||||||||||
| 2179 | parts => { index => { multi => 1 } }, | ||||||||||||||||||||
| 2180 | paths => [ | ||||||||||||||||||||
| 2181 | [ { index => 0 }, "{index}", "_forcemerge" ], | ||||||||||||||||||||
| 2182 | [ {}, "_forcemerge" ], | ||||||||||||||||||||
| 2183 | ], | ||||||||||||||||||||
| 2184 | qs => { | ||||||||||||||||||||
| 2185 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2186 | error_trace => "boolean", | ||||||||||||||||||||
| 2187 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2188 | filter_path => "list", | ||||||||||||||||||||
| 2189 | flush => "boolean", | ||||||||||||||||||||
| 2190 | human => "boolean", | ||||||||||||||||||||
| 2191 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2192 | max_num_segments => "number", | ||||||||||||||||||||
| 2193 | only_expunge_deletes => "boolean", | ||||||||||||||||||||
| 2194 | }, | ||||||||||||||||||||
| 2195 | }, | ||||||||||||||||||||
| 2196 | |||||||||||||||||||||
| 2197 | 'indices.freeze' => { | ||||||||||||||||||||
| 2198 | doc => "frozen", | ||||||||||||||||||||
| 2199 | method => "POST", | ||||||||||||||||||||
| 2200 | parts => { index => { required => 1 } }, | ||||||||||||||||||||
| 2201 | paths => [ [ { index => 0 }, "{index}", "_freeze" ] ], | ||||||||||||||||||||
| 2202 | qs => { | ||||||||||||||||||||
| 2203 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2204 | error_trace => "boolean", | ||||||||||||||||||||
| 2205 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2206 | filter_path => "list", | ||||||||||||||||||||
| 2207 | human => "boolean", | ||||||||||||||||||||
| 2208 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2209 | master_timeout => "time", | ||||||||||||||||||||
| 2210 | timeout => "time", | ||||||||||||||||||||
| 2211 | wait_for_active_shards => "string", | ||||||||||||||||||||
| 2212 | }, | ||||||||||||||||||||
| 2213 | }, | ||||||||||||||||||||
| 2214 | |||||||||||||||||||||
| 2215 | 'indices.get' => { | ||||||||||||||||||||
| 2216 | doc => "indices-get-index", | ||||||||||||||||||||
| 2217 | parts => { index => { multi => 1, required => 1 } }, | ||||||||||||||||||||
| 2218 | paths => [ [ { index => 0 }, "{index}" ] ], | ||||||||||||||||||||
| 2219 | qs => { | ||||||||||||||||||||
| 2220 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2221 | error_trace => "boolean", | ||||||||||||||||||||
| 2222 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2223 | filter_path => "list", | ||||||||||||||||||||
| 2224 | flat_settings => "boolean", | ||||||||||||||||||||
| 2225 | human => "boolean", | ||||||||||||||||||||
| 2226 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2227 | include_defaults => "boolean", | ||||||||||||||||||||
| 2228 | include_type_name => "boolean", | ||||||||||||||||||||
| 2229 | local => "boolean", | ||||||||||||||||||||
| 2230 | master_timeout => "time", | ||||||||||||||||||||
| 2231 | }, | ||||||||||||||||||||
| 2232 | }, | ||||||||||||||||||||
| 2233 | |||||||||||||||||||||
| 2234 | 'indices.get_alias' => { | ||||||||||||||||||||
| 2235 | doc => "indices-aliases", | ||||||||||||||||||||
| 2236 | parts => { index => { multi => 1 }, name => { multi => 1 } }, | ||||||||||||||||||||
| 2237 | paths => [ | ||||||||||||||||||||
| 2238 | [ { index => 0, name => 2 }, "{index}", "_alias", "{name}" ], | ||||||||||||||||||||
| 2239 | [ { index => 0 }, "{index}", "_alias" ], | ||||||||||||||||||||
| 2240 | [ { name => 1 }, "_alias", "{name}" ], | ||||||||||||||||||||
| 2241 | [ {}, "_alias" ], | ||||||||||||||||||||
| 2242 | ], | ||||||||||||||||||||
| 2243 | qs => { | ||||||||||||||||||||
| 2244 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2245 | error_trace => "boolean", | ||||||||||||||||||||
| 2246 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2247 | filter_path => "list", | ||||||||||||||||||||
| 2248 | human => "boolean", | ||||||||||||||||||||
| 2249 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2250 | local => "boolean", | ||||||||||||||||||||
| 2251 | }, | ||||||||||||||||||||
| 2252 | }, | ||||||||||||||||||||
| 2253 | |||||||||||||||||||||
| 2254 | 'indices.get_field_mapping' => { | ||||||||||||||||||||
| 2255 | doc => "indices-get-field-mapping", | ||||||||||||||||||||
| 2256 | parts => { | ||||||||||||||||||||
| 2257 | fields => { multi => 1, required => 1 }, | ||||||||||||||||||||
| 2258 | index => { multi => 1 }, | ||||||||||||||||||||
| 2259 | type => { multi => 1 }, | ||||||||||||||||||||
| 2260 | }, | ||||||||||||||||||||
| 2261 | paths => [ | ||||||||||||||||||||
| 2262 | [ { fields => 4, index => 0, type => 2 }, "{index}", | ||||||||||||||||||||
| 2263 | "_mapping", "{type}", | ||||||||||||||||||||
| 2264 | "field", "{fields}", | ||||||||||||||||||||
| 2265 | ], | ||||||||||||||||||||
| 2266 | [ { fields => 3, index => 0 }, "{index}", | ||||||||||||||||||||
| 2267 | "_mapping", "field", | ||||||||||||||||||||
| 2268 | "{fields}", | ||||||||||||||||||||
| 2269 | ], | ||||||||||||||||||||
| 2270 | [ { fields => 3, type => 1 }, "_mapping", | ||||||||||||||||||||
| 2271 | "{type}", "field", | ||||||||||||||||||||
| 2272 | "{fields}", | ||||||||||||||||||||
| 2273 | ], | ||||||||||||||||||||
| 2274 | [ { fields => 2 }, "_mapping", "field", "{fields}" ], | ||||||||||||||||||||
| 2275 | ], | ||||||||||||||||||||
| 2276 | qs => { | ||||||||||||||||||||
| 2277 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2278 | error_trace => "boolean", | ||||||||||||||||||||
| 2279 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2280 | filter_path => "list", | ||||||||||||||||||||
| 2281 | human => "boolean", | ||||||||||||||||||||
| 2282 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2283 | include_defaults => "boolean", | ||||||||||||||||||||
| 2284 | include_type_name => "boolean", | ||||||||||||||||||||
| 2285 | local => "boolean", | ||||||||||||||||||||
| 2286 | }, | ||||||||||||||||||||
| 2287 | }, | ||||||||||||||||||||
| 2288 | |||||||||||||||||||||
| 2289 | 'indices.get_mapping' => { | ||||||||||||||||||||
| 2290 | doc => "indices-get-mapping", | ||||||||||||||||||||
| 2291 | parts => { index => { multi => 1 }, type => { multi => 1 } }, | ||||||||||||||||||||
| 2292 | paths => [ | ||||||||||||||||||||
| 2293 | [ { index => 0, type => 2 }, "{index}", "_mapping", "{type}" ], | ||||||||||||||||||||
| 2294 | [ { index => 0 }, "{index}", "_mapping" ], | ||||||||||||||||||||
| 2295 | [ { type => 1 }, "_mapping", "{type}" ], | ||||||||||||||||||||
| 2296 | [ {}, "_mapping" ], | ||||||||||||||||||||
| 2297 | ], | ||||||||||||||||||||
| 2298 | qs => { | ||||||||||||||||||||
| 2299 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2300 | error_trace => "boolean", | ||||||||||||||||||||
| 2301 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2302 | filter_path => "list", | ||||||||||||||||||||
| 2303 | human => "boolean", | ||||||||||||||||||||
| 2304 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2305 | include_type_name => "boolean", | ||||||||||||||||||||
| 2306 | local => "boolean", | ||||||||||||||||||||
| 2307 | master_timeout => "time", | ||||||||||||||||||||
| 2308 | }, | ||||||||||||||||||||
| 2309 | }, | ||||||||||||||||||||
| 2310 | |||||||||||||||||||||
| 2311 | 'indices.get_settings' => { | ||||||||||||||||||||
| 2312 | doc => "indices-get-settings", | ||||||||||||||||||||
| 2313 | parts => { index => { multi => 1 }, name => { multi => 1 } }, | ||||||||||||||||||||
| 2314 | paths => [ | ||||||||||||||||||||
| 2315 | [ { index => 0, name => 2 }, "{index}", "_settings", "{name}" ], | ||||||||||||||||||||
| 2316 | [ { index => 0 }, "{index}", "_settings" ], | ||||||||||||||||||||
| 2317 | [ { name => 1 }, "_settings", "{name}" ], | ||||||||||||||||||||
| 2318 | [ {}, "_settings" ], | ||||||||||||||||||||
| 2319 | ], | ||||||||||||||||||||
| 2320 | qs => { | ||||||||||||||||||||
| 2321 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2322 | error_trace => "boolean", | ||||||||||||||||||||
| 2323 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2324 | filter_path => "list", | ||||||||||||||||||||
| 2325 | flat_settings => "boolean", | ||||||||||||||||||||
| 2326 | human => "boolean", | ||||||||||||||||||||
| 2327 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2328 | include_defaults => "boolean", | ||||||||||||||||||||
| 2329 | local => "boolean", | ||||||||||||||||||||
| 2330 | master_timeout => "time", | ||||||||||||||||||||
| 2331 | }, | ||||||||||||||||||||
| 2332 | }, | ||||||||||||||||||||
| 2333 | |||||||||||||||||||||
| 2334 | 'indices.get_template' => { | ||||||||||||||||||||
| 2335 | doc => "indices-templates", | ||||||||||||||||||||
| 2336 | parts => { name => { multi => 1 } }, | ||||||||||||||||||||
| 2337 | paths => | ||||||||||||||||||||
| 2338 | [ [ { name => 1 }, "_template", "{name}" ], [ {}, "_template" ] ], | ||||||||||||||||||||
| 2339 | qs => { | ||||||||||||||||||||
| 2340 | error_trace => "boolean", | ||||||||||||||||||||
| 2341 | filter_path => "list", | ||||||||||||||||||||
| 2342 | flat_settings => "boolean", | ||||||||||||||||||||
| 2343 | human => "boolean", | ||||||||||||||||||||
| 2344 | include_type_name => "boolean", | ||||||||||||||||||||
| 2345 | local => "boolean", | ||||||||||||||||||||
| 2346 | master_timeout => "time", | ||||||||||||||||||||
| 2347 | }, | ||||||||||||||||||||
| 2348 | }, | ||||||||||||||||||||
| 2349 | |||||||||||||||||||||
| 2350 | 'indices.get_upgrade' => { | ||||||||||||||||||||
| 2351 | doc => "indices-upgrade", | ||||||||||||||||||||
| 2352 | parts => { index => { multi => 1 } }, | ||||||||||||||||||||
| 2353 | paths => | ||||||||||||||||||||
| 2354 | [ [ { index => 0 }, "{index}", "_upgrade" ], [ {}, "_upgrade" ] ], | ||||||||||||||||||||
| 2355 | qs => { | ||||||||||||||||||||
| 2356 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2357 | error_trace => "boolean", | ||||||||||||||||||||
| 2358 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2359 | filter_path => "list", | ||||||||||||||||||||
| 2360 | human => "boolean", | ||||||||||||||||||||
| 2361 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2362 | }, | ||||||||||||||||||||
| 2363 | }, | ||||||||||||||||||||
| 2364 | |||||||||||||||||||||
| 2365 | 'indices.open' => { | ||||||||||||||||||||
| 2366 | doc => "indices-open-close", | ||||||||||||||||||||
| 2367 | method => "POST", | ||||||||||||||||||||
| 2368 | parts => { index => { multi => 1, required => 1 } }, | ||||||||||||||||||||
| 2369 | paths => [ [ { index => 0 }, "{index}", "_open" ] ], | ||||||||||||||||||||
| 2370 | qs => { | ||||||||||||||||||||
| 2371 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2372 | error_trace => "boolean", | ||||||||||||||||||||
| 2373 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2374 | filter_path => "list", | ||||||||||||||||||||
| 2375 | human => "boolean", | ||||||||||||||||||||
| 2376 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2377 | master_timeout => "time", | ||||||||||||||||||||
| 2378 | timeout => "time", | ||||||||||||||||||||
| 2379 | wait_for_active_shards => "string", | ||||||||||||||||||||
| 2380 | }, | ||||||||||||||||||||
| 2381 | }, | ||||||||||||||||||||
| 2382 | |||||||||||||||||||||
| 2383 | 'indices.put_alias' => { | ||||||||||||||||||||
| 2384 | body => {}, | ||||||||||||||||||||
| 2385 | doc => "indices-aliases", | ||||||||||||||||||||
| 2386 | method => "PUT", | ||||||||||||||||||||
| 2387 | parts => { | ||||||||||||||||||||
| 2388 | index => { multi => 1, required => 1 }, | ||||||||||||||||||||
| 2389 | name => { required => 1 } | ||||||||||||||||||||
| 2390 | }, | ||||||||||||||||||||
| 2391 | paths => | ||||||||||||||||||||
| 2392 | [ [ { index => 0, name => 2 }, "{index}", "_alias", "{name}" ] ], | ||||||||||||||||||||
| 2393 | qs => { | ||||||||||||||||||||
| 2394 | error_trace => "boolean", | ||||||||||||||||||||
| 2395 | filter_path => "list", | ||||||||||||||||||||
| 2396 | human => "boolean", | ||||||||||||||||||||
| 2397 | master_timeout => "time", | ||||||||||||||||||||
| 2398 | timeout => "time", | ||||||||||||||||||||
| 2399 | }, | ||||||||||||||||||||
| 2400 | }, | ||||||||||||||||||||
| 2401 | |||||||||||||||||||||
| 2402 | 'indices.put_mapping' => { | ||||||||||||||||||||
| 2403 | body => { required => 1 }, | ||||||||||||||||||||
| 2404 | doc => "indices-put-mapping", | ||||||||||||||||||||
| 2405 | method => "PUT", | ||||||||||||||||||||
| 2406 | parts => { index => { multi => 1 }, type => {} }, | ||||||||||||||||||||
| 2407 | paths => [ | ||||||||||||||||||||
| 2408 | [ { index => 0, type => 2 }, "{index}", "_mapping", "{type}" ], | ||||||||||||||||||||
| 2409 | [ { index => 0 }, "{index}", "_mapping" ], | ||||||||||||||||||||
| 2410 | [ { type => 1 }, "_mapping", "{type}" ], | ||||||||||||||||||||
| 2411 | ], | ||||||||||||||||||||
| 2412 | qs => { | ||||||||||||||||||||
| 2413 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2414 | error_trace => "boolean", | ||||||||||||||||||||
| 2415 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2416 | filter_path => "list", | ||||||||||||||||||||
| 2417 | human => "boolean", | ||||||||||||||||||||
| 2418 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2419 | include_type_name => "boolean", | ||||||||||||||||||||
| 2420 | master_timeout => "time", | ||||||||||||||||||||
| 2421 | timeout => "time", | ||||||||||||||||||||
| 2422 | }, | ||||||||||||||||||||
| 2423 | }, | ||||||||||||||||||||
| 2424 | |||||||||||||||||||||
| 2425 | 'indices.put_settings' => { | ||||||||||||||||||||
| 2426 | body => { required => 1 }, | ||||||||||||||||||||
| 2427 | doc => "indices-update-settings", | ||||||||||||||||||||
| 2428 | method => "PUT", | ||||||||||||||||||||
| 2429 | parts => { index => { multi => 1 } }, | ||||||||||||||||||||
| 2430 | paths => [ | ||||||||||||||||||||
| 2431 | [ { index => 0 }, "{index}", "_settings" ], | ||||||||||||||||||||
| 2432 | [ {}, "_settings" ] | ||||||||||||||||||||
| 2433 | ], | ||||||||||||||||||||
| 2434 | qs => { | ||||||||||||||||||||
| 2435 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2436 | error_trace => "boolean", | ||||||||||||||||||||
| 2437 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2438 | filter_path => "list", | ||||||||||||||||||||
| 2439 | flat_settings => "boolean", | ||||||||||||||||||||
| 2440 | human => "boolean", | ||||||||||||||||||||
| 2441 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2442 | master_timeout => "time", | ||||||||||||||||||||
| 2443 | preserve_existing => "boolean", | ||||||||||||||||||||
| 2444 | timeout => "time", | ||||||||||||||||||||
| 2445 | }, | ||||||||||||||||||||
| 2446 | }, | ||||||||||||||||||||
| 2447 | |||||||||||||||||||||
| 2448 | 'indices.put_template' => { | ||||||||||||||||||||
| 2449 | body => { required => 1 }, | ||||||||||||||||||||
| 2450 | doc => "indices-templates", | ||||||||||||||||||||
| 2451 | method => "PUT", | ||||||||||||||||||||
| 2452 | parts => { name => { required => 1 } }, | ||||||||||||||||||||
| 2453 | paths => [ [ { name => 1 }, "_template", "{name}" ] ], | ||||||||||||||||||||
| 2454 | qs => { | ||||||||||||||||||||
| 2455 | create => "boolean", | ||||||||||||||||||||
| 2456 | error_trace => "boolean", | ||||||||||||||||||||
| 2457 | filter_path => "list", | ||||||||||||||||||||
| 2458 | flat_settings => "boolean", | ||||||||||||||||||||
| 2459 | human => "boolean", | ||||||||||||||||||||
| 2460 | include_type_name => "boolean", | ||||||||||||||||||||
| 2461 | master_timeout => "time", | ||||||||||||||||||||
| 2462 | order => "number", | ||||||||||||||||||||
| 2463 | timeout => "time", | ||||||||||||||||||||
| 2464 | }, | ||||||||||||||||||||
| 2465 | }, | ||||||||||||||||||||
| 2466 | |||||||||||||||||||||
| 2467 | 'indices.recovery' => { | ||||||||||||||||||||
| 2468 | doc => "indices-recovery", | ||||||||||||||||||||
| 2469 | parts => { index => { multi => 1 } }, | ||||||||||||||||||||
| 2470 | paths => [ | ||||||||||||||||||||
| 2471 | [ { index => 0 }, "{index}", "_recovery" ], | ||||||||||||||||||||
| 2472 | [ {}, "_recovery" ] | ||||||||||||||||||||
| 2473 | ], | ||||||||||||||||||||
| 2474 | qs => { | ||||||||||||||||||||
| 2475 | active_only => "boolean", | ||||||||||||||||||||
| 2476 | detailed => "boolean", | ||||||||||||||||||||
| 2477 | error_trace => "boolean", | ||||||||||||||||||||
| 2478 | filter_path => "list", | ||||||||||||||||||||
| 2479 | human => "boolean", | ||||||||||||||||||||
| 2480 | }, | ||||||||||||||||||||
| 2481 | }, | ||||||||||||||||||||
| 2482 | |||||||||||||||||||||
| 2483 | 'indices.refresh' => { | ||||||||||||||||||||
| 2484 | doc => "indices-refresh", | ||||||||||||||||||||
| 2485 | method => "POST", | ||||||||||||||||||||
| 2486 | parts => { index => { multi => 1 } }, | ||||||||||||||||||||
| 2487 | paths => | ||||||||||||||||||||
| 2488 | [ [ { index => 0 }, "{index}", "_refresh" ], [ {}, "_refresh" ] ], | ||||||||||||||||||||
| 2489 | qs => { | ||||||||||||||||||||
| 2490 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2491 | error_trace => "boolean", | ||||||||||||||||||||
| 2492 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2493 | filter_path => "list", | ||||||||||||||||||||
| 2494 | human => "boolean", | ||||||||||||||||||||
| 2495 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2496 | }, | ||||||||||||||||||||
| 2497 | }, | ||||||||||||||||||||
| 2498 | |||||||||||||||||||||
| 2499 | 'indices.reload_search_analyzers' => { | ||||||||||||||||||||
| 2500 | doc => "indices-reload-analyzers", | ||||||||||||||||||||
| 2501 | parts => { index => { multi => 1 } }, | ||||||||||||||||||||
| 2502 | paths => | ||||||||||||||||||||
| 2503 | [ [ { index => 0 }, "{index}", "_reload_search_analyzers" ] ], | ||||||||||||||||||||
| 2504 | qs => { | ||||||||||||||||||||
| 2505 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2506 | error_trace => "boolean", | ||||||||||||||||||||
| 2507 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2508 | filter_path => "list", | ||||||||||||||||||||
| 2509 | human => "boolean", | ||||||||||||||||||||
| 2510 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2511 | }, | ||||||||||||||||||||
| 2512 | }, | ||||||||||||||||||||
| 2513 | |||||||||||||||||||||
| 2514 | 'indices.rollover' => { | ||||||||||||||||||||
| 2515 | body => {}, | ||||||||||||||||||||
| 2516 | doc => "indices-rollover-index", | ||||||||||||||||||||
| 2517 | method => "POST", | ||||||||||||||||||||
| 2518 | parts => { alias => { required => 1 }, new_index => {} }, | ||||||||||||||||||||
| 2519 | paths => [ | ||||||||||||||||||||
| 2520 | [ { alias => 0, new_index => 2 }, "{alias}", | ||||||||||||||||||||
| 2521 | "_rollover", "{new_index}", | ||||||||||||||||||||
| 2522 | ], | ||||||||||||||||||||
| 2523 | [ { alias => 0 }, "{alias}", "_rollover" ], | ||||||||||||||||||||
| 2524 | ], | ||||||||||||||||||||
| 2525 | qs => { | ||||||||||||||||||||
| 2526 | dry_run => "boolean", | ||||||||||||||||||||
| 2527 | error_trace => "boolean", | ||||||||||||||||||||
| 2528 | filter_path => "list", | ||||||||||||||||||||
| 2529 | human => "boolean", | ||||||||||||||||||||
| 2530 | include_type_name => "boolean", | ||||||||||||||||||||
| 2531 | master_timeout => "time", | ||||||||||||||||||||
| 2532 | timeout => "time", | ||||||||||||||||||||
| 2533 | wait_for_active_shards => "string", | ||||||||||||||||||||
| 2534 | }, | ||||||||||||||||||||
| 2535 | }, | ||||||||||||||||||||
| 2536 | |||||||||||||||||||||
| 2537 | 'indices.segments' => { | ||||||||||||||||||||
| 2538 | doc => "indices-segments", | ||||||||||||||||||||
| 2539 | parts => { index => { multi => 1 } }, | ||||||||||||||||||||
| 2540 | paths => [ | ||||||||||||||||||||
| 2541 | [ { index => 0 }, "{index}", "_segments" ], | ||||||||||||||||||||
| 2542 | [ {}, "_segments" ] | ||||||||||||||||||||
| 2543 | ], | ||||||||||||||||||||
| 2544 | qs => { | ||||||||||||||||||||
| 2545 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2546 | error_trace => "boolean", | ||||||||||||||||||||
| 2547 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2548 | filter_path => "list", | ||||||||||||||||||||
| 2549 | human => "boolean", | ||||||||||||||||||||
| 2550 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2551 | verbose => "boolean", | ||||||||||||||||||||
| 2552 | }, | ||||||||||||||||||||
| 2553 | }, | ||||||||||||||||||||
| 2554 | |||||||||||||||||||||
| 2555 | 'indices.shard_stores' => { | ||||||||||||||||||||
| 2556 | doc => "indices-shards-stores", | ||||||||||||||||||||
| 2557 | parts => { index => { multi => 1 } }, | ||||||||||||||||||||
| 2558 | paths => [ | ||||||||||||||||||||
| 2559 | [ { index => 0 }, "{index}", "_shard_stores" ], | ||||||||||||||||||||
| 2560 | [ {}, "_shard_stores" ], | ||||||||||||||||||||
| 2561 | ], | ||||||||||||||||||||
| 2562 | qs => { | ||||||||||||||||||||
| 2563 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2564 | error_trace => "boolean", | ||||||||||||||||||||
| 2565 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2566 | filter_path => "list", | ||||||||||||||||||||
| 2567 | human => "boolean", | ||||||||||||||||||||
| 2568 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2569 | status => "list", | ||||||||||||||||||||
| 2570 | }, | ||||||||||||||||||||
| 2571 | }, | ||||||||||||||||||||
| 2572 | |||||||||||||||||||||
| 2573 | 'indices.shrink' => { | ||||||||||||||||||||
| 2574 | body => {}, | ||||||||||||||||||||
| 2575 | doc => "indices-shrink-index", | ||||||||||||||||||||
| 2576 | method => "PUT", | ||||||||||||||||||||
| 2577 | parts => { index => { required => 1 }, target => { required => 1 } }, | ||||||||||||||||||||
| 2578 | paths => [ | ||||||||||||||||||||
| 2579 | [ { index => 0, target => 2 }, "{index}", "_shrink", "{target}" ], | ||||||||||||||||||||
| 2580 | ], | ||||||||||||||||||||
| 2581 | qs => { | ||||||||||||||||||||
| 2582 | copy_settings => "boolean", | ||||||||||||||||||||
| 2583 | error_trace => "boolean", | ||||||||||||||||||||
| 2584 | filter_path => "list", | ||||||||||||||||||||
| 2585 | human => "boolean", | ||||||||||||||||||||
| 2586 | master_timeout => "time", | ||||||||||||||||||||
| 2587 | timeout => "time", | ||||||||||||||||||||
| 2588 | wait_for_active_shards => "string", | ||||||||||||||||||||
| 2589 | }, | ||||||||||||||||||||
| 2590 | }, | ||||||||||||||||||||
| 2591 | |||||||||||||||||||||
| 2592 | 'indices.split' => { | ||||||||||||||||||||
| 2593 | body => {}, | ||||||||||||||||||||
| 2594 | doc => "indices-split-index", | ||||||||||||||||||||
| 2595 | method => "PUT", | ||||||||||||||||||||
| 2596 | parts => { index => { required => 1 }, target => { required => 1 } }, | ||||||||||||||||||||
| 2597 | paths => [ | ||||||||||||||||||||
| 2598 | [ { index => 0, target => 2 }, "{index}", "_split", "{target}" ], | ||||||||||||||||||||
| 2599 | ], | ||||||||||||||||||||
| 2600 | qs => { | ||||||||||||||||||||
| 2601 | copy_settings => "boolean", | ||||||||||||||||||||
| 2602 | error_trace => "boolean", | ||||||||||||||||||||
| 2603 | filter_path => "list", | ||||||||||||||||||||
| 2604 | human => "boolean", | ||||||||||||||||||||
| 2605 | master_timeout => "time", | ||||||||||||||||||||
| 2606 | timeout => "time", | ||||||||||||||||||||
| 2607 | wait_for_active_shards => "string", | ||||||||||||||||||||
| 2608 | }, | ||||||||||||||||||||
| 2609 | }, | ||||||||||||||||||||
| 2610 | |||||||||||||||||||||
| 2611 | 'indices.stats' => { | ||||||||||||||||||||
| 2612 | doc => "indices-stats", | ||||||||||||||||||||
| 2613 | parts => { index => { multi => 1 }, metric => { multi => 1 } }, | ||||||||||||||||||||
| 2614 | paths => [ | ||||||||||||||||||||
| 2615 | [ { index => 0, metric => 2 }, "{index}", "_stats", "{metric}" ], | ||||||||||||||||||||
| 2616 | [ { index => 0 }, "{index}", "_stats" ], | ||||||||||||||||||||
| 2617 | [ { metric => 1 }, "_stats", "{metric}" ], | ||||||||||||||||||||
| 2618 | [ {}, "_stats" ], | ||||||||||||||||||||
| 2619 | ], | ||||||||||||||||||||
| 2620 | qs => { | ||||||||||||||||||||
| 2621 | completion_fields => "list", | ||||||||||||||||||||
| 2622 | error_trace => "boolean", | ||||||||||||||||||||
| 2623 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2624 | fielddata_fields => "list", | ||||||||||||||||||||
| 2625 | fields => "list", | ||||||||||||||||||||
| 2626 | filter_path => "list", | ||||||||||||||||||||
| 2627 | forbid_closed_indices => "boolean", | ||||||||||||||||||||
| 2628 | groups => "list", | ||||||||||||||||||||
| 2629 | human => "boolean", | ||||||||||||||||||||
| 2630 | include_segment_file_sizes => "boolean", | ||||||||||||||||||||
| 2631 | include_unloaded_segments => "boolean", | ||||||||||||||||||||
| 2632 | level => "enum", | ||||||||||||||||||||
| 2633 | types => "list", | ||||||||||||||||||||
| 2634 | }, | ||||||||||||||||||||
| 2635 | }, | ||||||||||||||||||||
| 2636 | |||||||||||||||||||||
| 2637 | 'indices.unfreeze' => { | ||||||||||||||||||||
| 2638 | doc => "frozen", | ||||||||||||||||||||
| 2639 | method => "POST", | ||||||||||||||||||||
| 2640 | parts => { index => { required => 1 } }, | ||||||||||||||||||||
| 2641 | paths => [ [ { index => 0 }, "{index}", "_unfreeze" ] ], | ||||||||||||||||||||
| 2642 | qs => { | ||||||||||||||||||||
| 2643 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2644 | error_trace => "boolean", | ||||||||||||||||||||
| 2645 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2646 | filter_path => "list", | ||||||||||||||||||||
| 2647 | human => "boolean", | ||||||||||||||||||||
| 2648 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2649 | master_timeout => "time", | ||||||||||||||||||||
| 2650 | timeout => "time", | ||||||||||||||||||||
| 2651 | wait_for_active_shards => "string", | ||||||||||||||||||||
| 2652 | }, | ||||||||||||||||||||
| 2653 | }, | ||||||||||||||||||||
| 2654 | |||||||||||||||||||||
| 2655 | 'indices.update_aliases' => { | ||||||||||||||||||||
| 2656 | body => { required => 1 }, | ||||||||||||||||||||
| 2657 | doc => "indices-aliases", | ||||||||||||||||||||
| 2658 | method => "POST", | ||||||||||||||||||||
| 2659 | parts => {}, | ||||||||||||||||||||
| 2660 | paths => [ [ {}, "_aliases" ] ], | ||||||||||||||||||||
| 2661 | qs => { | ||||||||||||||||||||
| 2662 | error_trace => "boolean", | ||||||||||||||||||||
| 2663 | filter_path => "list", | ||||||||||||||||||||
| 2664 | human => "boolean", | ||||||||||||||||||||
| 2665 | master_timeout => "time", | ||||||||||||||||||||
| 2666 | timeout => "time", | ||||||||||||||||||||
| 2667 | }, | ||||||||||||||||||||
| 2668 | }, | ||||||||||||||||||||
| 2669 | |||||||||||||||||||||
| 2670 | 'indices.upgrade' => { | ||||||||||||||||||||
| 2671 | doc => "indices-upgrade", | ||||||||||||||||||||
| 2672 | method => "POST", | ||||||||||||||||||||
| 2673 | parts => { index => { multi => 1 } }, | ||||||||||||||||||||
| 2674 | paths => | ||||||||||||||||||||
| 2675 | [ [ { index => 0 }, "{index}", "_upgrade" ], [ {}, "_upgrade" ] ], | ||||||||||||||||||||
| 2676 | qs => { | ||||||||||||||||||||
| 2677 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2678 | error_trace => "boolean", | ||||||||||||||||||||
| 2679 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2680 | filter_path => "list", | ||||||||||||||||||||
| 2681 | human => "boolean", | ||||||||||||||||||||
| 2682 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2683 | only_ancient_segments => "boolean", | ||||||||||||||||||||
| 2684 | wait_for_completion => "boolean", | ||||||||||||||||||||
| 2685 | }, | ||||||||||||||||||||
| 2686 | }, | ||||||||||||||||||||
| 2687 | |||||||||||||||||||||
| 2688 | 'indices.validate_query' => { | ||||||||||||||||||||
| 2689 | body => {}, | ||||||||||||||||||||
| 2690 | doc => "search-validate", | ||||||||||||||||||||
| 2691 | parts => { index => { multi => 1 }, type => { multi => 1 } }, | ||||||||||||||||||||
| 2692 | paths => [ | ||||||||||||||||||||
| 2693 | [ { index => 0, type => 1 }, "{index}", | ||||||||||||||||||||
| 2694 | "{type}", "_validate", | ||||||||||||||||||||
| 2695 | "query", | ||||||||||||||||||||
| 2696 | ], | ||||||||||||||||||||
| 2697 | [ { index => 0 }, "{index}", "_validate", "query" ], | ||||||||||||||||||||
| 2698 | [ {}, "_validate", "query" ], | ||||||||||||||||||||
| 2699 | ], | ||||||||||||||||||||
| 2700 | qs => { | ||||||||||||||||||||
| 2701 | all_shards => "boolean", | ||||||||||||||||||||
| 2702 | allow_no_indices => "boolean", | ||||||||||||||||||||
| 2703 | analyze_wildcard => "boolean", | ||||||||||||||||||||
| 2704 | analyzer => "string", | ||||||||||||||||||||
| 2705 | default_operator => "enum", | ||||||||||||||||||||
| 2706 | df => "string", | ||||||||||||||||||||
| 2707 | error_trace => "boolean", | ||||||||||||||||||||
| 2708 | expand_wildcards => "enum", | ||||||||||||||||||||
| 2709 | explain => "boolean", | ||||||||||||||||||||
| 2710 | filter_path => "list", | ||||||||||||||||||||
| 2711 | human => "boolean", | ||||||||||||||||||||
| 2712 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 2713 | lenient => "boolean", | ||||||||||||||||||||
| 2714 | q => "string", | ||||||||||||||||||||
| 2715 | rewrite => "boolean", | ||||||||||||||||||||
| 2716 | }, | ||||||||||||||||||||
| 2717 | }, | ||||||||||||||||||||
| 2718 | |||||||||||||||||||||
| 2719 | 'ingest.delete_pipeline' => { | ||||||||||||||||||||
| 2720 | doc => "delete-pipeline-api", | ||||||||||||||||||||
| 2721 | method => "DELETE", | ||||||||||||||||||||
| 2722 | parts => { id => { required => 1 } }, | ||||||||||||||||||||
| 2723 | paths => [ [ { id => 2 }, "_ingest", "pipeline", "{id}" ] ], | ||||||||||||||||||||
| 2724 | qs => { | ||||||||||||||||||||
| 2725 | error_trace => "boolean", | ||||||||||||||||||||
| 2726 | filter_path => "list", | ||||||||||||||||||||
| 2727 | human => "boolean", | ||||||||||||||||||||
| 2728 | master_timeout => "time", | ||||||||||||||||||||
| 2729 | timeout => "time", | ||||||||||||||||||||
| 2730 | }, | ||||||||||||||||||||
| 2731 | }, | ||||||||||||||||||||
| 2732 | |||||||||||||||||||||
| 2733 | 'ingest.get_pipeline' => { | ||||||||||||||||||||
| 2734 | doc => "get-pipeline-api", | ||||||||||||||||||||
| 2735 | parts => { id => {} }, | ||||||||||||||||||||
| 2736 | paths => [ | ||||||||||||||||||||
| 2737 | [ { id => 2 }, "_ingest", "pipeline", "{id}" ], | ||||||||||||||||||||
| 2738 | [ {}, "_ingest", "pipeline" ], | ||||||||||||||||||||
| 2739 | ], | ||||||||||||||||||||
| 2740 | qs => { | ||||||||||||||||||||
| 2741 | error_trace => "boolean", | ||||||||||||||||||||
| 2742 | filter_path => "list", | ||||||||||||||||||||
| 2743 | human => "boolean", | ||||||||||||||||||||
| 2744 | master_timeout => "time", | ||||||||||||||||||||
| 2745 | }, | ||||||||||||||||||||
| 2746 | }, | ||||||||||||||||||||
| 2747 | |||||||||||||||||||||
| 2748 | 'ingest.processor_grok' => { | ||||||||||||||||||||
| 2749 | doc => "", | ||||||||||||||||||||
| 2750 | parts => {}, | ||||||||||||||||||||
| 2751 | paths => [ [ {}, "_ingest", "processor", "grok" ] ], | ||||||||||||||||||||
| 2752 | qs => { | ||||||||||||||||||||
| 2753 | error_trace => "boolean", | ||||||||||||||||||||
| 2754 | filter_path => "list", | ||||||||||||||||||||
| 2755 | human => "boolean" | ||||||||||||||||||||
| 2756 | }, | ||||||||||||||||||||
| 2757 | }, | ||||||||||||||||||||
| 2758 | |||||||||||||||||||||
| 2759 | 'ingest.put_pipeline' => { | ||||||||||||||||||||
| 2760 | body => { required => 1 }, | ||||||||||||||||||||
| 2761 | doc => "put-pipeline-api", | ||||||||||||||||||||
| 2762 | method => "PUT", | ||||||||||||||||||||
| 2763 | parts => { id => { required => 1 } }, | ||||||||||||||||||||
| 2764 | paths => [ [ { id => 2 }, "_ingest", "pipeline", "{id}" ] ], | ||||||||||||||||||||
| 2765 | qs => { | ||||||||||||||||||||
| 2766 | error_trace => "boolean", | ||||||||||||||||||||
| 2767 | filter_path => "list", | ||||||||||||||||||||
| 2768 | human => "boolean", | ||||||||||||||||||||
| 2769 | master_timeout => "time", | ||||||||||||||||||||
| 2770 | timeout => "time", | ||||||||||||||||||||
| 2771 | }, | ||||||||||||||||||||
| 2772 | }, | ||||||||||||||||||||
| 2773 | |||||||||||||||||||||
| 2774 | 'ingest.simulate' => { | ||||||||||||||||||||
| 2775 | body => { required => 1 }, | ||||||||||||||||||||
| 2776 | doc => "simulate-pipeline-api", | ||||||||||||||||||||
| 2777 | parts => { id => {} }, | ||||||||||||||||||||
| 2778 | paths => [ | ||||||||||||||||||||
| 2779 | [ { id => 2 }, "_ingest", "pipeline", "{id}", "_simulate" ], | ||||||||||||||||||||
| 2780 | [ {}, "_ingest", "pipeline", "_simulate" ], | ||||||||||||||||||||
| 2781 | ], | ||||||||||||||||||||
| 2782 | qs => { | ||||||||||||||||||||
| 2783 | error_trace => "boolean", | ||||||||||||||||||||
| 2784 | filter_path => "list", | ||||||||||||||||||||
| 2785 | human => "boolean", | ||||||||||||||||||||
| 2786 | verbose => "boolean", | ||||||||||||||||||||
| 2787 | }, | ||||||||||||||||||||
| 2788 | }, | ||||||||||||||||||||
| 2789 | |||||||||||||||||||||
| 2790 | 'license.delete' => { | ||||||||||||||||||||
| 2791 | doc => "delete-license", | ||||||||||||||||||||
| 2792 | method => "DELETE", | ||||||||||||||||||||
| 2793 | parts => {}, | ||||||||||||||||||||
| 2794 | paths => [ [ {}, "_license" ] ], | ||||||||||||||||||||
| 2795 | qs => { | ||||||||||||||||||||
| 2796 | error_trace => "boolean", | ||||||||||||||||||||
| 2797 | filter_path => "list", | ||||||||||||||||||||
| 2798 | human => "boolean" | ||||||||||||||||||||
| 2799 | }, | ||||||||||||||||||||
| 2800 | }, | ||||||||||||||||||||
| 2801 | |||||||||||||||||||||
| 2802 | 'license.get' => { | ||||||||||||||||||||
| 2803 | doc => "get-license", | ||||||||||||||||||||
| 2804 | parts => {}, | ||||||||||||||||||||
| 2805 | paths => [ [ {}, "_license" ] ], | ||||||||||||||||||||
| 2806 | qs => { | ||||||||||||||||||||
| 2807 | error_trace => "boolean", | ||||||||||||||||||||
| 2808 | filter_path => "list", | ||||||||||||||||||||
| 2809 | human => "boolean", | ||||||||||||||||||||
| 2810 | local => "boolean", | ||||||||||||||||||||
| 2811 | }, | ||||||||||||||||||||
| 2812 | }, | ||||||||||||||||||||
| 2813 | |||||||||||||||||||||
| 2814 | 'license.get_basic_status' => { | ||||||||||||||||||||
| 2815 | doc => "get-basic-status", | ||||||||||||||||||||
| 2816 | parts => {}, | ||||||||||||||||||||
| 2817 | paths => [ [ {}, "_license", "basic_status" ] ], | ||||||||||||||||||||
| 2818 | qs => { | ||||||||||||||||||||
| 2819 | error_trace => "boolean", | ||||||||||||||||||||
| 2820 | filter_path => "list", | ||||||||||||||||||||
| 2821 | human => "boolean" | ||||||||||||||||||||
| 2822 | }, | ||||||||||||||||||||
| 2823 | }, | ||||||||||||||||||||
| 2824 | |||||||||||||||||||||
| 2825 | 'license.get_trial_status' => { | ||||||||||||||||||||
| 2826 | doc => "get-trial-status", | ||||||||||||||||||||
| 2827 | parts => {}, | ||||||||||||||||||||
| 2828 | paths => [ [ {}, "_license", "trial_status" ] ], | ||||||||||||||||||||
| 2829 | qs => { | ||||||||||||||||||||
| 2830 | error_trace => "boolean", | ||||||||||||||||||||
| 2831 | filter_path => "list", | ||||||||||||||||||||
| 2832 | human => "boolean" | ||||||||||||||||||||
| 2833 | }, | ||||||||||||||||||||
| 2834 | }, | ||||||||||||||||||||
| 2835 | |||||||||||||||||||||
| 2836 | 'license.post' => { | ||||||||||||||||||||
| 2837 | body => {}, | ||||||||||||||||||||
| 2838 | doc => "update-license", | ||||||||||||||||||||
| 2839 | method => "PUT", | ||||||||||||||||||||
| 2840 | parts => {}, | ||||||||||||||||||||
| 2841 | paths => [ [ {}, "_license" ] ], | ||||||||||||||||||||
| 2842 | qs => { | ||||||||||||||||||||
| 2843 | acknowledge => "boolean", | ||||||||||||||||||||
| 2844 | error_trace => "boolean", | ||||||||||||||||||||
| 2845 | filter_path => "list", | ||||||||||||||||||||
| 2846 | human => "boolean", | ||||||||||||||||||||
| 2847 | }, | ||||||||||||||||||||
| 2848 | }, | ||||||||||||||||||||
| 2849 | |||||||||||||||||||||
| 2850 | 'license.post_start_basic' => { | ||||||||||||||||||||
| 2851 | doc => "start-basic", | ||||||||||||||||||||
| 2852 | method => "POST", | ||||||||||||||||||||
| 2853 | parts => {}, | ||||||||||||||||||||
| 2854 | paths => [ [ {}, "_license", "start_basic" ] ], | ||||||||||||||||||||
| 2855 | qs => { | ||||||||||||||||||||
| 2856 | acknowledge => "boolean", | ||||||||||||||||||||
| 2857 | error_trace => "boolean", | ||||||||||||||||||||
| 2858 | filter_path => "list", | ||||||||||||||||||||
| 2859 | human => "boolean", | ||||||||||||||||||||
| 2860 | }, | ||||||||||||||||||||
| 2861 | }, | ||||||||||||||||||||
| 2862 | |||||||||||||||||||||
| 2863 | 'license.post_start_trial' => { | ||||||||||||||||||||
| 2864 | doc => "start-trial", | ||||||||||||||||||||
| 2865 | method => "POST", | ||||||||||||||||||||
| 2866 | parts => {}, | ||||||||||||||||||||
| 2867 | paths => [ [ {}, "_license", "start_trial" ] ], | ||||||||||||||||||||
| 2868 | qs => { | ||||||||||||||||||||
| 2869 | acknowledge => "boolean", | ||||||||||||||||||||
| 2870 | error_trace => "boolean", | ||||||||||||||||||||
| 2871 | filter_path => "list", | ||||||||||||||||||||
| 2872 | human => "boolean", | ||||||||||||||||||||
| 2873 | type => "string", | ||||||||||||||||||||
| 2874 | }, | ||||||||||||||||||||
| 2875 | }, | ||||||||||||||||||||
| 2876 | |||||||||||||||||||||
| 2877 | 'migration.deprecations' => { | ||||||||||||||||||||
| 2878 | doc => "migration-api-deprecation", | ||||||||||||||||||||
| 2879 | parts => { index => {} }, | ||||||||||||||||||||
| 2880 | paths => [ | ||||||||||||||||||||
| 2881 | [ { index => 0 }, "{index}", "_migration", "deprecations" ], | ||||||||||||||||||||
| 2882 | [ {}, "_migration", "deprecations" ], | ||||||||||||||||||||
| 2883 | ], | ||||||||||||||||||||
| 2884 | qs => { | ||||||||||||||||||||
| 2885 | error_trace => "boolean", | ||||||||||||||||||||
| 2886 | filter_path => "list", | ||||||||||||||||||||
| 2887 | human => "boolean" | ||||||||||||||||||||
| 2888 | }, | ||||||||||||||||||||
| 2889 | }, | ||||||||||||||||||||
| 2890 | |||||||||||||||||||||
| 2891 | 'ml.close_job' => { | ||||||||||||||||||||
| 2892 | body => {}, | ||||||||||||||||||||
| 2893 | doc => "ml-close-job", | ||||||||||||||||||||
| 2894 | method => "POST", | ||||||||||||||||||||
| 2895 | parts => { job_id => { required => 1 } }, | ||||||||||||||||||||
| 2896 | paths => [ | ||||||||||||||||||||
| 2897 | [ { job_id => 2 }, "_ml", | ||||||||||||||||||||
| 2898 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 2899 | "_close", | ||||||||||||||||||||
| 2900 | ], | ||||||||||||||||||||
| 2901 | ], | ||||||||||||||||||||
| 2902 | qs => { | ||||||||||||||||||||
| 2903 | allow_no_jobs => "boolean", | ||||||||||||||||||||
| 2904 | error_trace => "boolean", | ||||||||||||||||||||
| 2905 | filter_path => "list", | ||||||||||||||||||||
| 2906 | force => "boolean", | ||||||||||||||||||||
| 2907 | human => "boolean", | ||||||||||||||||||||
| 2908 | timeout => "time", | ||||||||||||||||||||
| 2909 | }, | ||||||||||||||||||||
| 2910 | }, | ||||||||||||||||||||
| 2911 | |||||||||||||||||||||
| 2912 | 'ml.delete_calendar' => { | ||||||||||||||||||||
| 2913 | method => "DELETE", | ||||||||||||||||||||
| 2914 | parts => { calendar_id => { required => 1 } }, | ||||||||||||||||||||
| 2915 | paths => | ||||||||||||||||||||
| 2916 | [ [ { calendar_id => 2 }, "_ml", "calendars", "{calendar_id}" ] ], | ||||||||||||||||||||
| 2917 | qs => { | ||||||||||||||||||||
| 2918 | error_trace => "boolean", | ||||||||||||||||||||
| 2919 | filter_path => "list", | ||||||||||||||||||||
| 2920 | human => "boolean" | ||||||||||||||||||||
| 2921 | }, | ||||||||||||||||||||
| 2922 | }, | ||||||||||||||||||||
| 2923 | |||||||||||||||||||||
| 2924 | 'ml.delete_calendar_event' => { | ||||||||||||||||||||
| 2925 | method => "DELETE", | ||||||||||||||||||||
| 2926 | parts => { | ||||||||||||||||||||
| 2927 | calendar_id => { required => 1 }, | ||||||||||||||||||||
| 2928 | event_id => { required => 1 } | ||||||||||||||||||||
| 2929 | }, | ||||||||||||||||||||
| 2930 | paths => [ | ||||||||||||||||||||
| 2931 | [ { calendar_id => 2, event_id => 4 }, "_ml", | ||||||||||||||||||||
| 2932 | "calendars", "{calendar_id}", | ||||||||||||||||||||
| 2933 | "events", "{event_id}", | ||||||||||||||||||||
| 2934 | ], | ||||||||||||||||||||
| 2935 | ], | ||||||||||||||||||||
| 2936 | qs => { | ||||||||||||||||||||
| 2937 | error_trace => "boolean", | ||||||||||||||||||||
| 2938 | filter_path => "list", | ||||||||||||||||||||
| 2939 | human => "boolean" | ||||||||||||||||||||
| 2940 | }, | ||||||||||||||||||||
| 2941 | }, | ||||||||||||||||||||
| 2942 | |||||||||||||||||||||
| 2943 | 'ml.delete_calendar_job' => { | ||||||||||||||||||||
| 2944 | method => "DELETE", | ||||||||||||||||||||
| 2945 | parts => | ||||||||||||||||||||
| 2946 | { calendar_id => { required => 1 }, job_id => { required => 1 } }, | ||||||||||||||||||||
| 2947 | paths => [ | ||||||||||||||||||||
| 2948 | [ { calendar_id => 2, job_id => 4 }, | ||||||||||||||||||||
| 2949 | "_ml", "calendars", "{calendar_id}", "jobs", "{job_id}", | ||||||||||||||||||||
| 2950 | ], | ||||||||||||||||||||
| 2951 | ], | ||||||||||||||||||||
| 2952 | qs => { | ||||||||||||||||||||
| 2953 | error_trace => "boolean", | ||||||||||||||||||||
| 2954 | filter_path => "list", | ||||||||||||||||||||
| 2955 | human => "boolean" | ||||||||||||||||||||
| 2956 | }, | ||||||||||||||||||||
| 2957 | }, | ||||||||||||||||||||
| 2958 | |||||||||||||||||||||
| 2959 | 'ml.delete_data_frame_analytics' => { | ||||||||||||||||||||
| 2960 | doc => "delete-dfanalytics", | ||||||||||||||||||||
| 2961 | method => "DELETE", | ||||||||||||||||||||
| 2962 | parts => { id => { required => 1 } }, | ||||||||||||||||||||
| 2963 | paths => | ||||||||||||||||||||
| 2964 | [ [ { id => 3 }, "_ml", "data_frame", "analytics", "{id}" ] ], | ||||||||||||||||||||
| 2965 | qs => { | ||||||||||||||||||||
| 2966 | error_trace => "boolean", | ||||||||||||||||||||
| 2967 | filter_path => "list", | ||||||||||||||||||||
| 2968 | human => "boolean" | ||||||||||||||||||||
| 2969 | }, | ||||||||||||||||||||
| 2970 | }, | ||||||||||||||||||||
| 2971 | |||||||||||||||||||||
| 2972 | 'ml.delete_datafeed' => { | ||||||||||||||||||||
| 2973 | doc => "ml-delete-datafeed", | ||||||||||||||||||||
| 2974 | method => "DELETE", | ||||||||||||||||||||
| 2975 | parts => { datafeed_id => { required => 1 } }, | ||||||||||||||||||||
| 2976 | paths => | ||||||||||||||||||||
| 2977 | [ [ { datafeed_id => 2 }, "_ml", "datafeeds", "{datafeed_id}" ] ], | ||||||||||||||||||||
| 2978 | qs => { | ||||||||||||||||||||
| 2979 | error_trace => "boolean", | ||||||||||||||||||||
| 2980 | filter_path => "list", | ||||||||||||||||||||
| 2981 | force => "boolean", | ||||||||||||||||||||
| 2982 | human => "boolean", | ||||||||||||||||||||
| 2983 | }, | ||||||||||||||||||||
| 2984 | }, | ||||||||||||||||||||
| 2985 | |||||||||||||||||||||
| 2986 | 'ml.delete_expired_data' => { | ||||||||||||||||||||
| 2987 | method => "DELETE", | ||||||||||||||||||||
| 2988 | parts => {}, | ||||||||||||||||||||
| 2989 | paths => [ [ {}, "_ml", "_delete_expired_data" ] ], | ||||||||||||||||||||
| 2990 | qs => { | ||||||||||||||||||||
| 2991 | error_trace => "boolean", | ||||||||||||||||||||
| 2992 | filter_path => "list", | ||||||||||||||||||||
| 2993 | human => "boolean" | ||||||||||||||||||||
| 2994 | }, | ||||||||||||||||||||
| 2995 | }, | ||||||||||||||||||||
| 2996 | |||||||||||||||||||||
| 2997 | 'ml.delete_filter' => { | ||||||||||||||||||||
| 2998 | method => "DELETE", | ||||||||||||||||||||
| 2999 | parts => { filter_id => { required => 1 } }, | ||||||||||||||||||||
| 3000 | paths => [ [ { filter_id => 2 }, "_ml", "filters", "{filter_id}" ] ], | ||||||||||||||||||||
| 3001 | qs => { | ||||||||||||||||||||
| 3002 | error_trace => "boolean", | ||||||||||||||||||||
| 3003 | filter_path => "list", | ||||||||||||||||||||
| 3004 | human => "boolean" | ||||||||||||||||||||
| 3005 | }, | ||||||||||||||||||||
| 3006 | }, | ||||||||||||||||||||
| 3007 | |||||||||||||||||||||
| 3008 | 'ml.delete_forecast' => { | ||||||||||||||||||||
| 3009 | doc => "ml-delete-forecast", | ||||||||||||||||||||
| 3010 | method => "DELETE", | ||||||||||||||||||||
| 3011 | parts => { forecast_id => {}, job_id => { required => 1 } }, | ||||||||||||||||||||
| 3012 | paths => [ | ||||||||||||||||||||
| 3013 | [ { forecast_id => 4, job_id => 2 }, "_ml", | ||||||||||||||||||||
| 3014 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 3015 | "_forecast", "{forecast_id}", | ||||||||||||||||||||
| 3016 | ], | ||||||||||||||||||||
| 3017 | [ { job_id => 2 }, "_ml", | ||||||||||||||||||||
| 3018 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 3019 | "_forecast", | ||||||||||||||||||||
| 3020 | ], | ||||||||||||||||||||
| 3021 | ], | ||||||||||||||||||||
| 3022 | qs => { | ||||||||||||||||||||
| 3023 | allow_no_forecasts => "boolean", | ||||||||||||||||||||
| 3024 | error_trace => "boolean", | ||||||||||||||||||||
| 3025 | filter_path => "list", | ||||||||||||||||||||
| 3026 | human => "boolean", | ||||||||||||||||||||
| 3027 | timeout => "time", | ||||||||||||||||||||
| 3028 | }, | ||||||||||||||||||||
| 3029 | }, | ||||||||||||||||||||
| 3030 | |||||||||||||||||||||
| 3031 | 'ml.delete_job' => { | ||||||||||||||||||||
| 3032 | doc => "ml-delete-job", | ||||||||||||||||||||
| 3033 | method => "DELETE", | ||||||||||||||||||||
| 3034 | parts => { job_id => { required => 1 } }, | ||||||||||||||||||||
| 3035 | paths => | ||||||||||||||||||||
| 3036 | [ [ { job_id => 2 }, "_ml", "anomaly_detectors", "{job_id}" ] ], | ||||||||||||||||||||
| 3037 | qs => { | ||||||||||||||||||||
| 3038 | error_trace => "boolean", | ||||||||||||||||||||
| 3039 | filter_path => "list", | ||||||||||||||||||||
| 3040 | force => "boolean", | ||||||||||||||||||||
| 3041 | human => "boolean", | ||||||||||||||||||||
| 3042 | wait_for_completion => "boolean", | ||||||||||||||||||||
| 3043 | }, | ||||||||||||||||||||
| 3044 | }, | ||||||||||||||||||||
| 3045 | |||||||||||||||||||||
| 3046 | 'ml.delete_model_snapshot' => { | ||||||||||||||||||||
| 3047 | doc => "ml-delete-snapshot", | ||||||||||||||||||||
| 3048 | method => "DELETE", | ||||||||||||||||||||
| 3049 | parts => | ||||||||||||||||||||
| 3050 | { job_id => { required => 1 }, snapshot_id => { required => 1 } }, | ||||||||||||||||||||
| 3051 | paths => [ | ||||||||||||||||||||
| 3052 | [ { job_id => 2, snapshot_id => 4 }, "_ml", | ||||||||||||||||||||
| 3053 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 3054 | "model_snapshots", "{snapshot_id}", | ||||||||||||||||||||
| 3055 | ], | ||||||||||||||||||||
| 3056 | ], | ||||||||||||||||||||
| 3057 | qs => { | ||||||||||||||||||||
| 3058 | error_trace => "boolean", | ||||||||||||||||||||
| 3059 | filter_path => "list", | ||||||||||||||||||||
| 3060 | human => "boolean" | ||||||||||||||||||||
| 3061 | }, | ||||||||||||||||||||
| 3062 | }, | ||||||||||||||||||||
| 3063 | |||||||||||||||||||||
| 3064 | 'ml.evaluate_data_frame' => { | ||||||||||||||||||||
| 3065 | body => { required => 1 }, | ||||||||||||||||||||
| 3066 | doc => "evaluate-dfanalytics", | ||||||||||||||||||||
| 3067 | method => "POST", | ||||||||||||||||||||
| 3068 | parts => {}, | ||||||||||||||||||||
| 3069 | paths => [ [ {}, "_ml", "data_frame", "_evaluate" ] ], | ||||||||||||||||||||
| 3070 | qs => { | ||||||||||||||||||||
| 3071 | error_trace => "boolean", | ||||||||||||||||||||
| 3072 | filter_path => "list", | ||||||||||||||||||||
| 3073 | human => "boolean" | ||||||||||||||||||||
| 3074 | }, | ||||||||||||||||||||
| 3075 | }, | ||||||||||||||||||||
| 3076 | |||||||||||||||||||||
| 3077 | 'ml.find_file_structure' => { | ||||||||||||||||||||
| 3078 | body => { required => 1 }, | ||||||||||||||||||||
| 3079 | doc => "ml-find-file-structure", | ||||||||||||||||||||
| 3080 | method => "POST", | ||||||||||||||||||||
| 3081 | parts => {}, | ||||||||||||||||||||
| 3082 | paths => [ [ {}, "_ml", "find_file_structure" ] ], | ||||||||||||||||||||
| 3083 | qs => { | ||||||||||||||||||||
| 3084 | charset => "string", | ||||||||||||||||||||
| 3085 | column_names => "list", | ||||||||||||||||||||
| 3086 | delimiter => "string", | ||||||||||||||||||||
| 3087 | error_trace => "boolean", | ||||||||||||||||||||
| 3088 | explain => "boolean", | ||||||||||||||||||||
| 3089 | filter_path => "list", | ||||||||||||||||||||
| 3090 | format => "enum", | ||||||||||||||||||||
| 3091 | grok_pattern => "string", | ||||||||||||||||||||
| 3092 | has_header_row => "boolean", | ||||||||||||||||||||
| 3093 | human => "boolean", | ||||||||||||||||||||
| 3094 | line_merge_size_limit => "int", | ||||||||||||||||||||
| 3095 | lines_to_sample => "int", | ||||||||||||||||||||
| 3096 | quote => "string", | ||||||||||||||||||||
| 3097 | should_trim_fields => "boolean", | ||||||||||||||||||||
| 3098 | timeout => "time", | ||||||||||||||||||||
| 3099 | timestamp_field => "string", | ||||||||||||||||||||
| 3100 | timestamp_format => "string", | ||||||||||||||||||||
| 3101 | }, | ||||||||||||||||||||
| 3102 | serialize => "bulk", | ||||||||||||||||||||
| 3103 | }, | ||||||||||||||||||||
| 3104 | |||||||||||||||||||||
| 3105 | 'ml.flush_job' => { | ||||||||||||||||||||
| 3106 | body => {}, | ||||||||||||||||||||
| 3107 | doc => "ml-flush-job", | ||||||||||||||||||||
| 3108 | method => "POST", | ||||||||||||||||||||
| 3109 | parts => { job_id => { required => 1 } }, | ||||||||||||||||||||
| 3110 | paths => [ | ||||||||||||||||||||
| 3111 | [ { job_id => 2 }, "_ml", | ||||||||||||||||||||
| 3112 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 3113 | "_flush", | ||||||||||||||||||||
| 3114 | ], | ||||||||||||||||||||
| 3115 | ], | ||||||||||||||||||||
| 3116 | qs => { | ||||||||||||||||||||
| 3117 | advance_time => "string", | ||||||||||||||||||||
| 3118 | calc_interim => "boolean", | ||||||||||||||||||||
| 3119 | end => "string", | ||||||||||||||||||||
| 3120 | error_trace => "boolean", | ||||||||||||||||||||
| 3121 | filter_path => "list", | ||||||||||||||||||||
| 3122 | human => "boolean", | ||||||||||||||||||||
| 3123 | skip_time => "string", | ||||||||||||||||||||
| 3124 | start => "string", | ||||||||||||||||||||
| 3125 | }, | ||||||||||||||||||||
| 3126 | }, | ||||||||||||||||||||
| 3127 | |||||||||||||||||||||
| 3128 | 'ml.forecast' => { | ||||||||||||||||||||
| 3129 | method => "POST", | ||||||||||||||||||||
| 3130 | parts => { job_id => { required => 1 } }, | ||||||||||||||||||||
| 3131 | paths => [ | ||||||||||||||||||||
| 3132 | [ { job_id => 2 }, "_ml", | ||||||||||||||||||||
| 3133 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 3134 | "_forecast", | ||||||||||||||||||||
| 3135 | ], | ||||||||||||||||||||
| 3136 | ], | ||||||||||||||||||||
| 3137 | qs => { | ||||||||||||||||||||
| 3138 | duration => "time", | ||||||||||||||||||||
| 3139 | error_trace => "boolean", | ||||||||||||||||||||
| 3140 | expires_in => "time", | ||||||||||||||||||||
| 3141 | filter_path => "list", | ||||||||||||||||||||
| 3142 | human => "boolean", | ||||||||||||||||||||
| 3143 | }, | ||||||||||||||||||||
| 3144 | }, | ||||||||||||||||||||
| 3145 | |||||||||||||||||||||
| 3146 | 'ml.get_buckets' => { | ||||||||||||||||||||
| 3147 | body => {}, | ||||||||||||||||||||
| 3148 | doc => "ml-get-bucket", | ||||||||||||||||||||
| 3149 | parts => { job_id => { required => 1 }, timestamp => {} }, | ||||||||||||||||||||
| 3150 | paths => [ | ||||||||||||||||||||
| 3151 | [ { job_id => 2, timestamp => 5 }, "_ml", | ||||||||||||||||||||
| 3152 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 3153 | "results", "buckets", | ||||||||||||||||||||
| 3154 | "{timestamp}", | ||||||||||||||||||||
| 3155 | ], | ||||||||||||||||||||
| 3156 | [ { job_id => 2 }, "_ml", | ||||||||||||||||||||
| 3157 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 3158 | "results", "buckets", | ||||||||||||||||||||
| 3159 | ], | ||||||||||||||||||||
| 3160 | ], | ||||||||||||||||||||
| 3161 | qs => { | ||||||||||||||||||||
| 3162 | anomaly_score => "double", | ||||||||||||||||||||
| 3163 | desc => "boolean", | ||||||||||||||||||||
| 3164 | end => "string", | ||||||||||||||||||||
| 3165 | error_trace => "boolean", | ||||||||||||||||||||
| 3166 | exclude_interim => "boolean", | ||||||||||||||||||||
| 3167 | expand => "boolean", | ||||||||||||||||||||
| 3168 | filter_path => "list", | ||||||||||||||||||||
| 3169 | from => "int", | ||||||||||||||||||||
| 3170 | human => "boolean", | ||||||||||||||||||||
| 3171 | size => "int", | ||||||||||||||||||||
| 3172 | sort => "string", | ||||||||||||||||||||
| 3173 | start => "string", | ||||||||||||||||||||
| 3174 | }, | ||||||||||||||||||||
| 3175 | }, | ||||||||||||||||||||
| 3176 | |||||||||||||||||||||
| 3177 | 'ml.get_calendar_events' => { | ||||||||||||||||||||
| 3178 | parts => { calendar_id => { required => 1 } }, | ||||||||||||||||||||
| 3179 | paths => [ | ||||||||||||||||||||
| 3180 | [ { calendar_id => 2 }, "_ml", | ||||||||||||||||||||
| 3181 | "calendars", "{calendar_id}", | ||||||||||||||||||||
| 3182 | "events", | ||||||||||||||||||||
| 3183 | ], | ||||||||||||||||||||
| 3184 | ], | ||||||||||||||||||||
| 3185 | qs => { | ||||||||||||||||||||
| 3186 | end => "time", | ||||||||||||||||||||
| 3187 | error_trace => "boolean", | ||||||||||||||||||||
| 3188 | filter_path => "list", | ||||||||||||||||||||
| 3189 | from => "int", | ||||||||||||||||||||
| 3190 | human => "boolean", | ||||||||||||||||||||
| 3191 | job_id => "string", | ||||||||||||||||||||
| 3192 | size => "int", | ||||||||||||||||||||
| 3193 | start => "string", | ||||||||||||||||||||
| 3194 | }, | ||||||||||||||||||||
| 3195 | }, | ||||||||||||||||||||
| 3196 | |||||||||||||||||||||
| 3197 | 'ml.get_calendars' => { | ||||||||||||||||||||
| 3198 | body => {}, | ||||||||||||||||||||
| 3199 | parts => { calendar_id => {} }, | ||||||||||||||||||||
| 3200 | paths => [ | ||||||||||||||||||||
| 3201 | [ { calendar_id => 2 }, "_ml", "calendars", "{calendar_id}" ], | ||||||||||||||||||||
| 3202 | [ {}, "_ml", "calendars" ], | ||||||||||||||||||||
| 3203 | ], | ||||||||||||||||||||
| 3204 | qs => { | ||||||||||||||||||||
| 3205 | error_trace => "boolean", | ||||||||||||||||||||
| 3206 | filter_path => "list", | ||||||||||||||||||||
| 3207 | from => "int", | ||||||||||||||||||||
| 3208 | human => "boolean", | ||||||||||||||||||||
| 3209 | size => "int", | ||||||||||||||||||||
| 3210 | }, | ||||||||||||||||||||
| 3211 | }, | ||||||||||||||||||||
| 3212 | |||||||||||||||||||||
| 3213 | 'ml.get_categories' => { | ||||||||||||||||||||
| 3214 | body => {}, | ||||||||||||||||||||
| 3215 | doc => "ml-get-category", | ||||||||||||||||||||
| 3216 | parts => { category_id => {}, job_id => { required => 1 } }, | ||||||||||||||||||||
| 3217 | paths => [ | ||||||||||||||||||||
| 3218 | [ { category_id => 5, job_id => 2 }, "_ml", | ||||||||||||||||||||
| 3219 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 3220 | "results", "categories", | ||||||||||||||||||||
| 3221 | "{category_id}", | ||||||||||||||||||||
| 3222 | ], | ||||||||||||||||||||
| 3223 | [ { job_id => 2 }, "_ml", | ||||||||||||||||||||
| 3224 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 3225 | "results", "categories", | ||||||||||||||||||||
| 3226 | ], | ||||||||||||||||||||
| 3227 | ], | ||||||||||||||||||||
| 3228 | qs => { | ||||||||||||||||||||
| 3229 | error_trace => "boolean", | ||||||||||||||||||||
| 3230 | filter_path => "list", | ||||||||||||||||||||
| 3231 | from => "int", | ||||||||||||||||||||
| 3232 | human => "boolean", | ||||||||||||||||||||
| 3233 | size => "int", | ||||||||||||||||||||
| 3234 | }, | ||||||||||||||||||||
| 3235 | }, | ||||||||||||||||||||
| 3236 | |||||||||||||||||||||
| 3237 | 'ml.get_data_frame_analytics' => { | ||||||||||||||||||||
| 3238 | doc => "get-dfanalytics", | ||||||||||||||||||||
| 3239 | parts => { id => {} }, | ||||||||||||||||||||
| 3240 | paths => [ | ||||||||||||||||||||
| 3241 | [ { id => 3 }, "_ml", "data_frame", "analytics", "{id}" ], | ||||||||||||||||||||
| 3242 | [ {}, "_ml", "data_frame", "analytics" ], | ||||||||||||||||||||
| 3243 | ], | ||||||||||||||||||||
| 3244 | qs => { | ||||||||||||||||||||
| 3245 | allow_no_match => "boolean", | ||||||||||||||||||||
| 3246 | error_trace => "boolean", | ||||||||||||||||||||
| 3247 | filter_path => "list", | ||||||||||||||||||||
| 3248 | from => "int", | ||||||||||||||||||||
| 3249 | human => "boolean", | ||||||||||||||||||||
| 3250 | size => "int", | ||||||||||||||||||||
| 3251 | }, | ||||||||||||||||||||
| 3252 | }, | ||||||||||||||||||||
| 3253 | |||||||||||||||||||||
| 3254 | 'ml.get_data_frame_analytics_stats' => { | ||||||||||||||||||||
| 3255 | doc => "get-dfanalytics-stats", | ||||||||||||||||||||
| 3256 | parts => { id => {} }, | ||||||||||||||||||||
| 3257 | paths => [ | ||||||||||||||||||||
| 3258 | [ { id => 3 }, "_ml", "data_frame", "analytics", | ||||||||||||||||||||
| 3259 | "{id}", "_stats" | ||||||||||||||||||||
| 3260 | ], | ||||||||||||||||||||
| 3261 | [ {}, "_ml", "data_frame", "analytics", "_stats" ], | ||||||||||||||||||||
| 3262 | ], | ||||||||||||||||||||
| 3263 | qs => { | ||||||||||||||||||||
| 3264 | allow_no_match => "boolean", | ||||||||||||||||||||
| 3265 | error_trace => "boolean", | ||||||||||||||||||||
| 3266 | filter_path => "list", | ||||||||||||||||||||
| 3267 | from => "int", | ||||||||||||||||||||
| 3268 | human => "boolean", | ||||||||||||||||||||
| 3269 | size => "int", | ||||||||||||||||||||
| 3270 | }, | ||||||||||||||||||||
| 3271 | }, | ||||||||||||||||||||
| 3272 | |||||||||||||||||||||
| 3273 | 'ml.get_datafeed_stats' => { | ||||||||||||||||||||
| 3274 | doc => "ml-get-datafeed-stats", | ||||||||||||||||||||
| 3275 | parts => { datafeed_id => {} }, | ||||||||||||||||||||
| 3276 | paths => [ | ||||||||||||||||||||
| 3277 | [ { datafeed_id => 2 }, "_ml", | ||||||||||||||||||||
| 3278 | "datafeeds", "{datafeed_id}", | ||||||||||||||||||||
| 3279 | "_stats", | ||||||||||||||||||||
| 3280 | ], | ||||||||||||||||||||
| 3281 | [ {}, "_ml", "datafeeds", "_stats" ], | ||||||||||||||||||||
| 3282 | ], | ||||||||||||||||||||
| 3283 | qs => { | ||||||||||||||||||||
| 3284 | allow_no_datafeeds => "boolean", | ||||||||||||||||||||
| 3285 | error_trace => "boolean", | ||||||||||||||||||||
| 3286 | filter_path => "list", | ||||||||||||||||||||
| 3287 | human => "boolean", | ||||||||||||||||||||
| 3288 | }, | ||||||||||||||||||||
| 3289 | }, | ||||||||||||||||||||
| 3290 | |||||||||||||||||||||
| 3291 | 'ml.get_datafeeds' => { | ||||||||||||||||||||
| 3292 | doc => "ml-get-datafeed", | ||||||||||||||||||||
| 3293 | parts => { datafeed_id => {} }, | ||||||||||||||||||||
| 3294 | paths => [ | ||||||||||||||||||||
| 3295 | [ { datafeed_id => 2 }, "_ml", "datafeeds", "{datafeed_id}" ], | ||||||||||||||||||||
| 3296 | [ {}, "_ml", "datafeeds" ], | ||||||||||||||||||||
| 3297 | ], | ||||||||||||||||||||
| 3298 | qs => { | ||||||||||||||||||||
| 3299 | allow_no_datafeeds => "boolean", | ||||||||||||||||||||
| 3300 | error_trace => "boolean", | ||||||||||||||||||||
| 3301 | filter_path => "list", | ||||||||||||||||||||
| 3302 | human => "boolean", | ||||||||||||||||||||
| 3303 | }, | ||||||||||||||||||||
| 3304 | }, | ||||||||||||||||||||
| 3305 | |||||||||||||||||||||
| 3306 | 'ml.get_filters' => { | ||||||||||||||||||||
| 3307 | parts => { filter_id => {} }, | ||||||||||||||||||||
| 3308 | paths => [ | ||||||||||||||||||||
| 3309 | [ { filter_id => 2 }, "_ml", "filters", "{filter_id}" ], | ||||||||||||||||||||
| 3310 | [ {}, "_ml", "filters" ], | ||||||||||||||||||||
| 3311 | ], | ||||||||||||||||||||
| 3312 | qs => { | ||||||||||||||||||||
| 3313 | error_trace => "boolean", | ||||||||||||||||||||
| 3314 | filter_path => "list", | ||||||||||||||||||||
| 3315 | from => "int", | ||||||||||||||||||||
| 3316 | human => "boolean", | ||||||||||||||||||||
| 3317 | size => "int", | ||||||||||||||||||||
| 3318 | }, | ||||||||||||||||||||
| 3319 | }, | ||||||||||||||||||||
| 3320 | |||||||||||||||||||||
| 3321 | 'ml.get_influencers' => { | ||||||||||||||||||||
| 3322 | body => {}, | ||||||||||||||||||||
| 3323 | doc => "ml-get-influencer", | ||||||||||||||||||||
| 3324 | parts => { job_id => { required => 1 } }, | ||||||||||||||||||||
| 3325 | paths => [ | ||||||||||||||||||||
| 3326 | [ { job_id => 2 }, "_ml", | ||||||||||||||||||||
| 3327 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 3328 | "results", "influencers", | ||||||||||||||||||||
| 3329 | ], | ||||||||||||||||||||
| 3330 | ], | ||||||||||||||||||||
| 3331 | qs => { | ||||||||||||||||||||
| 3332 | desc => "boolean", | ||||||||||||||||||||
| 3333 | end => "string", | ||||||||||||||||||||
| 3334 | error_trace => "boolean", | ||||||||||||||||||||
| 3335 | exclude_interim => "boolean", | ||||||||||||||||||||
| 3336 | filter_path => "list", | ||||||||||||||||||||
| 3337 | from => "int", | ||||||||||||||||||||
| 3338 | human => "boolean", | ||||||||||||||||||||
| 3339 | influencer_score => "double", | ||||||||||||||||||||
| 3340 | size => "int", | ||||||||||||||||||||
| 3341 | sort => "string", | ||||||||||||||||||||
| 3342 | start => "string", | ||||||||||||||||||||
| 3343 | }, | ||||||||||||||||||||
| 3344 | }, | ||||||||||||||||||||
| 3345 | |||||||||||||||||||||
| 3346 | 'ml.get_job_stats' => { | ||||||||||||||||||||
| 3347 | doc => "ml-get-job-stats", | ||||||||||||||||||||
| 3348 | parts => { job_id => {} }, | ||||||||||||||||||||
| 3349 | paths => [ | ||||||||||||||||||||
| 3350 | [ { job_id => 2 }, "_ml", | ||||||||||||||||||||
| 3351 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 3352 | "_stats", | ||||||||||||||||||||
| 3353 | ], | ||||||||||||||||||||
| 3354 | [ {}, "_ml", "anomaly_detectors", "_stats" ], | ||||||||||||||||||||
| 3355 | ], | ||||||||||||||||||||
| 3356 | qs => { | ||||||||||||||||||||
| 3357 | allow_no_jobs => "boolean", | ||||||||||||||||||||
| 3358 | error_trace => "boolean", | ||||||||||||||||||||
| 3359 | filter_path => "list", | ||||||||||||||||||||
| 3360 | human => "boolean", | ||||||||||||||||||||
| 3361 | }, | ||||||||||||||||||||
| 3362 | }, | ||||||||||||||||||||
| 3363 | |||||||||||||||||||||
| 3364 | 'ml.get_jobs' => { | ||||||||||||||||||||
| 3365 | doc => "ml-get-job", | ||||||||||||||||||||
| 3366 | parts => { job_id => {} }, | ||||||||||||||||||||
| 3367 | paths => [ | ||||||||||||||||||||
| 3368 | [ { job_id => 2 }, "_ml", "anomaly_detectors", "{job_id}" ], | ||||||||||||||||||||
| 3369 | [ {}, "_ml", "anomaly_detectors" ], | ||||||||||||||||||||
| 3370 | ], | ||||||||||||||||||||
| 3371 | qs => { | ||||||||||||||||||||
| 3372 | allow_no_jobs => "boolean", | ||||||||||||||||||||
| 3373 | error_trace => "boolean", | ||||||||||||||||||||
| 3374 | filter_path => "list", | ||||||||||||||||||||
| 3375 | human => "boolean", | ||||||||||||||||||||
| 3376 | }, | ||||||||||||||||||||
| 3377 | }, | ||||||||||||||||||||
| 3378 | |||||||||||||||||||||
| 3379 | 'ml.get_model_snapshots' => { | ||||||||||||||||||||
| 3380 | body => {}, | ||||||||||||||||||||
| 3381 | doc => "ml-get-snapshot", | ||||||||||||||||||||
| 3382 | parts => { job_id => { required => 1 }, snapshot_id => {} }, | ||||||||||||||||||||
| 3383 | paths => [ | ||||||||||||||||||||
| 3384 | [ { job_id => 2, snapshot_id => 4 }, "_ml", | ||||||||||||||||||||
| 3385 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 3386 | "model_snapshots", "{snapshot_id}", | ||||||||||||||||||||
| 3387 | ], | ||||||||||||||||||||
| 3388 | [ { job_id => 2 }, "_ml", | ||||||||||||||||||||
| 3389 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 3390 | "model_snapshots", | ||||||||||||||||||||
| 3391 | ], | ||||||||||||||||||||
| 3392 | ], | ||||||||||||||||||||
| 3393 | qs => { | ||||||||||||||||||||
| 3394 | desc => "boolean", | ||||||||||||||||||||
| 3395 | end => "time", | ||||||||||||||||||||
| 3396 | error_trace => "boolean", | ||||||||||||||||||||
| 3397 | filter_path => "list", | ||||||||||||||||||||
| 3398 | from => "int", | ||||||||||||||||||||
| 3399 | human => "boolean", | ||||||||||||||||||||
| 3400 | size => "int", | ||||||||||||||||||||
| 3401 | sort => "string", | ||||||||||||||||||||
| 3402 | start => "time", | ||||||||||||||||||||
| 3403 | }, | ||||||||||||||||||||
| 3404 | }, | ||||||||||||||||||||
| 3405 | |||||||||||||||||||||
| 3406 | 'ml.get_overall_buckets' => { | ||||||||||||||||||||
| 3407 | body => {}, | ||||||||||||||||||||
| 3408 | doc => "ml-get-overall-buckets", | ||||||||||||||||||||
| 3409 | parts => { job_id => { required => 1 } }, | ||||||||||||||||||||
| 3410 | paths => [ | ||||||||||||||||||||
| 3411 | [ { job_id => 2 }, "_ml", | ||||||||||||||||||||
| 3412 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 3413 | "results", "overall_buckets", | ||||||||||||||||||||
| 3414 | ], | ||||||||||||||||||||
| 3415 | ], | ||||||||||||||||||||
| 3416 | qs => { | ||||||||||||||||||||
| 3417 | allow_no_jobs => "boolean", | ||||||||||||||||||||
| 3418 | bucket_span => "string", | ||||||||||||||||||||
| 3419 | end => "string", | ||||||||||||||||||||
| 3420 | error_trace => "boolean", | ||||||||||||||||||||
| 3421 | exclude_interim => "boolean", | ||||||||||||||||||||
| 3422 | filter_path => "list", | ||||||||||||||||||||
| 3423 | human => "boolean", | ||||||||||||||||||||
| 3424 | overall_score => "double", | ||||||||||||||||||||
| 3425 | start => "string", | ||||||||||||||||||||
| 3426 | top_n => "int", | ||||||||||||||||||||
| 3427 | }, | ||||||||||||||||||||
| 3428 | }, | ||||||||||||||||||||
| 3429 | |||||||||||||||||||||
| 3430 | 'ml.get_records' => { | ||||||||||||||||||||
| 3431 | body => {}, | ||||||||||||||||||||
| 3432 | doc => "ml-get-record", | ||||||||||||||||||||
| 3433 | parts => { job_id => { required => 1 } }, | ||||||||||||||||||||
| 3434 | paths => [ | ||||||||||||||||||||
| 3435 | [ { job_id => 2 }, "_ml", | ||||||||||||||||||||
| 3436 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 3437 | "results", "records", | ||||||||||||||||||||
| 3438 | ], | ||||||||||||||||||||
| 3439 | ], | ||||||||||||||||||||
| 3440 | qs => { | ||||||||||||||||||||
| 3441 | desc => "boolean", | ||||||||||||||||||||
| 3442 | end => "string", | ||||||||||||||||||||
| 3443 | error_trace => "boolean", | ||||||||||||||||||||
| 3444 | exclude_interim => "boolean", | ||||||||||||||||||||
| 3445 | filter_path => "list", | ||||||||||||||||||||
| 3446 | from => "int", | ||||||||||||||||||||
| 3447 | human => "boolean", | ||||||||||||||||||||
| 3448 | record_score => "double", | ||||||||||||||||||||
| 3449 | size => "int", | ||||||||||||||||||||
| 3450 | sort => "string", | ||||||||||||||||||||
| 3451 | start => "string", | ||||||||||||||||||||
| 3452 | }, | ||||||||||||||||||||
| 3453 | }, | ||||||||||||||||||||
| 3454 | |||||||||||||||||||||
| 3455 | 'ml.info' => { | ||||||||||||||||||||
| 3456 | parts => {}, | ||||||||||||||||||||
| 3457 | paths => [ [ {}, "_ml", "info" ] ], | ||||||||||||||||||||
| 3458 | qs => { | ||||||||||||||||||||
| 3459 | error_trace => "boolean", | ||||||||||||||||||||
| 3460 | filter_path => "list", | ||||||||||||||||||||
| 3461 | human => "boolean" | ||||||||||||||||||||
| 3462 | }, | ||||||||||||||||||||
| 3463 | }, | ||||||||||||||||||||
| 3464 | |||||||||||||||||||||
| 3465 | 'ml.open_job' => { | ||||||||||||||||||||
| 3466 | doc => "ml-open-job", | ||||||||||||||||||||
| 3467 | method => "POST", | ||||||||||||||||||||
| 3468 | parts => { | ||||||||||||||||||||
| 3469 | ignore_downtime => {}, | ||||||||||||||||||||
| 3470 | job_id => { required => 1 }, | ||||||||||||||||||||
| 3471 | timeout => {} | ||||||||||||||||||||
| 3472 | }, | ||||||||||||||||||||
| 3473 | paths => [ | ||||||||||||||||||||
| 3474 | [ { job_id => 2 }, "_ml", | ||||||||||||||||||||
| 3475 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 3476 | "_open" | ||||||||||||||||||||
| 3477 | ], | ||||||||||||||||||||
| 3478 | ], | ||||||||||||||||||||
| 3479 | qs => { | ||||||||||||||||||||
| 3480 | error_trace => "boolean", | ||||||||||||||||||||
| 3481 | filter_path => "list", | ||||||||||||||||||||
| 3482 | human => "boolean" | ||||||||||||||||||||
| 3483 | }, | ||||||||||||||||||||
| 3484 | }, | ||||||||||||||||||||
| 3485 | |||||||||||||||||||||
| 3486 | 'ml.post_calendar_events' => { | ||||||||||||||||||||
| 3487 | body => { required => 1 }, | ||||||||||||||||||||
| 3488 | method => "POST", | ||||||||||||||||||||
| 3489 | parts => { calendar_id => { required => 1 } }, | ||||||||||||||||||||
| 3490 | paths => [ | ||||||||||||||||||||
| 3491 | [ { calendar_id => 2 }, "_ml", | ||||||||||||||||||||
| 3492 | "calendars", "{calendar_id}", | ||||||||||||||||||||
| 3493 | "events", | ||||||||||||||||||||
| 3494 | ], | ||||||||||||||||||||
| 3495 | ], | ||||||||||||||||||||
| 3496 | qs => { | ||||||||||||||||||||
| 3497 | error_trace => "boolean", | ||||||||||||||||||||
| 3498 | filter_path => "list", | ||||||||||||||||||||
| 3499 | human => "boolean" | ||||||||||||||||||||
| 3500 | }, | ||||||||||||||||||||
| 3501 | }, | ||||||||||||||||||||
| 3502 | |||||||||||||||||||||
| 3503 | 'ml.post_data' => { | ||||||||||||||||||||
| 3504 | body => { required => 1 }, | ||||||||||||||||||||
| 3505 | doc => "ml-post-data", | ||||||||||||||||||||
| 3506 | method => "POST", | ||||||||||||||||||||
| 3507 | parts => { job_id => { required => 1 } }, | ||||||||||||||||||||
| 3508 | paths => [ | ||||||||||||||||||||
| 3509 | [ { job_id => 2 }, "_ml", | ||||||||||||||||||||
| 3510 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 3511 | "_data" | ||||||||||||||||||||
| 3512 | ], | ||||||||||||||||||||
| 3513 | ], | ||||||||||||||||||||
| 3514 | qs => { | ||||||||||||||||||||
| 3515 | error_trace => "boolean", | ||||||||||||||||||||
| 3516 | filter_path => "list", | ||||||||||||||||||||
| 3517 | human => "boolean", | ||||||||||||||||||||
| 3518 | reset_end => "string", | ||||||||||||||||||||
| 3519 | reset_start => "string", | ||||||||||||||||||||
| 3520 | }, | ||||||||||||||||||||
| 3521 | serialize => "bulk", | ||||||||||||||||||||
| 3522 | }, | ||||||||||||||||||||
| 3523 | |||||||||||||||||||||
| 3524 | 'ml.preview_datafeed' => { | ||||||||||||||||||||
| 3525 | doc => "ml-preview-datafeed", | ||||||||||||||||||||
| 3526 | parts => { datafeed_id => { required => 1 } }, | ||||||||||||||||||||
| 3527 | paths => [ | ||||||||||||||||||||
| 3528 | [ { datafeed_id => 2 }, "_ml", | ||||||||||||||||||||
| 3529 | "datafeeds", "{datafeed_id}", | ||||||||||||||||||||
| 3530 | "_preview", | ||||||||||||||||||||
| 3531 | ], | ||||||||||||||||||||
| 3532 | ], | ||||||||||||||||||||
| 3533 | qs => { | ||||||||||||||||||||
| 3534 | error_trace => "boolean", | ||||||||||||||||||||
| 3535 | filter_path => "list", | ||||||||||||||||||||
| 3536 | human => "boolean" | ||||||||||||||||||||
| 3537 | }, | ||||||||||||||||||||
| 3538 | }, | ||||||||||||||||||||
| 3539 | |||||||||||||||||||||
| 3540 | 'ml.put_calendar' => { | ||||||||||||||||||||
| 3541 | body => {}, | ||||||||||||||||||||
| 3542 | method => "PUT", | ||||||||||||||||||||
| 3543 | parts => { calendar_id => { required => 1 } }, | ||||||||||||||||||||
| 3544 | paths => | ||||||||||||||||||||
| 3545 | [ [ { calendar_id => 2 }, "_ml", "calendars", "{calendar_id}" ] ], | ||||||||||||||||||||
| 3546 | qs => { | ||||||||||||||||||||
| 3547 | error_trace => "boolean", | ||||||||||||||||||||
| 3548 | filter_path => "list", | ||||||||||||||||||||
| 3549 | human => "boolean" | ||||||||||||||||||||
| 3550 | }, | ||||||||||||||||||||
| 3551 | }, | ||||||||||||||||||||
| 3552 | |||||||||||||||||||||
| 3553 | 'ml.put_calendar_job' => { | ||||||||||||||||||||
| 3554 | method => "PUT", | ||||||||||||||||||||
| 3555 | parts => | ||||||||||||||||||||
| 3556 | { calendar_id => { required => 1 }, job_id => { required => 1 } }, | ||||||||||||||||||||
| 3557 | paths => [ | ||||||||||||||||||||
| 3558 | [ { calendar_id => 2, job_id => 4 }, | ||||||||||||||||||||
| 3559 | "_ml", "calendars", "{calendar_id}", "jobs", "{job_id}", | ||||||||||||||||||||
| 3560 | ], | ||||||||||||||||||||
| 3561 | ], | ||||||||||||||||||||
| 3562 | qs => { | ||||||||||||||||||||
| 3563 | error_trace => "boolean", | ||||||||||||||||||||
| 3564 | filter_path => "list", | ||||||||||||||||||||
| 3565 | human => "boolean" | ||||||||||||||||||||
| 3566 | }, | ||||||||||||||||||||
| 3567 | }, | ||||||||||||||||||||
| 3568 | |||||||||||||||||||||
| 3569 | 'ml.put_data_frame_analytics' => { | ||||||||||||||||||||
| 3570 | body => { required => 1 }, | ||||||||||||||||||||
| 3571 | doc => "put-dfanalytics", | ||||||||||||||||||||
| 3572 | method => "PUT", | ||||||||||||||||||||
| 3573 | parts => { id => { required => 1 } }, | ||||||||||||||||||||
| 3574 | paths => | ||||||||||||||||||||
| 3575 | [ [ { id => 3 }, "_ml", "data_frame", "analytics", "{id}" ] ], | ||||||||||||||||||||
| 3576 | qs => { | ||||||||||||||||||||
| 3577 | error_trace => "boolean", | ||||||||||||||||||||
| 3578 | filter_path => "list", | ||||||||||||||||||||
| 3579 | human => "boolean" | ||||||||||||||||||||
| 3580 | }, | ||||||||||||||||||||
| 3581 | }, | ||||||||||||||||||||
| 3582 | |||||||||||||||||||||
| 3583 | 'ml.put_datafeed' => { | ||||||||||||||||||||
| 3584 | body => { required => 1 }, | ||||||||||||||||||||
| 3585 | doc => "ml-put-datafeed", | ||||||||||||||||||||
| 3586 | method => "PUT", | ||||||||||||||||||||
| 3587 | parts => { datafeed_id => { required => 1 } }, | ||||||||||||||||||||
| 3588 | paths => | ||||||||||||||||||||
| 3589 | [ [ { datafeed_id => 2 }, "_ml", "datafeeds", "{datafeed_id}" ] ], | ||||||||||||||||||||
| 3590 | qs => { | ||||||||||||||||||||
| 3591 | error_trace => "boolean", | ||||||||||||||||||||
| 3592 | filter_path => "list", | ||||||||||||||||||||
| 3593 | human => "boolean" | ||||||||||||||||||||
| 3594 | }, | ||||||||||||||||||||
| 3595 | }, | ||||||||||||||||||||
| 3596 | |||||||||||||||||||||
| 3597 | 'ml.put_filter' => { | ||||||||||||||||||||
| 3598 | body => { required => 1 }, | ||||||||||||||||||||
| 3599 | method => "PUT", | ||||||||||||||||||||
| 3600 | parts => { filter_id => { required => 1 } }, | ||||||||||||||||||||
| 3601 | paths => [ [ { filter_id => 2 }, "_ml", "filters", "{filter_id}" ] ], | ||||||||||||||||||||
| 3602 | qs => { | ||||||||||||||||||||
| 3603 | error_trace => "boolean", | ||||||||||||||||||||
| 3604 | filter_path => "list", | ||||||||||||||||||||
| 3605 | human => "boolean" | ||||||||||||||||||||
| 3606 | }, | ||||||||||||||||||||
| 3607 | }, | ||||||||||||||||||||
| 3608 | |||||||||||||||||||||
| 3609 | 'ml.put_job' => { | ||||||||||||||||||||
| 3610 | body => { required => 1 }, | ||||||||||||||||||||
| 3611 | doc => "ml-put-job", | ||||||||||||||||||||
| 3612 | method => "PUT", | ||||||||||||||||||||
| 3613 | parts => { job_id => { required => 1 } }, | ||||||||||||||||||||
| 3614 | paths => | ||||||||||||||||||||
| 3615 | [ [ { job_id => 2 }, "_ml", "anomaly_detectors", "{job_id}" ] ], | ||||||||||||||||||||
| 3616 | qs => { | ||||||||||||||||||||
| 3617 | error_trace => "boolean", | ||||||||||||||||||||
| 3618 | filter_path => "list", | ||||||||||||||||||||
| 3619 | human => "boolean" | ||||||||||||||||||||
| 3620 | }, | ||||||||||||||||||||
| 3621 | }, | ||||||||||||||||||||
| 3622 | |||||||||||||||||||||
| 3623 | 'ml.revert_model_snapshot' => { | ||||||||||||||||||||
| 3624 | body => {}, | ||||||||||||||||||||
| 3625 | doc => "ml-revert-snapshot", | ||||||||||||||||||||
| 3626 | method => "POST", | ||||||||||||||||||||
| 3627 | parts => | ||||||||||||||||||||
| 3628 | { job_id => { required => 1 }, snapshot_id => { required => 1 } }, | ||||||||||||||||||||
| 3629 | paths => [ | ||||||||||||||||||||
| 3630 | [ { job_id => 2, snapshot_id => 4 }, "_ml", | ||||||||||||||||||||
| 3631 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 3632 | "model_snapshots", "{snapshot_id}", | ||||||||||||||||||||
| 3633 | "_revert", | ||||||||||||||||||||
| 3634 | ], | ||||||||||||||||||||
| 3635 | ], | ||||||||||||||||||||
| 3636 | qs => { | ||||||||||||||||||||
| 3637 | delete_intervening_results => "boolean", | ||||||||||||||||||||
| 3638 | error_trace => "boolean", | ||||||||||||||||||||
| 3639 | filter_path => "list", | ||||||||||||||||||||
| 3640 | human => "boolean", | ||||||||||||||||||||
| 3641 | }, | ||||||||||||||||||||
| 3642 | }, | ||||||||||||||||||||
| 3643 | |||||||||||||||||||||
| 3644 | 'ml.set_upgrade_mode' => { | ||||||||||||||||||||
| 3645 | doc => "ml-set-upgrade-mode", | ||||||||||||||||||||
| 3646 | method => "POST", | ||||||||||||||||||||
| 3647 | parts => {}, | ||||||||||||||||||||
| 3648 | paths => [ [ {}, "_ml", "set_upgrade_mode" ] ], | ||||||||||||||||||||
| 3649 | qs => { | ||||||||||||||||||||
| 3650 | enabled => "boolean", | ||||||||||||||||||||
| 3651 | error_trace => "boolean", | ||||||||||||||||||||
| 3652 | filter_path => "list", | ||||||||||||||||||||
| 3653 | human => "boolean", | ||||||||||||||||||||
| 3654 | timeout => "time", | ||||||||||||||||||||
| 3655 | }, | ||||||||||||||||||||
| 3656 | }, | ||||||||||||||||||||
| 3657 | |||||||||||||||||||||
| 3658 | 'ml.start_data_frame_analytics' => { | ||||||||||||||||||||
| 3659 | body => {}, | ||||||||||||||||||||
| 3660 | doc => "start-dfanalytics", | ||||||||||||||||||||
| 3661 | method => "POST", | ||||||||||||||||||||
| 3662 | parts => { id => { required => 1 } }, | ||||||||||||||||||||
| 3663 | paths => [ | ||||||||||||||||||||
| 3664 | [ { id => 3 }, "_ml", "data_frame", "analytics", | ||||||||||||||||||||
| 3665 | "{id}", "_start" | ||||||||||||||||||||
| 3666 | ], | ||||||||||||||||||||
| 3667 | ], | ||||||||||||||||||||
| 3668 | qs => { | ||||||||||||||||||||
| 3669 | error_trace => "boolean", | ||||||||||||||||||||
| 3670 | filter_path => "list", | ||||||||||||||||||||
| 3671 | human => "boolean", | ||||||||||||||||||||
| 3672 | timeout => "time", | ||||||||||||||||||||
| 3673 | }, | ||||||||||||||||||||
| 3674 | }, | ||||||||||||||||||||
| 3675 | |||||||||||||||||||||
| 3676 | 'ml.start_datafeed' => { | ||||||||||||||||||||
| 3677 | body => {}, | ||||||||||||||||||||
| 3678 | doc => "ml-start-datafeed", | ||||||||||||||||||||
| 3679 | method => "POST", | ||||||||||||||||||||
| 3680 | parts => { datafeed_id => { required => 1 } }, | ||||||||||||||||||||
| 3681 | paths => [ | ||||||||||||||||||||
| 3682 | [ { datafeed_id => 2 }, "_ml", | ||||||||||||||||||||
| 3683 | "datafeeds", "{datafeed_id}", | ||||||||||||||||||||
| 3684 | "_start", | ||||||||||||||||||||
| 3685 | ], | ||||||||||||||||||||
| 3686 | ], | ||||||||||||||||||||
| 3687 | qs => { | ||||||||||||||||||||
| 3688 | end => "string", | ||||||||||||||||||||
| 3689 | error_trace => "boolean", | ||||||||||||||||||||
| 3690 | filter_path => "list", | ||||||||||||||||||||
| 3691 | human => "boolean", | ||||||||||||||||||||
| 3692 | start => "string", | ||||||||||||||||||||
| 3693 | timeout => "time", | ||||||||||||||||||||
| 3694 | }, | ||||||||||||||||||||
| 3695 | }, | ||||||||||||||||||||
| 3696 | |||||||||||||||||||||
| 3697 | 'ml.stop_data_frame_analytics' => { | ||||||||||||||||||||
| 3698 | body => {}, | ||||||||||||||||||||
| 3699 | doc => "stop-dfanalytics", | ||||||||||||||||||||
| 3700 | method => "POST", | ||||||||||||||||||||
| 3701 | parts => { id => { required => 1 } }, | ||||||||||||||||||||
| 3702 | paths => [ | ||||||||||||||||||||
| 3703 | [ { id => 3 }, "_ml", "data_frame", "analytics", "{id}", | ||||||||||||||||||||
| 3704 | "_stop" | ||||||||||||||||||||
| 3705 | ], | ||||||||||||||||||||
| 3706 | ], | ||||||||||||||||||||
| 3707 | qs => { | ||||||||||||||||||||
| 3708 | allow_no_match => "boolean", | ||||||||||||||||||||
| 3709 | error_trace => "boolean", | ||||||||||||||||||||
| 3710 | filter_path => "list", | ||||||||||||||||||||
| 3711 | force => "boolean", | ||||||||||||||||||||
| 3712 | human => "boolean", | ||||||||||||||||||||
| 3713 | timeout => "time", | ||||||||||||||||||||
| 3714 | }, | ||||||||||||||||||||
| 3715 | }, | ||||||||||||||||||||
| 3716 | |||||||||||||||||||||
| 3717 | 'ml.stop_datafeed' => { | ||||||||||||||||||||
| 3718 | doc => "ml-stop-datafeed", | ||||||||||||||||||||
| 3719 | method => "POST", | ||||||||||||||||||||
| 3720 | parts => { datafeed_id => { required => 1 } }, | ||||||||||||||||||||
| 3721 | paths => [ | ||||||||||||||||||||
| 3722 | [ { datafeed_id => 2 }, "_ml", | ||||||||||||||||||||
| 3723 | "datafeeds", "{datafeed_id}", | ||||||||||||||||||||
| 3724 | "_stop", | ||||||||||||||||||||
| 3725 | ], | ||||||||||||||||||||
| 3726 | ], | ||||||||||||||||||||
| 3727 | qs => { | ||||||||||||||||||||
| 3728 | allow_no_datafeeds => "boolean", | ||||||||||||||||||||
| 3729 | error_trace => "boolean", | ||||||||||||||||||||
| 3730 | filter_path => "list", | ||||||||||||||||||||
| 3731 | force => "boolean", | ||||||||||||||||||||
| 3732 | human => "boolean", | ||||||||||||||||||||
| 3733 | timeout => "time", | ||||||||||||||||||||
| 3734 | }, | ||||||||||||||||||||
| 3735 | }, | ||||||||||||||||||||
| 3736 | |||||||||||||||||||||
| 3737 | 'ml.update_datafeed' => { | ||||||||||||||||||||
| 3738 | body => { required => 1 }, | ||||||||||||||||||||
| 3739 | doc => "ml-update-datafeed", | ||||||||||||||||||||
| 3740 | method => "POST", | ||||||||||||||||||||
| 3741 | parts => { datafeed_id => { required => 1 } }, | ||||||||||||||||||||
| 3742 | paths => [ | ||||||||||||||||||||
| 3743 | [ { datafeed_id => 2 }, "_ml", | ||||||||||||||||||||
| 3744 | "datafeeds", "{datafeed_id}", | ||||||||||||||||||||
| 3745 | "_update", | ||||||||||||||||||||
| 3746 | ], | ||||||||||||||||||||
| 3747 | ], | ||||||||||||||||||||
| 3748 | qs => { | ||||||||||||||||||||
| 3749 | error_trace => "boolean", | ||||||||||||||||||||
| 3750 | filter_path => "list", | ||||||||||||||||||||
| 3751 | human => "boolean" | ||||||||||||||||||||
| 3752 | }, | ||||||||||||||||||||
| 3753 | }, | ||||||||||||||||||||
| 3754 | |||||||||||||||||||||
| 3755 | 'ml.update_filter' => { | ||||||||||||||||||||
| 3756 | body => { required => 1 }, | ||||||||||||||||||||
| 3757 | method => "POST", | ||||||||||||||||||||
| 3758 | parts => { filter_id => { required => 1 } }, | ||||||||||||||||||||
| 3759 | paths => [ | ||||||||||||||||||||
| 3760 | [ { filter_id => 2 }, "_ml", "filters", "{filter_id}", | ||||||||||||||||||||
| 3761 | "_update" | ||||||||||||||||||||
| 3762 | ], | ||||||||||||||||||||
| 3763 | ], | ||||||||||||||||||||
| 3764 | qs => { | ||||||||||||||||||||
| 3765 | error_trace => "boolean", | ||||||||||||||||||||
| 3766 | filter_path => "list", | ||||||||||||||||||||
| 3767 | human => "boolean" | ||||||||||||||||||||
| 3768 | }, | ||||||||||||||||||||
| 3769 | }, | ||||||||||||||||||||
| 3770 | |||||||||||||||||||||
| 3771 | 'ml.update_job' => { | ||||||||||||||||||||
| 3772 | body => { required => 1 }, | ||||||||||||||||||||
| 3773 | doc => "ml-update-job", | ||||||||||||||||||||
| 3774 | method => "POST", | ||||||||||||||||||||
| 3775 | parts => { job_id => { required => 1 } }, | ||||||||||||||||||||
| 3776 | paths => [ | ||||||||||||||||||||
| 3777 | [ { job_id => 2 }, "_ml", | ||||||||||||||||||||
| 3778 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 3779 | "_update", | ||||||||||||||||||||
| 3780 | ], | ||||||||||||||||||||
| 3781 | ], | ||||||||||||||||||||
| 3782 | qs => { | ||||||||||||||||||||
| 3783 | error_trace => "boolean", | ||||||||||||||||||||
| 3784 | filter_path => "list", | ||||||||||||||||||||
| 3785 | human => "boolean" | ||||||||||||||||||||
| 3786 | }, | ||||||||||||||||||||
| 3787 | }, | ||||||||||||||||||||
| 3788 | |||||||||||||||||||||
| 3789 | 'ml.update_model_snapshot' => { | ||||||||||||||||||||
| 3790 | body => { required => 1 }, | ||||||||||||||||||||
| 3791 | doc => "ml-update-snapshot", | ||||||||||||||||||||
| 3792 | method => "POST", | ||||||||||||||||||||
| 3793 | parts => | ||||||||||||||||||||
| 3794 | { job_id => { required => 1 }, snapshot_id => { required => 1 } }, | ||||||||||||||||||||
| 3795 | paths => [ | ||||||||||||||||||||
| 3796 | [ { job_id => 2, snapshot_id => 4 }, "_ml", | ||||||||||||||||||||
| 3797 | "anomaly_detectors", "{job_id}", | ||||||||||||||||||||
| 3798 | "model_snapshots", "{snapshot_id}", | ||||||||||||||||||||
| 3799 | "_update", | ||||||||||||||||||||
| 3800 | ], | ||||||||||||||||||||
| 3801 | ], | ||||||||||||||||||||
| 3802 | qs => { | ||||||||||||||||||||
| 3803 | error_trace => "boolean", | ||||||||||||||||||||
| 3804 | filter_path => "list", | ||||||||||||||||||||
| 3805 | human => "boolean" | ||||||||||||||||||||
| 3806 | }, | ||||||||||||||||||||
| 3807 | }, | ||||||||||||||||||||
| 3808 | |||||||||||||||||||||
| 3809 | 'ml.validate' => { | ||||||||||||||||||||
| 3810 | body => { required => 1 }, | ||||||||||||||||||||
| 3811 | method => "POST", | ||||||||||||||||||||
| 3812 | parts => {}, | ||||||||||||||||||||
| 3813 | paths => [ [ {}, "_ml", "anomaly_detectors", "_validate" ] ], | ||||||||||||||||||||
| 3814 | qs => { | ||||||||||||||||||||
| 3815 | error_trace => "boolean", | ||||||||||||||||||||
| 3816 | filter_path => "list", | ||||||||||||||||||||
| 3817 | human => "boolean" | ||||||||||||||||||||
| 3818 | }, | ||||||||||||||||||||
| 3819 | }, | ||||||||||||||||||||
| 3820 | |||||||||||||||||||||
| 3821 | 'ml.validate_detector' => { | ||||||||||||||||||||
| 3822 | body => { required => 1 }, | ||||||||||||||||||||
| 3823 | method => "POST", | ||||||||||||||||||||
| 3824 | parts => {}, | ||||||||||||||||||||
| 3825 | paths => | ||||||||||||||||||||
| 3826 | [ [ {}, "_ml", "anomaly_detectors", "_validate", "detector" ] ], | ||||||||||||||||||||
| 3827 | qs => { | ||||||||||||||||||||
| 3828 | error_trace => "boolean", | ||||||||||||||||||||
| 3829 | filter_path => "list", | ||||||||||||||||||||
| 3830 | human => "boolean" | ||||||||||||||||||||
| 3831 | }, | ||||||||||||||||||||
| 3832 | }, | ||||||||||||||||||||
| 3833 | |||||||||||||||||||||
| 3834 | 'monitoring.bulk' => { | ||||||||||||||||||||
| 3835 | body => { required => 1 }, | ||||||||||||||||||||
| 3836 | doc => "es-monitoring", | ||||||||||||||||||||
| 3837 | method => "POST", | ||||||||||||||||||||
| 3838 | parts => { type => {} }, | ||||||||||||||||||||
| 3839 | paths => [ | ||||||||||||||||||||
| 3840 | [ { type => 1 }, "_monitoring", "{type}", "bulk" ], | ||||||||||||||||||||
| 3841 | [ {}, "_monitoring", "bulk" ], | ||||||||||||||||||||
| 3842 | ], | ||||||||||||||||||||
| 3843 | qs => { | ||||||||||||||||||||
| 3844 | error_trace => "boolean", | ||||||||||||||||||||
| 3845 | filter_path => "list", | ||||||||||||||||||||
| 3846 | human => "boolean", | ||||||||||||||||||||
| 3847 | interval => "string", | ||||||||||||||||||||
| 3848 | system_api_version => "string", | ||||||||||||||||||||
| 3849 | system_id => "string", | ||||||||||||||||||||
| 3850 | }, | ||||||||||||||||||||
| 3851 | serialize => "bulk", | ||||||||||||||||||||
| 3852 | }, | ||||||||||||||||||||
| 3853 | |||||||||||||||||||||
| 3854 | 'nodes.hot_threads' => { | ||||||||||||||||||||
| 3855 | doc => "cluster-nodes-hot-threads", | ||||||||||||||||||||
| 3856 | parts => { node_id => { multi => 1 } }, | ||||||||||||||||||||
| 3857 | paths => [ | ||||||||||||||||||||
| 3858 | [ { node_id => 1 }, "_nodes", "{node_id}", "hot_threads" ], | ||||||||||||||||||||
| 3859 | [ {}, "_nodes", "hot_threads" ], | ||||||||||||||||||||
| 3860 | ], | ||||||||||||||||||||
| 3861 | qs => { | ||||||||||||||||||||
| 3862 | error_trace => "boolean", | ||||||||||||||||||||
| 3863 | filter_path => "list", | ||||||||||||||||||||
| 3864 | human => "boolean", | ||||||||||||||||||||
| 3865 | ignore_idle_threads => "boolean", | ||||||||||||||||||||
| 3866 | interval => "time", | ||||||||||||||||||||
| 3867 | snapshots => "number", | ||||||||||||||||||||
| 3868 | threads => "number", | ||||||||||||||||||||
| 3869 | timeout => "time", | ||||||||||||||||||||
| 3870 | type => "enum", | ||||||||||||||||||||
| 3871 | }, | ||||||||||||||||||||
| 3872 | }, | ||||||||||||||||||||
| 3873 | |||||||||||||||||||||
| 3874 | 'nodes.info' => { | ||||||||||||||||||||
| 3875 | doc => "cluster-nodes-info", | ||||||||||||||||||||
| 3876 | parts => { metric => { multi => 1 }, node_id => { multi => 1 } }, | ||||||||||||||||||||
| 3877 | paths => [ | ||||||||||||||||||||
| 3878 | [ { metric => 2, node_id => 1 }, "_nodes", | ||||||||||||||||||||
| 3879 | "{node_id}", "{metric}", | ||||||||||||||||||||
| 3880 | ], | ||||||||||||||||||||
| 3881 | [ { metric => 1 }, "_nodes", "{metric}" ], | ||||||||||||||||||||
| 3882 | [ { node_id => 1 }, "_nodes", "{node_id}" ], | ||||||||||||||||||||
| 3883 | [ {}, "_nodes" ], | ||||||||||||||||||||
| 3884 | ], | ||||||||||||||||||||
| 3885 | qs => { | ||||||||||||||||||||
| 3886 | error_trace => "boolean", | ||||||||||||||||||||
| 3887 | filter_path => "list", | ||||||||||||||||||||
| 3888 | flat_settings => "boolean", | ||||||||||||||||||||
| 3889 | human => "boolean", | ||||||||||||||||||||
| 3890 | timeout => "time", | ||||||||||||||||||||
| 3891 | }, | ||||||||||||||||||||
| 3892 | }, | ||||||||||||||||||||
| 3893 | |||||||||||||||||||||
| 3894 | 'nodes.reload_secure_settings' => { | ||||||||||||||||||||
| 3895 | doc => "", | ||||||||||||||||||||
| 3896 | method => "POST", | ||||||||||||||||||||
| 3897 | parts => { node_id => { multi => 1 } }, | ||||||||||||||||||||
| 3898 | paths => [ | ||||||||||||||||||||
| 3899 | [ { node_id => 1 }, "_nodes", | ||||||||||||||||||||
| 3900 | "{node_id}", "reload_secure_settings", | ||||||||||||||||||||
| 3901 | ], | ||||||||||||||||||||
| 3902 | [ {}, "_nodes", "reload_secure_settings" ], | ||||||||||||||||||||
| 3903 | ], | ||||||||||||||||||||
| 3904 | qs => { | ||||||||||||||||||||
| 3905 | error_trace => "boolean", | ||||||||||||||||||||
| 3906 | filter_path => "list", | ||||||||||||||||||||
| 3907 | human => "boolean", | ||||||||||||||||||||
| 3908 | timeout => "time", | ||||||||||||||||||||
| 3909 | }, | ||||||||||||||||||||
| 3910 | }, | ||||||||||||||||||||
| 3911 | |||||||||||||||||||||
| 3912 | 'nodes.stats' => { | ||||||||||||||||||||
| 3913 | doc => "cluster-nodes-stats", | ||||||||||||||||||||
| 3914 | parts => { | ||||||||||||||||||||
| 3915 | index_metric => { multi => 1 }, | ||||||||||||||||||||
| 3916 | metric => { multi => 1 }, | ||||||||||||||||||||
| 3917 | node_id => { multi => 1 }, | ||||||||||||||||||||
| 3918 | }, | ||||||||||||||||||||
| 3919 | paths => [ | ||||||||||||||||||||
| 3920 | [ { index_metric => 4, metric => 3, node_id => 1 }, | ||||||||||||||||||||
| 3921 | "_nodes", "{node_id}", "stats", "{metric}", "{index_metric}", | ||||||||||||||||||||
| 3922 | ], | ||||||||||||||||||||
| 3923 | [ { index_metric => 3, metric => 2 }, "_nodes", | ||||||||||||||||||||
| 3924 | "stats", "{metric}", | ||||||||||||||||||||
| 3925 | "{index_metric}", | ||||||||||||||||||||
| 3926 | ], | ||||||||||||||||||||
| 3927 | [ { metric => 3, node_id => 1 }, "_nodes", | ||||||||||||||||||||
| 3928 | "{node_id}", "stats", | ||||||||||||||||||||
| 3929 | "{metric}", | ||||||||||||||||||||
| 3930 | ], | ||||||||||||||||||||
| 3931 | [ { metric => 2 }, "_nodes", "stats", "{metric}" ], | ||||||||||||||||||||
| 3932 | [ { node_id => 1 }, "_nodes", "{node_id}", "stats" ], | ||||||||||||||||||||
| 3933 | [ {}, "_nodes", "stats" ], | ||||||||||||||||||||
| 3934 | ], | ||||||||||||||||||||
| 3935 | qs => { | ||||||||||||||||||||
| 3936 | completion_fields => "list", | ||||||||||||||||||||
| 3937 | error_trace => "boolean", | ||||||||||||||||||||
| 3938 | fielddata_fields => "list", | ||||||||||||||||||||
| 3939 | fields => "list", | ||||||||||||||||||||
| 3940 | filter_path => "list", | ||||||||||||||||||||
| 3941 | groups => "boolean", | ||||||||||||||||||||
| 3942 | human => "boolean", | ||||||||||||||||||||
| 3943 | include_segment_file_sizes => "boolean", | ||||||||||||||||||||
| 3944 | level => "enum", | ||||||||||||||||||||
| 3945 | timeout => "time", | ||||||||||||||||||||
| 3946 | types => "list", | ||||||||||||||||||||
| 3947 | }, | ||||||||||||||||||||
| 3948 | }, | ||||||||||||||||||||
| 3949 | |||||||||||||||||||||
| 3950 | 'nodes.usage' => { | ||||||||||||||||||||
| 3951 | doc => "cluster-nodes-usage", | ||||||||||||||||||||
| 3952 | parts => { metric => { multi => 1 }, node_id => { multi => 1 } }, | ||||||||||||||||||||
| 3953 | paths => [ | ||||||||||||||||||||
| 3954 | [ { metric => 3, node_id => 1 }, "_nodes", | ||||||||||||||||||||
| 3955 | "{node_id}", "usage", | ||||||||||||||||||||
| 3956 | "{metric}", | ||||||||||||||||||||
| 3957 | ], | ||||||||||||||||||||
| 3958 | [ { metric => 2 }, "_nodes", "usage", "{metric}" ], | ||||||||||||||||||||
| 3959 | [ { node_id => 1 }, "_nodes", "{node_id}", "usage" ], | ||||||||||||||||||||
| 3960 | [ {}, "_nodes", "usage" ], | ||||||||||||||||||||
| 3961 | ], | ||||||||||||||||||||
| 3962 | qs => { | ||||||||||||||||||||
| 3963 | error_trace => "boolean", | ||||||||||||||||||||
| 3964 | filter_path => "list", | ||||||||||||||||||||
| 3965 | human => "boolean", | ||||||||||||||||||||
| 3966 | timeout => "time", | ||||||||||||||||||||
| 3967 | }, | ||||||||||||||||||||
| 3968 | }, | ||||||||||||||||||||
| 3969 | |||||||||||||||||||||
| 3970 | 'rollup.delete_job' => { | ||||||||||||||||||||
| 3971 | method => "DELETE", | ||||||||||||||||||||
| 3972 | parts => { id => { required => 1 } }, | ||||||||||||||||||||
| 3973 | paths => [ [ { id => 2 }, "_rollup", "job", "{id}" ] ], | ||||||||||||||||||||
| 3974 | qs => { | ||||||||||||||||||||
| 3975 | error_trace => "boolean", | ||||||||||||||||||||
| 3976 | filter_path => "list", | ||||||||||||||||||||
| 3977 | human => "boolean" | ||||||||||||||||||||
| 3978 | }, | ||||||||||||||||||||
| 3979 | }, | ||||||||||||||||||||
| 3980 | |||||||||||||||||||||
| 3981 | 'rollup.get_jobs' => { | ||||||||||||||||||||
| 3982 | parts => { id => {} }, | ||||||||||||||||||||
| 3983 | paths => [ | ||||||||||||||||||||
| 3984 | [ { id => 2 }, "_rollup", "job", "{id}" ], | ||||||||||||||||||||
| 3985 | [ {}, "_rollup", "job" ], | ||||||||||||||||||||
| 3986 | ], | ||||||||||||||||||||
| 3987 | qs => { | ||||||||||||||||||||
| 3988 | error_trace => "boolean", | ||||||||||||||||||||
| 3989 | filter_path => "list", | ||||||||||||||||||||
| 3990 | human => "boolean" | ||||||||||||||||||||
| 3991 | }, | ||||||||||||||||||||
| 3992 | }, | ||||||||||||||||||||
| 3993 | |||||||||||||||||||||
| 3994 | 'rollup.get_rollup_caps' => { | ||||||||||||||||||||
| 3995 | parts => { id => {} }, | ||||||||||||||||||||
| 3996 | paths => [ | ||||||||||||||||||||
| 3997 | [ { id => 2 }, "_rollup", "data", "{id}" ], | ||||||||||||||||||||
| 3998 | [ {}, "_rollup", "data" ], | ||||||||||||||||||||
| 3999 | ], | ||||||||||||||||||||
| 4000 | qs => { | ||||||||||||||||||||
| 4001 | error_trace => "boolean", | ||||||||||||||||||||
| 4002 | filter_path => "list", | ||||||||||||||||||||
| 4003 | human => "boolean" | ||||||||||||||||||||
| 4004 | }, | ||||||||||||||||||||
| 4005 | }, | ||||||||||||||||||||
| 4006 | |||||||||||||||||||||
| 4007 | 'rollup.get_rollup_index_caps' => { | ||||||||||||||||||||
| 4008 | parts => { index => { required => 1 } }, | ||||||||||||||||||||
| 4009 | paths => [ [ { index => 0 }, "{index}", "_rollup", "data" ] ], | ||||||||||||||||||||
| 4010 | qs => { | ||||||||||||||||||||
| 4011 | error_trace => "boolean", | ||||||||||||||||||||
| 4012 | filter_path => "list", | ||||||||||||||||||||
| 4013 | human => "boolean" | ||||||||||||||||||||
| 4014 | }, | ||||||||||||||||||||
| 4015 | }, | ||||||||||||||||||||
| 4016 | |||||||||||||||||||||
| 4017 | 'rollup.put_job' => { | ||||||||||||||||||||
| 4018 | body => { required => 1 }, | ||||||||||||||||||||
| 4019 | method => "PUT", | ||||||||||||||||||||
| 4020 | parts => { id => { required => 1 } }, | ||||||||||||||||||||
| 4021 | paths => [ [ { id => 2 }, "_rollup", "job", "{id}" ] ], | ||||||||||||||||||||
| 4022 | qs => { | ||||||||||||||||||||
| 4023 | error_trace => "boolean", | ||||||||||||||||||||
| 4024 | filter_path => "list", | ||||||||||||||||||||
| 4025 | human => "boolean" | ||||||||||||||||||||
| 4026 | }, | ||||||||||||||||||||
| 4027 | }, | ||||||||||||||||||||
| 4028 | |||||||||||||||||||||
| 4029 | 'rollup.rollup_search' => { | ||||||||||||||||||||
| 4030 | body => { required => 1 }, | ||||||||||||||||||||
| 4031 | parts => { index => { multi => 1, required => 1 }, type => {} }, | ||||||||||||||||||||
| 4032 | paths => [ | ||||||||||||||||||||
| 4033 | [ { index => 0, type => 1 }, "{index}", | ||||||||||||||||||||
| 4034 | "{type}", "_rollup_search", | ||||||||||||||||||||
| 4035 | ], | ||||||||||||||||||||
| 4036 | [ { index => 0 }, "{index}", "_rollup_search" ], | ||||||||||||||||||||
| 4037 | ], | ||||||||||||||||||||
| 4038 | qs => { | ||||||||||||||||||||
| 4039 | error_trace => "boolean", | ||||||||||||||||||||
| 4040 | filter_path => "list", | ||||||||||||||||||||
| 4041 | human => "boolean", | ||||||||||||||||||||
| 4042 | rest_total_hits_as_int => "boolean", | ||||||||||||||||||||
| 4043 | typed_keys => "boolean", | ||||||||||||||||||||
| 4044 | }, | ||||||||||||||||||||
| 4045 | }, | ||||||||||||||||||||
| 4046 | |||||||||||||||||||||
| 4047 | 'rollup.start_job' => { | ||||||||||||||||||||
| 4048 | method => "POST", | ||||||||||||||||||||
| 4049 | parts => { id => { required => 1 } }, | ||||||||||||||||||||
| 4050 | paths => [ [ { id => 2 }, "_rollup", "job", "{id}", "_start" ] ], | ||||||||||||||||||||
| 4051 | qs => { | ||||||||||||||||||||
| 4052 | error_trace => "boolean", | ||||||||||||||||||||
| 4053 | filter_path => "list", | ||||||||||||||||||||
| 4054 | human => "boolean" | ||||||||||||||||||||
| 4055 | }, | ||||||||||||||||||||
| 4056 | }, | ||||||||||||||||||||
| 4057 | |||||||||||||||||||||
| 4058 | 'rollup.stop_job' => { | ||||||||||||||||||||
| 4059 | method => "POST", | ||||||||||||||||||||
| 4060 | parts => { id => { required => 1 } }, | ||||||||||||||||||||
| 4061 | paths => [ [ { id => 2 }, "_rollup", "job", "{id}", "_stop" ] ], | ||||||||||||||||||||
| 4062 | qs => { | ||||||||||||||||||||
| 4063 | error_trace => "boolean", | ||||||||||||||||||||
| 4064 | filter_path => "list", | ||||||||||||||||||||
| 4065 | human => "boolean", | ||||||||||||||||||||
| 4066 | timeout => "time", | ||||||||||||||||||||
| 4067 | wait_for_completion => "boolean", | ||||||||||||||||||||
| 4068 | }, | ||||||||||||||||||||
| 4069 | }, | ||||||||||||||||||||
| 4070 | |||||||||||||||||||||
| 4071 | 'security.authenticate' => { | ||||||||||||||||||||
| 4072 | doc => "security-api-authenticate", | ||||||||||||||||||||
| 4073 | parts => {}, | ||||||||||||||||||||
| 4074 | paths => [ [ {}, "_security", "_authenticate" ] ], | ||||||||||||||||||||
| 4075 | qs => { | ||||||||||||||||||||
| 4076 | error_trace => "boolean", | ||||||||||||||||||||
| 4077 | filter_path => "list", | ||||||||||||||||||||
| 4078 | human => "boolean" | ||||||||||||||||||||
| 4079 | }, | ||||||||||||||||||||
| 4080 | }, | ||||||||||||||||||||
| 4081 | |||||||||||||||||||||
| 4082 | 'security.change_password' => { | ||||||||||||||||||||
| 4083 | body => { required => 1 }, | ||||||||||||||||||||
| 4084 | doc => "security-api-change-password", | ||||||||||||||||||||
| 4085 | method => "PUT", | ||||||||||||||||||||
| 4086 | parts => { username => {} }, | ||||||||||||||||||||
| 4087 | paths => [ | ||||||||||||||||||||
| 4088 | [ { username => 2 }, "_security", | ||||||||||||||||||||
| 4089 | "user", "{username}", | ||||||||||||||||||||
| 4090 | "_password", | ||||||||||||||||||||
| 4091 | ], | ||||||||||||||||||||
| 4092 | [ {}, "_security", "user", "_password" ], | ||||||||||||||||||||
| 4093 | ], | ||||||||||||||||||||
| 4094 | qs => { | ||||||||||||||||||||
| 4095 | error_trace => "boolean", | ||||||||||||||||||||
| 4096 | filter_path => "list", | ||||||||||||||||||||
| 4097 | human => "boolean", | ||||||||||||||||||||
| 4098 | refresh => "enum", | ||||||||||||||||||||
| 4099 | }, | ||||||||||||||||||||
| 4100 | }, | ||||||||||||||||||||
| 4101 | |||||||||||||||||||||
| 4102 | 'security.clear_cached_realms' => { | ||||||||||||||||||||
| 4103 | doc => "security-api-clear-cache", | ||||||||||||||||||||
| 4104 | method => "POST", | ||||||||||||||||||||
| 4105 | parts => { realms => { multi => 1, required => 1 } }, | ||||||||||||||||||||
| 4106 | paths => [ | ||||||||||||||||||||
| 4107 | [ { realms => 2 }, "_security", "realm", "{realms}", | ||||||||||||||||||||
| 4108 | "_clear_cache", | ||||||||||||||||||||
| 4109 | ], | ||||||||||||||||||||
| 4110 | ], | ||||||||||||||||||||
| 4111 | qs => { | ||||||||||||||||||||
| 4112 | error_trace => "boolean", | ||||||||||||||||||||
| 4113 | filter_path => "list", | ||||||||||||||||||||
| 4114 | human => "boolean", | ||||||||||||||||||||
| 4115 | usernames => "list", | ||||||||||||||||||||
| 4116 | }, | ||||||||||||||||||||
| 4117 | }, | ||||||||||||||||||||
| 4118 | |||||||||||||||||||||
| 4119 | 'security.clear_cached_roles' => { | ||||||||||||||||||||
| 4120 | doc => "security-api-clear-role-cache", | ||||||||||||||||||||
| 4121 | method => "POST", | ||||||||||||||||||||
| 4122 | parts => { name => { multi => 1, required => 1 } }, | ||||||||||||||||||||
| 4123 | paths => [ | ||||||||||||||||||||
| 4124 | [ { name => 2 }, "_security", "role", "{name}", "_clear_cache" ], | ||||||||||||||||||||
| 4125 | ], | ||||||||||||||||||||
| 4126 | qs => { | ||||||||||||||||||||
| 4127 | error_trace => "boolean", | ||||||||||||||||||||
| 4128 | filter_path => "list", | ||||||||||||||||||||
| 4129 | human => "boolean" | ||||||||||||||||||||
| 4130 | }, | ||||||||||||||||||||
| 4131 | }, | ||||||||||||||||||||
| 4132 | |||||||||||||||||||||
| 4133 | 'security.create_api_key' => { | ||||||||||||||||||||
| 4134 | body => { required => 1 }, | ||||||||||||||||||||
| 4135 | doc => "security-api-create-api-key", | ||||||||||||||||||||
| 4136 | method => "PUT", | ||||||||||||||||||||
| 4137 | parts => {}, | ||||||||||||||||||||
| 4138 | paths => [ [ {}, "_security", "api_key" ] ], | ||||||||||||||||||||
| 4139 | qs => { | ||||||||||||||||||||
| 4140 | error_trace => "boolean", | ||||||||||||||||||||
| 4141 | filter_path => "list", | ||||||||||||||||||||
| 4142 | human => "boolean", | ||||||||||||||||||||
| 4143 | refresh => "enum", | ||||||||||||||||||||
| 4144 | }, | ||||||||||||||||||||
| 4145 | }, | ||||||||||||||||||||
| 4146 | |||||||||||||||||||||
| 4147 | 'security.delete_privileges' => { | ||||||||||||||||||||
| 4148 | doc => "", | ||||||||||||||||||||
| 4149 | method => "DELETE", | ||||||||||||||||||||
| 4150 | parts => | ||||||||||||||||||||
| 4151 | { application => { required => 1 }, name => { required => 1 } }, | ||||||||||||||||||||
| 4152 | paths => [ | ||||||||||||||||||||
| 4153 | [ { application => 2, name => 3 }, "_security", | ||||||||||||||||||||
| 4154 | "privilege", "{application}", | ||||||||||||||||||||
| 4155 | "{name}", | ||||||||||||||||||||
| 4156 | ], | ||||||||||||||||||||
| 4157 | ], | ||||||||||||||||||||
| 4158 | qs => { | ||||||||||||||||||||
| 4159 | error_trace => "boolean", | ||||||||||||||||||||
| 4160 | filter_path => "list", | ||||||||||||||||||||
| 4161 | human => "boolean", | ||||||||||||||||||||
| 4162 | refresh => "enum", | ||||||||||||||||||||
| 4163 | }, | ||||||||||||||||||||
| 4164 | }, | ||||||||||||||||||||
| 4165 | |||||||||||||||||||||
| 4166 | 'security.delete_role' => { | ||||||||||||||||||||
| 4167 | doc => "security-api-delete-role", | ||||||||||||||||||||
| 4168 | method => "DELETE", | ||||||||||||||||||||
| 4169 | parts => { name => { required => 1 } }, | ||||||||||||||||||||
| 4170 | paths => [ [ { name => 2 }, "_security", "role", "{name}" ] ], | ||||||||||||||||||||
| 4171 | qs => { | ||||||||||||||||||||
| 4172 | error_trace => "boolean", | ||||||||||||||||||||
| 4173 | filter_path => "list", | ||||||||||||||||||||
| 4174 | human => "boolean", | ||||||||||||||||||||
| 4175 | refresh => "enum", | ||||||||||||||||||||
| 4176 | }, | ||||||||||||||||||||
| 4177 | }, | ||||||||||||||||||||
| 4178 | |||||||||||||||||||||
| 4179 | 'security.delete_role_mapping' => { | ||||||||||||||||||||
| 4180 | doc => "security-api-delete-role-mapping", | ||||||||||||||||||||
| 4181 | method => "DELETE", | ||||||||||||||||||||
| 4182 | parts => { name => { required => 1 } }, | ||||||||||||||||||||
| 4183 | paths => [ [ { name => 2 }, "_security", "role_mapping", "{name}" ] ], | ||||||||||||||||||||
| 4184 | qs => { | ||||||||||||||||||||
| 4185 | error_trace => "boolean", | ||||||||||||||||||||
| 4186 | filter_path => "list", | ||||||||||||||||||||
| 4187 | human => "boolean", | ||||||||||||||||||||
| 4188 | refresh => "enum", | ||||||||||||||||||||
| 4189 | }, | ||||||||||||||||||||
| 4190 | }, | ||||||||||||||||||||
| 4191 | |||||||||||||||||||||
| 4192 | 'security.delete_user' => { | ||||||||||||||||||||
| 4193 | doc => "security-api-delete-user", | ||||||||||||||||||||
| 4194 | method => "DELETE", | ||||||||||||||||||||
| 4195 | parts => { username => { required => 1 } }, | ||||||||||||||||||||
| 4196 | paths => [ [ { username => 2 }, "_security", "user", "{username}" ] ], | ||||||||||||||||||||
| 4197 | qs => { | ||||||||||||||||||||
| 4198 | error_trace => "boolean", | ||||||||||||||||||||
| 4199 | filter_path => "list", | ||||||||||||||||||||
| 4200 | human => "boolean", | ||||||||||||||||||||
| 4201 | refresh => "enum", | ||||||||||||||||||||
| 4202 | }, | ||||||||||||||||||||
| 4203 | }, | ||||||||||||||||||||
| 4204 | |||||||||||||||||||||
| 4205 | 'security.disable_user' => { | ||||||||||||||||||||
| 4206 | doc => "security-api-disable-user", | ||||||||||||||||||||
| 4207 | method => "PUT", | ||||||||||||||||||||
| 4208 | parts => { username => { required => 1 } }, | ||||||||||||||||||||
| 4209 | paths => [ | ||||||||||||||||||||
| 4210 | [ { username => 2 }, "_security", | ||||||||||||||||||||
| 4211 | "user", "{username}", | ||||||||||||||||||||
| 4212 | "_disable" | ||||||||||||||||||||
| 4213 | ], | ||||||||||||||||||||
| 4214 | ], | ||||||||||||||||||||
| 4215 | qs => { | ||||||||||||||||||||
| 4216 | error_trace => "boolean", | ||||||||||||||||||||
| 4217 | filter_path => "list", | ||||||||||||||||||||
| 4218 | human => "boolean", | ||||||||||||||||||||
| 4219 | refresh => "enum", | ||||||||||||||||||||
| 4220 | }, | ||||||||||||||||||||
| 4221 | }, | ||||||||||||||||||||
| 4222 | |||||||||||||||||||||
| 4223 | 'security.enable_user' => { | ||||||||||||||||||||
| 4224 | doc => "security-api-enable-user", | ||||||||||||||||||||
| 4225 | method => "PUT", | ||||||||||||||||||||
| 4226 | parts => { username => { required => 1 } }, | ||||||||||||||||||||
| 4227 | paths => [ | ||||||||||||||||||||
| 4228 | [ { username => 2 }, "_security", | ||||||||||||||||||||
| 4229 | "user", "{username}", | ||||||||||||||||||||
| 4230 | "_enable" | ||||||||||||||||||||
| 4231 | ], | ||||||||||||||||||||
| 4232 | ], | ||||||||||||||||||||
| 4233 | qs => { | ||||||||||||||||||||
| 4234 | error_trace => "boolean", | ||||||||||||||||||||
| 4235 | filter_path => "list", | ||||||||||||||||||||
| 4236 | human => "boolean", | ||||||||||||||||||||
| 4237 | refresh => "enum", | ||||||||||||||||||||
| 4238 | }, | ||||||||||||||||||||
| 4239 | }, | ||||||||||||||||||||
| 4240 | |||||||||||||||||||||
| 4241 | 'security.get_api_key' => { | ||||||||||||||||||||
| 4242 | doc => "security-api-get-api-key", | ||||||||||||||||||||
| 4243 | parts => {}, | ||||||||||||||||||||
| 4244 | paths => [ [ {}, "_security", "api_key" ] ], | ||||||||||||||||||||
| 4245 | qs => { | ||||||||||||||||||||
| 4246 | error_trace => "boolean", | ||||||||||||||||||||
| 4247 | filter_path => "list", | ||||||||||||||||||||
| 4248 | human => "boolean", | ||||||||||||||||||||
| 4249 | id => "string", | ||||||||||||||||||||
| 4250 | name => "string", | ||||||||||||||||||||
| 4251 | realm_name => "string", | ||||||||||||||||||||
| 4252 | username => "string", | ||||||||||||||||||||
| 4253 | }, | ||||||||||||||||||||
| 4254 | }, | ||||||||||||||||||||
| 4255 | |||||||||||||||||||||
| 4256 | 'security.get_builtin_privileges' => { | ||||||||||||||||||||
| 4257 | doc => "security-api-get-builtin-privileges", | ||||||||||||||||||||
| 4258 | parts => {}, | ||||||||||||||||||||
| 4259 | paths => [ [ {}, "_security", "privilege", "_builtin" ] ], | ||||||||||||||||||||
| 4260 | qs => { | ||||||||||||||||||||
| 4261 | error_trace => "boolean", | ||||||||||||||||||||
| 4262 | filter_path => "list", | ||||||||||||||||||||
| 4263 | human => "boolean" | ||||||||||||||||||||
| 4264 | }, | ||||||||||||||||||||
| 4265 | }, | ||||||||||||||||||||
| 4266 | |||||||||||||||||||||
| 4267 | 'security.get_privileges' => { | ||||||||||||||||||||
| 4268 | doc => "security-api-get-privileges", | ||||||||||||||||||||
| 4269 | parts => { application => {}, name => {} }, | ||||||||||||||||||||
| 4270 | paths => [ | ||||||||||||||||||||
| 4271 | [ { application => 2, name => 3 }, "_security", | ||||||||||||||||||||
| 4272 | "privilege", "{application}", | ||||||||||||||||||||
| 4273 | "{name}", | ||||||||||||||||||||
| 4274 | ], | ||||||||||||||||||||
| 4275 | [ { application => 2 }, "_security", | ||||||||||||||||||||
| 4276 | "privilege", "{application}" | ||||||||||||||||||||
| 4277 | ], | ||||||||||||||||||||
| 4278 | [ {}, "_security", "privilege" ], | ||||||||||||||||||||
| 4279 | ], | ||||||||||||||||||||
| 4280 | qs => { | ||||||||||||||||||||
| 4281 | error_trace => "boolean", | ||||||||||||||||||||
| 4282 | filter_path => "list", | ||||||||||||||||||||
| 4283 | human => "boolean" | ||||||||||||||||||||
| 4284 | }, | ||||||||||||||||||||
| 4285 | }, | ||||||||||||||||||||
| 4286 | |||||||||||||||||||||
| 4287 | 'security.get_role' => { | ||||||||||||||||||||
| 4288 | doc => "security-api-get-role", | ||||||||||||||||||||
| 4289 | parts => { name => {} }, | ||||||||||||||||||||
| 4290 | paths => [ | ||||||||||||||||||||
| 4291 | [ { name => 2 }, "_security", "role", "{name}" ], | ||||||||||||||||||||
| 4292 | [ {}, "_security", "role" ], | ||||||||||||||||||||
| 4293 | ], | ||||||||||||||||||||
| 4294 | qs => { | ||||||||||||||||||||
| 4295 | error_trace => "boolean", | ||||||||||||||||||||
| 4296 | filter_path => "list", | ||||||||||||||||||||
| 4297 | human => "boolean" | ||||||||||||||||||||
| 4298 | }, | ||||||||||||||||||||
| 4299 | }, | ||||||||||||||||||||
| 4300 | |||||||||||||||||||||
| 4301 | 'security.get_role_mapping' => { | ||||||||||||||||||||
| 4302 | doc => "security-api-get-role-mapping", | ||||||||||||||||||||
| 4303 | parts => { name => {} }, | ||||||||||||||||||||
| 4304 | paths => [ | ||||||||||||||||||||
| 4305 | [ { name => 2 }, "_security", "role_mapping", "{name}" ], | ||||||||||||||||||||
| 4306 | [ {}, "_security", "role_mapping" ], | ||||||||||||||||||||
| 4307 | ], | ||||||||||||||||||||
| 4308 | qs => { | ||||||||||||||||||||
| 4309 | error_trace => "boolean", | ||||||||||||||||||||
| 4310 | filter_path => "list", | ||||||||||||||||||||
| 4311 | human => "boolean" | ||||||||||||||||||||
| 4312 | }, | ||||||||||||||||||||
| 4313 | }, | ||||||||||||||||||||
| 4314 | |||||||||||||||||||||
| 4315 | 'security.get_token' => { | ||||||||||||||||||||
| 4316 | body => { required => 1 }, | ||||||||||||||||||||
| 4317 | doc => "security-api-get-token", | ||||||||||||||||||||
| 4318 | method => "POST", | ||||||||||||||||||||
| 4319 | parts => {}, | ||||||||||||||||||||
| 4320 | paths => [ [ {}, "_security", "oauth2", "token" ] ], | ||||||||||||||||||||
| 4321 | qs => { | ||||||||||||||||||||
| 4322 | error_trace => "boolean", | ||||||||||||||||||||
| 4323 | filter_path => "list", | ||||||||||||||||||||
| 4324 | human => "boolean" | ||||||||||||||||||||
| 4325 | }, | ||||||||||||||||||||
| 4326 | }, | ||||||||||||||||||||
| 4327 | |||||||||||||||||||||
| 4328 | 'security.get_user' => { | ||||||||||||||||||||
| 4329 | doc => "security-api-get-user", | ||||||||||||||||||||
| 4330 | parts => { username => { multi => 1 } }, | ||||||||||||||||||||
| 4331 | paths => [ | ||||||||||||||||||||
| 4332 | [ { username => 2 }, "_security", "user", "{username}" ], | ||||||||||||||||||||
| 4333 | [ {}, "_security", "user" ], | ||||||||||||||||||||
| 4334 | ], | ||||||||||||||||||||
| 4335 | qs => { | ||||||||||||||||||||
| 4336 | error_trace => "boolean", | ||||||||||||||||||||
| 4337 | filter_path => "list", | ||||||||||||||||||||
| 4338 | human => "boolean" | ||||||||||||||||||||
| 4339 | }, | ||||||||||||||||||||
| 4340 | }, | ||||||||||||||||||||
| 4341 | |||||||||||||||||||||
| 4342 | 'security.get_user_privileges' => { | ||||||||||||||||||||
| 4343 | doc => "security-api-get-privileges", | ||||||||||||||||||||
| 4344 | parts => {}, | ||||||||||||||||||||
| 4345 | paths => [ [ {}, "_security", "user", "_privileges" ] ], | ||||||||||||||||||||
| 4346 | qs => { | ||||||||||||||||||||
| 4347 | error_trace => "boolean", | ||||||||||||||||||||
| 4348 | filter_path => "list", | ||||||||||||||||||||
| 4349 | human => "boolean" | ||||||||||||||||||||
| 4350 | }, | ||||||||||||||||||||
| 4351 | }, | ||||||||||||||||||||
| 4352 | |||||||||||||||||||||
| 4353 | 'security.has_privileges' => { | ||||||||||||||||||||
| 4354 | body => { required => 1 }, | ||||||||||||||||||||
| 4355 | doc => "security-api-has-privileges", | ||||||||||||||||||||
| 4356 | parts => { user => {} }, | ||||||||||||||||||||
| 4357 | paths => [ | ||||||||||||||||||||
| 4358 | [ { user => 2 }, "_security", | ||||||||||||||||||||
| 4359 | "user", "{user}", | ||||||||||||||||||||
| 4360 | "_has_privileges" | ||||||||||||||||||||
| 4361 | ], | ||||||||||||||||||||
| 4362 | [ {}, "_security", "user", "_has_privileges" ], | ||||||||||||||||||||
| 4363 | ], | ||||||||||||||||||||
| 4364 | qs => { | ||||||||||||||||||||
| 4365 | error_trace => "boolean", | ||||||||||||||||||||
| 4366 | filter_path => "list", | ||||||||||||||||||||
| 4367 | human => "boolean" | ||||||||||||||||||||
| 4368 | }, | ||||||||||||||||||||
| 4369 | }, | ||||||||||||||||||||
| 4370 | |||||||||||||||||||||
| 4371 | 'security.invalidate_api_key' => { | ||||||||||||||||||||
| 4372 | body => { required => 1 }, | ||||||||||||||||||||
| 4373 | doc => "security-api-invalidate-api-key", | ||||||||||||||||||||
| 4374 | method => "DELETE", | ||||||||||||||||||||
| 4375 | parts => {}, | ||||||||||||||||||||
| 4376 | paths => [ [ {}, "_security", "api_key" ] ], | ||||||||||||||||||||
| 4377 | qs => { | ||||||||||||||||||||
| 4378 | error_trace => "boolean", | ||||||||||||||||||||
| 4379 | filter_path => "list", | ||||||||||||||||||||
| 4380 | human => "boolean" | ||||||||||||||||||||
| 4381 | }, | ||||||||||||||||||||
| 4382 | }, | ||||||||||||||||||||
| 4383 | |||||||||||||||||||||
| 4384 | 'security.invalidate_token' => { | ||||||||||||||||||||
| 4385 | body => { required => 1 }, | ||||||||||||||||||||
| 4386 | doc => "security-api-invalidate-token", | ||||||||||||||||||||
| 4387 | method => "DELETE", | ||||||||||||||||||||
| 4388 | parts => {}, | ||||||||||||||||||||
| 4389 | paths => [ [ {}, "_security", "oauth2", "token" ] ], | ||||||||||||||||||||
| 4390 | qs => { | ||||||||||||||||||||
| 4391 | error_trace => "boolean", | ||||||||||||||||||||
| 4392 | filter_path => "list", | ||||||||||||||||||||
| 4393 | human => "boolean" | ||||||||||||||||||||
| 4394 | }, | ||||||||||||||||||||
| 4395 | }, | ||||||||||||||||||||
| 4396 | |||||||||||||||||||||
| 4397 | 'security.put_privileges' => { | ||||||||||||||||||||
| 4398 | body => { required => 1 }, | ||||||||||||||||||||
| 4399 | doc => "", | ||||||||||||||||||||
| 4400 | method => "PUT", | ||||||||||||||||||||
| 4401 | parts => {}, | ||||||||||||||||||||
| 4402 | paths => [ [ {}, "_security", "privilege" ] ], | ||||||||||||||||||||
| 4403 | qs => { | ||||||||||||||||||||
| 4404 | error_trace => "boolean", | ||||||||||||||||||||
| 4405 | filter_path => "list", | ||||||||||||||||||||
| 4406 | human => "boolean", | ||||||||||||||||||||
| 4407 | refresh => "enum", | ||||||||||||||||||||
| 4408 | }, | ||||||||||||||||||||
| 4409 | }, | ||||||||||||||||||||
| 4410 | |||||||||||||||||||||
| 4411 | 'security.put_role' => { | ||||||||||||||||||||
| 4412 | body => { required => 1 }, | ||||||||||||||||||||
| 4413 | doc => "security-api-put-role", | ||||||||||||||||||||
| 4414 | method => "PUT", | ||||||||||||||||||||
| 4415 | parts => { name => { required => 1 } }, | ||||||||||||||||||||
| 4416 | paths => [ [ { name => 2 }, "_security", "role", "{name}" ] ], | ||||||||||||||||||||
| 4417 | qs => { | ||||||||||||||||||||
| 4418 | error_trace => "boolean", | ||||||||||||||||||||
| 4419 | filter_path => "list", | ||||||||||||||||||||
| 4420 | human => "boolean", | ||||||||||||||||||||
| 4421 | refresh => "enum", | ||||||||||||||||||||
| 4422 | }, | ||||||||||||||||||||
| 4423 | }, | ||||||||||||||||||||
| 4424 | |||||||||||||||||||||
| 4425 | 'security.put_role_mapping' => { | ||||||||||||||||||||
| 4426 | body => { required => 1 }, | ||||||||||||||||||||
| 4427 | doc => "security-api-put-role-mapping", | ||||||||||||||||||||
| 4428 | method => "PUT", | ||||||||||||||||||||
| 4429 | parts => { name => { required => 1 } }, | ||||||||||||||||||||
| 4430 | paths => [ [ { name => 2 }, "_security", "role_mapping", "{name}" ] ], | ||||||||||||||||||||
| 4431 | qs => { | ||||||||||||||||||||
| 4432 | error_trace => "boolean", | ||||||||||||||||||||
| 4433 | filter_path => "list", | ||||||||||||||||||||
| 4434 | human => "boolean", | ||||||||||||||||||||
| 4435 | refresh => "enum", | ||||||||||||||||||||
| 4436 | }, | ||||||||||||||||||||
| 4437 | }, | ||||||||||||||||||||
| 4438 | |||||||||||||||||||||
| 4439 | 'security.put_user' => { | ||||||||||||||||||||
| 4440 | body => { required => 1 }, | ||||||||||||||||||||
| 4441 | doc => "security-api-put-user", | ||||||||||||||||||||
| 4442 | method => "PUT", | ||||||||||||||||||||
| 4443 | parts => { username => { required => 1 } }, | ||||||||||||||||||||
| 4444 | paths => [ [ { username => 2 }, "_security", "user", "{username}" ] ], | ||||||||||||||||||||
| 4445 | qs => { | ||||||||||||||||||||
| 4446 | error_trace => "boolean", | ||||||||||||||||||||
| 4447 | filter_path => "list", | ||||||||||||||||||||
| 4448 | human => "boolean", | ||||||||||||||||||||
| 4449 | refresh => "enum", | ||||||||||||||||||||
| 4450 | }, | ||||||||||||||||||||
| 4451 | }, | ||||||||||||||||||||
| 4452 | |||||||||||||||||||||
| 4453 | 'snapshot.create' => { | ||||||||||||||||||||
| 4454 | body => {}, | ||||||||||||||||||||
| 4455 | doc => "modules-snapshots", | ||||||||||||||||||||
| 4456 | method => "PUT", | ||||||||||||||||||||
| 4457 | parts => { | ||||||||||||||||||||
| 4458 | repository => { required => 1 }, | ||||||||||||||||||||
| 4459 | snapshot => { required => 1 } | ||||||||||||||||||||
| 4460 | }, | ||||||||||||||||||||
| 4461 | paths => [ | ||||||||||||||||||||
| 4462 | [ { repository => 1, snapshot => 2 }, "_snapshot", | ||||||||||||||||||||
| 4463 | "{repository}", "{snapshot}", | ||||||||||||||||||||
| 4464 | ], | ||||||||||||||||||||
| 4465 | ], | ||||||||||||||||||||
| 4466 | qs => { | ||||||||||||||||||||
| 4467 | error_trace => "boolean", | ||||||||||||||||||||
| 4468 | filter_path => "list", | ||||||||||||||||||||
| 4469 | human => "boolean", | ||||||||||||||||||||
| 4470 | master_timeout => "time", | ||||||||||||||||||||
| 4471 | wait_for_completion => "boolean", | ||||||||||||||||||||
| 4472 | }, | ||||||||||||||||||||
| 4473 | }, | ||||||||||||||||||||
| 4474 | |||||||||||||||||||||
| 4475 | 'snapshot.create_repository' => { | ||||||||||||||||||||
| 4476 | body => { required => 1 }, | ||||||||||||||||||||
| 4477 | doc => "modules-snapshots", | ||||||||||||||||||||
| 4478 | method => "PUT", | ||||||||||||||||||||
| 4479 | parts => { repository => { required => 1 } }, | ||||||||||||||||||||
| 4480 | paths => [ [ { repository => 1 }, "_snapshot", "{repository}" ] ], | ||||||||||||||||||||
| 4481 | qs => { | ||||||||||||||||||||
| 4482 | error_trace => "boolean", | ||||||||||||||||||||
| 4483 | filter_path => "list", | ||||||||||||||||||||
| 4484 | human => "boolean", | ||||||||||||||||||||
| 4485 | master_timeout => "time", | ||||||||||||||||||||
| 4486 | timeout => "time", | ||||||||||||||||||||
| 4487 | verify => "boolean", | ||||||||||||||||||||
| 4488 | }, | ||||||||||||||||||||
| 4489 | }, | ||||||||||||||||||||
| 4490 | |||||||||||||||||||||
| 4491 | 'snapshot.delete' => { | ||||||||||||||||||||
| 4492 | doc => "modules-snapshots", | ||||||||||||||||||||
| 4493 | method => "DELETE", | ||||||||||||||||||||
| 4494 | parts => { | ||||||||||||||||||||
| 4495 | repository => { required => 1 }, | ||||||||||||||||||||
| 4496 | snapshot => { required => 1 } | ||||||||||||||||||||
| 4497 | }, | ||||||||||||||||||||
| 4498 | paths => [ | ||||||||||||||||||||
| 4499 | [ { repository => 1, snapshot => 2 }, "_snapshot", | ||||||||||||||||||||
| 4500 | "{repository}", "{snapshot}", | ||||||||||||||||||||
| 4501 | ], | ||||||||||||||||||||
| 4502 | ], | ||||||||||||||||||||
| 4503 | qs => { | ||||||||||||||||||||
| 4504 | error_trace => "boolean", | ||||||||||||||||||||
| 4505 | filter_path => "list", | ||||||||||||||||||||
| 4506 | human => "boolean", | ||||||||||||||||||||
| 4507 | master_timeout => "time", | ||||||||||||||||||||
| 4508 | }, | ||||||||||||||||||||
| 4509 | }, | ||||||||||||||||||||
| 4510 | |||||||||||||||||||||
| 4511 | 'snapshot.delete_repository' => { | ||||||||||||||||||||
| 4512 | doc => "modules-snapshots", | ||||||||||||||||||||
| 4513 | method => "DELETE", | ||||||||||||||||||||
| 4514 | parts => { repository => { multi => 1, required => 1 } }, | ||||||||||||||||||||
| 4515 | paths => [ [ { repository => 1 }, "_snapshot", "{repository}" ] ], | ||||||||||||||||||||
| 4516 | qs => { | ||||||||||||||||||||
| 4517 | error_trace => "boolean", | ||||||||||||||||||||
| 4518 | filter_path => "list", | ||||||||||||||||||||
| 4519 | human => "boolean", | ||||||||||||||||||||
| 4520 | master_timeout => "time", | ||||||||||||||||||||
| 4521 | timeout => "time", | ||||||||||||||||||||
| 4522 | }, | ||||||||||||||||||||
| 4523 | }, | ||||||||||||||||||||
| 4524 | |||||||||||||||||||||
| 4525 | 'snapshot.get' => { | ||||||||||||||||||||
| 4526 | doc => "modules-snapshots", | ||||||||||||||||||||
| 4527 | parts => { | ||||||||||||||||||||
| 4528 | repository => { required => 1 }, | ||||||||||||||||||||
| 4529 | snapshot => { multi => 1, required => 1 }, | ||||||||||||||||||||
| 4530 | }, | ||||||||||||||||||||
| 4531 | paths => [ | ||||||||||||||||||||
| 4532 | [ { repository => 1, snapshot => 2 }, "_snapshot", | ||||||||||||||||||||
| 4533 | "{repository}", "{snapshot}", | ||||||||||||||||||||
| 4534 | ], | ||||||||||||||||||||
| 4535 | ], | ||||||||||||||||||||
| 4536 | qs => { | ||||||||||||||||||||
| 4537 | error_trace => "boolean", | ||||||||||||||||||||
| 4538 | filter_path => "list", | ||||||||||||||||||||
| 4539 | human => "boolean", | ||||||||||||||||||||
| 4540 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 4541 | master_timeout => "time", | ||||||||||||||||||||
| 4542 | verbose => "boolean", | ||||||||||||||||||||
| 4543 | }, | ||||||||||||||||||||
| 4544 | }, | ||||||||||||||||||||
| 4545 | |||||||||||||||||||||
| 4546 | 'snapshot.get_repository' => { | ||||||||||||||||||||
| 4547 | doc => "modules-snapshots", | ||||||||||||||||||||
| 4548 | parts => { repository => { multi => 1 } }, | ||||||||||||||||||||
| 4549 | paths => [ | ||||||||||||||||||||
| 4550 | [ { repository => 1 }, "_snapshot", "{repository}" ], | ||||||||||||||||||||
| 4551 | [ {}, "_snapshot" ], | ||||||||||||||||||||
| 4552 | ], | ||||||||||||||||||||
| 4553 | qs => { | ||||||||||||||||||||
| 4554 | error_trace => "boolean", | ||||||||||||||||||||
| 4555 | filter_path => "list", | ||||||||||||||||||||
| 4556 | human => "boolean", | ||||||||||||||||||||
| 4557 | local => "boolean", | ||||||||||||||||||||
| 4558 | master_timeout => "time", | ||||||||||||||||||||
| 4559 | }, | ||||||||||||||||||||
| 4560 | }, | ||||||||||||||||||||
| 4561 | |||||||||||||||||||||
| 4562 | 'snapshot.restore' => { | ||||||||||||||||||||
| 4563 | body => {}, | ||||||||||||||||||||
| 4564 | doc => "modules-snapshots", | ||||||||||||||||||||
| 4565 | method => "POST", | ||||||||||||||||||||
| 4566 | parts => { | ||||||||||||||||||||
| 4567 | repository => { required => 1 }, | ||||||||||||||||||||
| 4568 | snapshot => { required => 1 } | ||||||||||||||||||||
| 4569 | }, | ||||||||||||||||||||
| 4570 | paths => [ | ||||||||||||||||||||
| 4571 | [ { repository => 1, snapshot => 2 }, "_snapshot", | ||||||||||||||||||||
| 4572 | "{repository}", "{snapshot}", | ||||||||||||||||||||
| 4573 | "_restore", | ||||||||||||||||||||
| 4574 | ], | ||||||||||||||||||||
| 4575 | ], | ||||||||||||||||||||
| 4576 | qs => { | ||||||||||||||||||||
| 4577 | error_trace => "boolean", | ||||||||||||||||||||
| 4578 | filter_path => "list", | ||||||||||||||||||||
| 4579 | human => "boolean", | ||||||||||||||||||||
| 4580 | master_timeout => "time", | ||||||||||||||||||||
| 4581 | wait_for_completion => "boolean", | ||||||||||||||||||||
| 4582 | }, | ||||||||||||||||||||
| 4583 | }, | ||||||||||||||||||||
| 4584 | |||||||||||||||||||||
| 4585 | 'snapshot.status' => { | ||||||||||||||||||||
| 4586 | doc => "modules-snapshots", | ||||||||||||||||||||
| 4587 | parts => { repository => {}, snapshot => { multi => 1 } }, | ||||||||||||||||||||
| 4588 | paths => [ | ||||||||||||||||||||
| 4589 | [ { repository => 1, snapshot => 2 }, "_snapshot", | ||||||||||||||||||||
| 4590 | "{repository}", "{snapshot}", | ||||||||||||||||||||
| 4591 | "_status", | ||||||||||||||||||||
| 4592 | ], | ||||||||||||||||||||
| 4593 | [ { repository => 1 }, "_snapshot", "{repository}", "_status" ], | ||||||||||||||||||||
| 4594 | [ {}, "_snapshot", "_status" ], | ||||||||||||||||||||
| 4595 | ], | ||||||||||||||||||||
| 4596 | qs => { | ||||||||||||||||||||
| 4597 | error_trace => "boolean", | ||||||||||||||||||||
| 4598 | filter_path => "list", | ||||||||||||||||||||
| 4599 | human => "boolean", | ||||||||||||||||||||
| 4600 | ignore_unavailable => "boolean", | ||||||||||||||||||||
| 4601 | master_timeout => "time", | ||||||||||||||||||||
| 4602 | }, | ||||||||||||||||||||
| 4603 | }, | ||||||||||||||||||||
| 4604 | |||||||||||||||||||||
| 4605 | 'snapshot.verify_repository' => { | ||||||||||||||||||||
| 4606 | doc => "modules-snapshots", | ||||||||||||||||||||
| 4607 | method => "POST", | ||||||||||||||||||||
| 4608 | parts => { repository => { required => 1 } }, | ||||||||||||||||||||
| 4609 | paths => [ | ||||||||||||||||||||
| 4610 | [ { repository => 1 }, "_snapshot", "{repository}", "_verify" ], | ||||||||||||||||||||
| 4611 | ], | ||||||||||||||||||||
| 4612 | qs => { | ||||||||||||||||||||
| 4613 | error_trace => "boolean", | ||||||||||||||||||||
| 4614 | filter_path => "list", | ||||||||||||||||||||
| 4615 | human => "boolean", | ||||||||||||||||||||
| 4616 | master_timeout => "time", | ||||||||||||||||||||
| 4617 | timeout => "time", | ||||||||||||||||||||
| 4618 | }, | ||||||||||||||||||||
| 4619 | }, | ||||||||||||||||||||
| 4620 | |||||||||||||||||||||
| 4621 | 'sql.clear_cursor' => { | ||||||||||||||||||||
| 4622 | body => { required => 1 }, | ||||||||||||||||||||
| 4623 | doc => "", | ||||||||||||||||||||
| 4624 | method => "POST", | ||||||||||||||||||||
| 4625 | parts => {}, | ||||||||||||||||||||
| 4626 | paths => [ [ {}, "_sql", "close" ] ], | ||||||||||||||||||||
| 4627 | qs => { | ||||||||||||||||||||
| 4628 | error_trace => "boolean", | ||||||||||||||||||||
| 4629 | filter_path => "list", | ||||||||||||||||||||
| 4630 | human => "boolean" | ||||||||||||||||||||
| 4631 | }, | ||||||||||||||||||||
| 4632 | }, | ||||||||||||||||||||
| 4633 | |||||||||||||||||||||
| 4634 | 'sql.query' => { | ||||||||||||||||||||
| 4635 | body => { required => 1 }, | ||||||||||||||||||||
| 4636 | doc => "", | ||||||||||||||||||||
| 4637 | method => "POST", | ||||||||||||||||||||
| 4638 | parts => {}, | ||||||||||||||||||||
| 4639 | paths => [ [ {}, "_sql" ] ], | ||||||||||||||||||||
| 4640 | qs => { | ||||||||||||||||||||
| 4641 | error_trace => "boolean", | ||||||||||||||||||||
| 4642 | filter_path => "list", | ||||||||||||||||||||
| 4643 | format => "string", | ||||||||||||||||||||
| 4644 | human => "boolean", | ||||||||||||||||||||
| 4645 | }, | ||||||||||||||||||||
| 4646 | }, | ||||||||||||||||||||
| 4647 | |||||||||||||||||||||
| 4648 | 'sql.translate' => { | ||||||||||||||||||||
| 4649 | body => { required => 1 }, | ||||||||||||||||||||
| 4650 | doc => "", | ||||||||||||||||||||
| 4651 | method => "POST", | ||||||||||||||||||||
| 4652 | parts => {}, | ||||||||||||||||||||
| 4653 | paths => [ [ {}, "_sql", "translate" ] ], | ||||||||||||||||||||
| 4654 | qs => { | ||||||||||||||||||||
| 4655 | error_trace => "boolean", | ||||||||||||||||||||
| 4656 | filter_path => "list", | ||||||||||||||||||||
| 4657 | human => "boolean" | ||||||||||||||||||||
| 4658 | }, | ||||||||||||||||||||
| 4659 | }, | ||||||||||||||||||||
| 4660 | |||||||||||||||||||||
| 4661 | 'ssl.certificates' => { | ||||||||||||||||||||
| 4662 | doc => "security-api-ssl", | ||||||||||||||||||||
| 4663 | parts => {}, | ||||||||||||||||||||
| 4664 | paths => [ [ {}, "_ssl", "certificates" ] ], | ||||||||||||||||||||
| 4665 | qs => { | ||||||||||||||||||||
| 4666 | error_trace => "boolean", | ||||||||||||||||||||
| 4667 | filter_path => "list", | ||||||||||||||||||||
| 4668 | human => "boolean" | ||||||||||||||||||||
| 4669 | }, | ||||||||||||||||||||
| 4670 | }, | ||||||||||||||||||||
| 4671 | |||||||||||||||||||||
| 4672 | 'tasks.cancel' => { | ||||||||||||||||||||
| 4673 | doc => "tasks", | ||||||||||||||||||||
| 4674 | method => "POST", | ||||||||||||||||||||
| 4675 | parts => { task_id => {} }, | ||||||||||||||||||||
| 4676 | paths => [ | ||||||||||||||||||||
| 4677 | [ { task_id => 1 }, "_tasks", "{task_id}", "_cancel" ], | ||||||||||||||||||||
| 4678 | [ {}, "_tasks", "_cancel" ], | ||||||||||||||||||||
| 4679 | ], | ||||||||||||||||||||
| 4680 | qs => { | ||||||||||||||||||||
| 4681 | actions => "list", | ||||||||||||||||||||
| 4682 | error_trace => "boolean", | ||||||||||||||||||||
| 4683 | filter_path => "list", | ||||||||||||||||||||
| 4684 | human => "boolean", | ||||||||||||||||||||
| 4685 | nodes => "list", | ||||||||||||||||||||
| 4686 | parent_task_id => "string", | ||||||||||||||||||||
| 4687 | }, | ||||||||||||||||||||
| 4688 | }, | ||||||||||||||||||||
| 4689 | |||||||||||||||||||||
| 4690 | 'tasks.get' => { | ||||||||||||||||||||
| 4691 | doc => "tasks", | ||||||||||||||||||||
| 4692 | parts => { task_id => { required => 1 } }, | ||||||||||||||||||||
| 4693 | paths => [ [ { task_id => 1 }, "_tasks", "{task_id}" ] ], | ||||||||||||||||||||
| 4694 | qs => { | ||||||||||||||||||||
| 4695 | error_trace => "boolean", | ||||||||||||||||||||
| 4696 | filter_path => "list", | ||||||||||||||||||||
| 4697 | human => "boolean", | ||||||||||||||||||||
| 4698 | timeout => "time", | ||||||||||||||||||||
| 4699 | wait_for_completion => "boolean", | ||||||||||||||||||||
| 4700 | }, | ||||||||||||||||||||
| 4701 | }, | ||||||||||||||||||||
| 4702 | |||||||||||||||||||||
| 4703 | 'tasks.list' => { | ||||||||||||||||||||
| 4704 | doc => "tasks", | ||||||||||||||||||||
| 4705 | parts => {}, | ||||||||||||||||||||
| 4706 | paths => [ [ {}, "_tasks" ] ], | ||||||||||||||||||||
| 4707 | qs => { | ||||||||||||||||||||
| 4708 | actions => "list", | ||||||||||||||||||||
| 4709 | detailed => "boolean", | ||||||||||||||||||||
| 4710 | error_trace => "boolean", | ||||||||||||||||||||
| 4711 | filter_path => "list", | ||||||||||||||||||||
| 4712 | group_by => "enum", | ||||||||||||||||||||
| 4713 | human => "boolean", | ||||||||||||||||||||
| 4714 | nodes => "list", | ||||||||||||||||||||
| 4715 | parent_task_id => "string", | ||||||||||||||||||||
| 4716 | timeout => "time", | ||||||||||||||||||||
| 4717 | wait_for_completion => "boolean", | ||||||||||||||||||||
| 4718 | }, | ||||||||||||||||||||
| 4719 | }, | ||||||||||||||||||||
| 4720 | |||||||||||||||||||||
| 4721 | 'watcher.ack_watch' => { | ||||||||||||||||||||
| 4722 | doc => "watcher-api-ack-watch", | ||||||||||||||||||||
| 4723 | method => "PUT", | ||||||||||||||||||||
| 4724 | parts => | ||||||||||||||||||||
| 4725 | { action_id => { multi => 1 }, watch_id => { required => 1 } }, | ||||||||||||||||||||
| 4726 | paths => [ | ||||||||||||||||||||
| 4727 | [ { action_id => 4, watch_id => 2 }, "_watcher", | ||||||||||||||||||||
| 4728 | "watch", "{watch_id}", | ||||||||||||||||||||
| 4729 | "_ack", "{action_id}", | ||||||||||||||||||||
| 4730 | ], | ||||||||||||||||||||
| 4731 | [ { watch_id => 2 }, "_watcher", "watch", "{watch_id}", "_ack" ], | ||||||||||||||||||||
| 4732 | ], | ||||||||||||||||||||
| 4733 | qs => { | ||||||||||||||||||||
| 4734 | error_trace => "boolean", | ||||||||||||||||||||
| 4735 | filter_path => "list", | ||||||||||||||||||||
| 4736 | human => "boolean" | ||||||||||||||||||||
| 4737 | }, | ||||||||||||||||||||
| 4738 | }, | ||||||||||||||||||||
| 4739 | |||||||||||||||||||||
| 4740 | 'watcher.activate_watch' => { | ||||||||||||||||||||
| 4741 | doc => "watcher-api-activate-watch", | ||||||||||||||||||||
| 4742 | method => "PUT", | ||||||||||||||||||||
| 4743 | parts => { watch_id => { required => 1 } }, | ||||||||||||||||||||
| 4744 | paths => [ | ||||||||||||||||||||
| 4745 | [ { watch_id => 2 }, "_watcher", | ||||||||||||||||||||
| 4746 | "watch", "{watch_id}", | ||||||||||||||||||||
| 4747 | "_activate", | ||||||||||||||||||||
| 4748 | ], | ||||||||||||||||||||
| 4749 | ], | ||||||||||||||||||||
| 4750 | qs => { | ||||||||||||||||||||
| 4751 | error_trace => "boolean", | ||||||||||||||||||||
| 4752 | filter_path => "list", | ||||||||||||||||||||
| 4753 | human => "boolean" | ||||||||||||||||||||
| 4754 | }, | ||||||||||||||||||||
| 4755 | }, | ||||||||||||||||||||
| 4756 | |||||||||||||||||||||
| 4757 | 'watcher.deactivate_watch' => { | ||||||||||||||||||||
| 4758 | doc => "watcher-api-deactivate-watch", | ||||||||||||||||||||
| 4759 | method => "PUT", | ||||||||||||||||||||
| 4760 | parts => { watch_id => { required => 1 } }, | ||||||||||||||||||||
| 4761 | paths => [ | ||||||||||||||||||||
| 4762 | [ { watch_id => 2 }, "_watcher", | ||||||||||||||||||||
| 4763 | "watch", "{watch_id}", | ||||||||||||||||||||
| 4764 | "_deactivate", | ||||||||||||||||||||
| 4765 | ], | ||||||||||||||||||||
| 4766 | ], | ||||||||||||||||||||
| 4767 | qs => { | ||||||||||||||||||||
| 4768 | error_trace => "boolean", | ||||||||||||||||||||
| 4769 | filter_path => "list", | ||||||||||||||||||||
| 4770 | human => "boolean" | ||||||||||||||||||||
| 4771 | }, | ||||||||||||||||||||
| 4772 | }, | ||||||||||||||||||||
| 4773 | |||||||||||||||||||||
| 4774 | 'watcher.delete_watch' => { | ||||||||||||||||||||
| 4775 | doc => "watcher-api-delete-watch", | ||||||||||||||||||||
| 4776 | method => "DELETE", | ||||||||||||||||||||
| 4777 | parts => { id => { required => 1 } }, | ||||||||||||||||||||
| 4778 | paths => [ [ { id => 2 }, "_watcher", "watch", "{id}" ] ], | ||||||||||||||||||||
| 4779 | qs => { | ||||||||||||||||||||
| 4780 | error_trace => "boolean", | ||||||||||||||||||||
| 4781 | filter_path => "list", | ||||||||||||||||||||
| 4782 | human => "boolean" | ||||||||||||||||||||
| 4783 | }, | ||||||||||||||||||||
| 4784 | }, | ||||||||||||||||||||
| 4785 | |||||||||||||||||||||
| 4786 | 'watcher.execute_watch' => { | ||||||||||||||||||||
| 4787 | body => {}, | ||||||||||||||||||||
| 4788 | doc => "watcher-api-execute-watch", | ||||||||||||||||||||
| 4789 | method => "PUT", | ||||||||||||||||||||
| 4790 | parts => { id => {} }, | ||||||||||||||||||||
| 4791 | paths => [ | ||||||||||||||||||||
| 4792 | [ { id => 2 }, "_watcher", "watch", "{id}", "_execute" ], | ||||||||||||||||||||
| 4793 | [ {}, "_watcher", "watch", "_execute" ], | ||||||||||||||||||||
| 4794 | ], | ||||||||||||||||||||
| 4795 | qs => { | ||||||||||||||||||||
| 4796 | debug => "boolean", | ||||||||||||||||||||
| 4797 | error_trace => "boolean", | ||||||||||||||||||||
| 4798 | filter_path => "list", | ||||||||||||||||||||
| 4799 | human => "boolean", | ||||||||||||||||||||
| 4800 | }, | ||||||||||||||||||||
| 4801 | }, | ||||||||||||||||||||
| 4802 | |||||||||||||||||||||
| 4803 | 'watcher.get_watch' => { | ||||||||||||||||||||
| 4804 | doc => "watcher-api-get-watch", | ||||||||||||||||||||
| 4805 | parts => { id => { required => 1 } }, | ||||||||||||||||||||
| 4806 | paths => [ [ { id => 2 }, "_watcher", "watch", "{id}" ] ], | ||||||||||||||||||||
| 4807 | qs => { | ||||||||||||||||||||
| 4808 | error_trace => "boolean", | ||||||||||||||||||||
| 4809 | filter_path => "list", | ||||||||||||||||||||
| 4810 | human => "boolean" | ||||||||||||||||||||
| 4811 | }, | ||||||||||||||||||||
| 4812 | }, | ||||||||||||||||||||
| 4813 | |||||||||||||||||||||
| 4814 | 'watcher.put_watch' => { | ||||||||||||||||||||
| 4815 | body => {}, | ||||||||||||||||||||
| 4816 | doc => "watcher-api-put-watch", | ||||||||||||||||||||
| 4817 | method => "PUT", | ||||||||||||||||||||
| 4818 | parts => { id => { required => 1 } }, | ||||||||||||||||||||
| 4819 | paths => [ [ { id => 2 }, "_watcher", "watch", "{id}" ] ], | ||||||||||||||||||||
| 4820 | qs => { | ||||||||||||||||||||
| 4821 | active => "boolean", | ||||||||||||||||||||
| 4822 | error_trace => "boolean", | ||||||||||||||||||||
| 4823 | filter_path => "list", | ||||||||||||||||||||
| 4824 | human => "boolean", | ||||||||||||||||||||
| 4825 | if_primary_term => "number", | ||||||||||||||||||||
| 4826 | if_seq_no => "number", | ||||||||||||||||||||
| 4827 | version => "number", | ||||||||||||||||||||
| 4828 | }, | ||||||||||||||||||||
| 4829 | }, | ||||||||||||||||||||
| 4830 | |||||||||||||||||||||
| 4831 | 'watcher.start' => { | ||||||||||||||||||||
| 4832 | doc => "watcher-api-start", | ||||||||||||||||||||
| 4833 | method => "POST", | ||||||||||||||||||||
| 4834 | parts => {}, | ||||||||||||||||||||
| 4835 | paths => [ [ {}, "_watcher", "_start" ] ], | ||||||||||||||||||||
| 4836 | qs => { | ||||||||||||||||||||
| 4837 | error_trace => "boolean", | ||||||||||||||||||||
| 4838 | filter_path => "list", | ||||||||||||||||||||
| 4839 | human => "boolean" | ||||||||||||||||||||
| 4840 | }, | ||||||||||||||||||||
| 4841 | }, | ||||||||||||||||||||
| 4842 | |||||||||||||||||||||
| 4843 | 'watcher.stats' => { | ||||||||||||||||||||
| 4844 | doc => "watcher-api-stats", | ||||||||||||||||||||
| 4845 | parts => { metric => { multi => 1 } }, | ||||||||||||||||||||
| 4846 | paths => [ | ||||||||||||||||||||
| 4847 | [ { metric => 2 }, "_watcher", "stats", "{metric}" ], | ||||||||||||||||||||
| 4848 | [ {}, "_watcher", "stats" ], | ||||||||||||||||||||
| 4849 | ], | ||||||||||||||||||||
| 4850 | qs => { | ||||||||||||||||||||
| 4851 | emit_stacktraces => "boolean", | ||||||||||||||||||||
| 4852 | error_trace => "boolean", | ||||||||||||||||||||
| 4853 | filter_path => "list", | ||||||||||||||||||||
| 4854 | human => "boolean", | ||||||||||||||||||||
| 4855 | }, | ||||||||||||||||||||
| 4856 | }, | ||||||||||||||||||||
| 4857 | |||||||||||||||||||||
| 4858 | 'watcher.stop' => { | ||||||||||||||||||||
| 4859 | doc => "watcher-api-stop", | ||||||||||||||||||||
| 4860 | method => "POST", | ||||||||||||||||||||
| 4861 | parts => {}, | ||||||||||||||||||||
| 4862 | paths => [ [ {}, "_watcher", "_stop" ] ], | ||||||||||||||||||||
| 4863 | qs => { | ||||||||||||||||||||
| 4864 | error_trace => "boolean", | ||||||||||||||||||||
| 4865 | filter_path => "list", | ||||||||||||||||||||
| 4866 | human => "boolean" | ||||||||||||||||||||
| 4867 | }, | ||||||||||||||||||||
| 4868 | }, | ||||||||||||||||||||
| 4869 | |||||||||||||||||||||
| 4870 | 'xpack.info' => { | ||||||||||||||||||||
| 4871 | doc => "info-api", | ||||||||||||||||||||
| 4872 | parts => {}, | ||||||||||||||||||||
| 4873 | paths => [ [ {}, "_xpack" ] ], | ||||||||||||||||||||
| 4874 | qs => { | ||||||||||||||||||||
| 4875 | categories => "list", | ||||||||||||||||||||
| 4876 | error_trace => "boolean", | ||||||||||||||||||||
| 4877 | filter_path => "list", | ||||||||||||||||||||
| 4878 | human => "boolean", | ||||||||||||||||||||
| 4879 | }, | ||||||||||||||||||||
| 4880 | }, | ||||||||||||||||||||
| 4881 | |||||||||||||||||||||
| 4882 | 'xpack.usage' => { | ||||||||||||||||||||
| 4883 | doc => "", | ||||||||||||||||||||
| 4884 | parts => {}, | ||||||||||||||||||||
| 4885 | paths => [ [ {}, "_xpack", "usage" ] ], | ||||||||||||||||||||
| 4886 | qs => { | ||||||||||||||||||||
| 4887 | error_trace => "boolean", | ||||||||||||||||||||
| 4888 | filter_path => "list", | ||||||||||||||||||||
| 4889 | human => "boolean", | ||||||||||||||||||||
| 4890 | master_timeout => "time", | ||||||||||||||||||||
| 4891 | }, | ||||||||||||||||||||
| 4892 | }, | ||||||||||||||||||||
| 4893 | |||||||||||||||||||||
| 4894 | #=== AUTOGEN - END === | ||||||||||||||||||||
| 4895 | |||||||||||||||||||||
| 4896 | ); | ||||||||||||||||||||
| 4897 | |||||||||||||||||||||
| 4898 | 55 | __PACKAGE__->_qs_init( \%API ); | |||||||||||||||||||
| 4899 | 55 | 1; | |||||||||||||||||||
| 4900 | |||||||||||||||||||||
| 4901 | =pod | ||||||||||||||||||||
| 4902 | |||||||||||||||||||||
| 4903 | =encoding UTF-8 | ||||||||||||||||||||
| 4904 | |||||||||||||||||||||
| 4905 | =head1 NAME | ||||||||||||||||||||
| 4906 | |||||||||||||||||||||
| 4907 | Search::Elasticsearch::Client::7_0::Role::API - This class contains the spec for the Elasticsearch APIs | ||||||||||||||||||||
| 4908 | |||||||||||||||||||||
| 4909 | =head1 VERSION | ||||||||||||||||||||
| 4910 | |||||||||||||||||||||
| 4911 | version 7.30_1 | ||||||||||||||||||||
| 4912 | |||||||||||||||||||||
| 4913 | =head1 DESCRIPTION | ||||||||||||||||||||
| 4914 | |||||||||||||||||||||
| 4915 | All of the Elasticsearch APIs are defined in this role. The example given below | ||||||||||||||||||||
| 4916 | is the definition for the L<Search::Elasticsearch::Client::7_0::Direct/index()> method: | ||||||||||||||||||||
| 4917 | |||||||||||||||||||||
| 4918 | 'index' => { | ||||||||||||||||||||
| 4919 | body => { required => 1 }, | ||||||||||||||||||||
| 4920 | doc => "docs-index_", | ||||||||||||||||||||
| 4921 | method => "POST", | ||||||||||||||||||||
| 4922 | parts => { | ||||||||||||||||||||
| 4923 | id => {}, | ||||||||||||||||||||
| 4924 | index => { required => 1 }, | ||||||||||||||||||||
| 4925 | type => { required => 1 } | ||||||||||||||||||||
| 4926 | }, | ||||||||||||||||||||
| 4927 | paths => [ | ||||||||||||||||||||
| 4928 | [ { id => 2, index => 0, type => 1 }, "{index}", | ||||||||||||||||||||
| 4929 | "{type}", "{id}" | ||||||||||||||||||||
| 4930 | ], | ||||||||||||||||||||
| 4931 | [ { index => 0, type => 1 }, "{index}", "{type}" ], | ||||||||||||||||||||
| 4932 | ], | ||||||||||||||||||||
| 4933 | qs => { | ||||||||||||||||||||
| 4934 | filter_path => "list", | ||||||||||||||||||||
| 4935 | op_type => "enum", | ||||||||||||||||||||
| 4936 | parent => "string", | ||||||||||||||||||||
| 4937 | pipeline => "string", | ||||||||||||||||||||
| 4938 | refresh => "enum", | ||||||||||||||||||||
| 4939 | routing => "string", | ||||||||||||||||||||
| 4940 | timeout => "time", | ||||||||||||||||||||
| 4941 | timestamp => "time", | ||||||||||||||||||||
| 4942 | ttl => "time", | ||||||||||||||||||||
| 4943 | version => "number", | ||||||||||||||||||||
| 4944 | version_type => "enum", | ||||||||||||||||||||
| 4945 | wait_for_active_shards => "string", | ||||||||||||||||||||
| 4946 | }, | ||||||||||||||||||||
| 4947 | }, | ||||||||||||||||||||
| 4948 | |||||||||||||||||||||
| 4949 | These definitions can be used by different L<Search::Elasticsearch::Role::Client> | ||||||||||||||||||||
| 4950 | implementations to provide distinct user interfaces. | ||||||||||||||||||||
| 4951 | |||||||||||||||||||||
| 4952 | =head1 METHODS | ||||||||||||||||||||
| 4953 | |||||||||||||||||||||
| 4954 | =head2 C<api()> | ||||||||||||||||||||
| 4955 | |||||||||||||||||||||
| 4956 | $defn = $api->api($name); | ||||||||||||||||||||
| 4957 | |||||||||||||||||||||
| 4958 | The only method in this class is the C<api()> method which takes the name | ||||||||||||||||||||
| 4959 | of the I<action> and returns its definition. Actions in the | ||||||||||||||||||||
| 4960 | C<indices> or C<cluster> namespace use the namespace as a prefix, eg: | ||||||||||||||||||||
| 4961 | |||||||||||||||||||||
| 4962 | $defn = $e->api('indices.create'); | ||||||||||||||||||||
| 4963 | $defn = $e->api('cluster.node_stats'); | ||||||||||||||||||||
| 4964 | |||||||||||||||||||||
| 4965 | =head1 SEE ALSO | ||||||||||||||||||||
| 4966 | |||||||||||||||||||||
| 4967 | =over | ||||||||||||||||||||
| 4968 | |||||||||||||||||||||
| 4969 | =item * | ||||||||||||||||||||
| 4970 | |||||||||||||||||||||
| 4971 | L<Search::Elasticsearch::Role::API> | ||||||||||||||||||||
| 4972 | |||||||||||||||||||||
| 4973 | =item * | ||||||||||||||||||||
| 4974 | |||||||||||||||||||||
| 4975 | L<Search::Elasticsearch::Client::7_0::Direct> | ||||||||||||||||||||
| 4976 | |||||||||||||||||||||
| 4977 | =back | ||||||||||||||||||||
| 4978 | |||||||||||||||||||||
| 4979 | =head1 AUTHOR | ||||||||||||||||||||
| 4980 | |||||||||||||||||||||
| 4981 | Enrico Zimuel <enrico.zimuel@elastic.co> | ||||||||||||||||||||
| 4982 | |||||||||||||||||||||
| 4983 | =head1 COPYRIGHT AND LICENSE | ||||||||||||||||||||
| 4984 | |||||||||||||||||||||
| 4985 | This software is Copyright (c) 2020 by Elasticsearch BV. | ||||||||||||||||||||
| 4986 | |||||||||||||||||||||
| 4987 | This is free software, licensed under: | ||||||||||||||||||||
| 4988 | |||||||||||||||||||||
| 4989 | The Apache License, Version 2.0, January 2004 | ||||||||||||||||||||
| 4990 | |||||||||||||||||||||
| 4991 | =cut | ||||||||||||||||||||
| 4992 | |||||||||||||||||||||
| 4993 | __END__ | ||||||||||||||||||||