-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use standard format for reload settings API #51560
Merged
williamrandolph
merged 6 commits into
elastic:master
from
williamrandolph:fix-reload-nodes-docs
Feb 3, 2020
Merged
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a90c3a9
Use standard format for reload settings API
williamrandolph d75c3f3
Fix broken links
williamrandolph 64a4883
Reorder examples to correctly check API response
williamrandolph 56ef82d
Note that only certain settings are reloadable
williamrandolph 3fdbf0d
[DOCS] Edits layout
lcawl 8af02b6
[DOCS] Removes unnecessary callouts
lcawl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,31 +4,44 @@ | |
<titleabbrev>Nodes reload secure settings</titleabbrev> | ||
++++ | ||
|
||
|
||
The cluster nodes reload secure settings API is used to re-load the keystore on each node. | ||
|
||
[source,console] | ||
-------------------------------------------------- | ||
POST _nodes/reload_secure_settings | ||
POST _nodes/nodeId1,nodeId2/reload_secure_settings | ||
-------------------------------------------------- | ||
// TEST[setup:node] | ||
// TEST[s/nodeId1,nodeId2/*/] | ||
[[cluster-nodes-reload-secure-settings-api-request]] | ||
==== {api-request-title} | ||
`POST _nodes/reload_secure_settings` + | ||
|
||
`POST _nodes/nodeId1,nodeId2/reload_secure_settings` + | ||
|
||
`POST _nodes/_local/reload_secure_settings` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this can be omitted since it's just another example of a value and it's mentioned in the link from the path parameters section. |
||
|
||
[[cluster-nodes-reload-secure-settings-api-desc]] | ||
==== {api-description-title} | ||
Secure settings are stored in an on-disk keystore. When you have updated | ||
the secure settings in your keystore, you can use this API to reload those | ||
williamrandolph marked this conversation as resolved.
Show resolved
Hide resolved
|
||
settings on each node. You may also selectively target `nodeId1` and | ||
`nodeId2`. The node selection options are detailed <<cluster-nodes,here>>. | ||
|
||
The first command reloads the keystore on each node. The seconds allows | ||
to selectively target `nodeId1` and `nodeId2`. The node selection options are | ||
detailed <<cluster-nodes,here>>. | ||
[[cluster-nodes-reload-secure-settings-path-params]] | ||
==== {api-path-parms-title} | ||
|
||
`<nodes>`:: | ||
(Optional, string) The names of particular nodes in the cluster to target. | ||
May also be `_local` to reload settings on just the local node. | ||
|
||
NOTE: {es} requires consistent secure settings across the cluster nodes, but this consistency is not enforced. | ||
Hence, reloading specific nodes is not standard. It is only justifiable when retrying failed reload operations. | ||
|
||
==== Reload Password Protected Secure Settings | ||
[[cluster-nodes-reload-secure-settings-api-request-body]] | ||
==== {api-request-body-title} | ||
|
||
When the {es} keystore is password protected and not simply obfuscated, the password for the keystore needs | ||
to be provided in the request to reload the secure settings. | ||
Reloading the settings for the whole cluster assumes that all nodes' keystores are protected with the same password | ||
and is only allowed when {ref}/configuring-tls.html#tls-transport[node to node communications are encrypted] | ||
|
||
`reload_secure_settings`:: | ||
(Optional, string) The password for the Elasticsearch keystore. | ||
|
||
[source,js] | ||
-------------------------------------------------- | ||
POST _nodes/reload_secure_settings | ||
|
@@ -54,10 +67,18 @@ POST _nodes/_local/reload_secure_settings | |
|
||
<1> The password that the {es} keystore is encrypted with on the local node. | ||
|
||
[[cluster-nodes-reload-secure-settings-api-example]] | ||
==== {api-examples-title} | ||
|
||
Rest example: | ||
|
||
[float] | ||
[[rest-reload-secure-settings]] | ||
==== REST Reload Secure Settings Response | ||
[source,console] | ||
-------------------------------------------------- | ||
POST _nodes/reload_secure_settings | ||
POST _nodes/nodeId1,nodeId2/reload_secure_settings | ||
-------------------------------------------------- | ||
// TEST[setup:node] | ||
// TEST[s/nodeId1,nodeId2/*/] | ||
|
||
The response contains the `nodes` object, which is a map, keyed by the | ||
node id. Each value has the node `name` and an optional `reload_exception` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should line up with the path parameter section: