Commit d3894ca
authored
Add convenience API key param to remote reindex (#135949)
This adds a `source.remote.api_key` parameter to the reindex API. This
is equivalent to using `source.remote.headers` with `Authorization`
set to `ApiKey <api_key>`. It is a convenience for the user.
Note on docs changes: The example request using an API key now uses an
`applies-switch` to show both the pre-9.3 and post-9.3 / serverless
versions. There are a few drive-by doc bug-fixes and other improvements to
the docs, most notably:
- Adding some subsections, as suggested by a tech writer.
- Fixing the bug which meant that `<OTHER_HOST_URL>` was previously
not being rendered, because `<` is a control character.
- Repeating the note about using HTTPS for basic auth in the API key
section, as we wouldn't recommend sending API keys over plain HTTP
either.
- A nit, but writing `<OTHER_HOST_URL>:9200` is strange, since we have
a placeholder URL, and the port is part of the URL, so that's fixed.
* Update docs/reference/elasticsearch/rest-apis/reindex-indices.md
Co-authored-by: shainaraskas <[email protected]>
* add cross-reference to SSL settings in docs
* Remove the `When using {{escloud}}` caveat at the start of the API key section, since you can use API keys on pretty much any ES type
---------
Co-authored-by: shainaraskas <[email protected]>
ES-9691 #comment Added `api_key` to reindex API as convenience parameter in #1359491 parent a1f4ac3 commit d3894ca
File tree
4 files changed
+124
-12
lines changed- docs
- changelog
- reference/elasticsearch/rest-apis
- server/src
- main/java/org/elasticsearch/index/reindex
- test/java/org/elasticsearch/index/reindex
4 files changed
+124
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 60 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | | - | |
| 600 | + | |
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
622 | | - | |
623 | | - | |
624 | | - | |
| 622 | + | |
625 | 623 | | |
626 | | - | |
| 624 | + | |
627 | 625 | | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
628 | 636 | | |
629 | 637 | | |
630 | 638 | | |
631 | 639 | | |
632 | 640 | | |
633 | | - | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
634 | 669 | | |
635 | | - | |
| 670 | + | |
636 | 671 | | |
637 | 672 | | |
638 | 673 | | |
| |||
651 | 686 | | |
652 | 687 | | |
653 | 688 | | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
654 | 697 | | |
655 | 698 | | |
656 | | - | |
| 699 | + | |
657 | 700 | | |
658 | 701 | | |
659 | 702 | | |
660 | 703 | | |
661 | 704 | | |
662 | | - | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
663 | 709 | | |
664 | 710 | | |
665 | 711 | | |
| |||
670 | 716 | | |
671 | 717 | | |
672 | 718 | | |
| 719 | + | |
| 720 | + | |
673 | 721 | | |
674 | | - | |
| 722 | + | |
675 | 723 | | |
676 | 724 | | |
677 | 725 | | |
678 | 726 | | |
679 | 727 | | |
680 | 728 | | |
681 | 729 | | |
682 | | - | |
| 730 | + | |
683 | 731 | | |
684 | 732 | | |
685 | 733 | | |
| |||
709 | 757 | | |
710 | 758 | | |
711 | 759 | | |
712 | | - | |
| 760 | + | |
713 | 761 | | |
714 | 762 | | |
715 | 763 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
417 | 418 | | |
418 | 419 | | |
419 | 420 | | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
420 | 426 | | |
421 | 427 | | |
422 | 428 | | |
| |||
493 | 499 | | |
494 | 500 | | |
495 | 501 | | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
496 | 516 | | |
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
328 | 367 | | |
329 | 368 | | |
330 | 369 | | |
| |||
0 commit comments