-
Notifications
You must be signed in to change notification settings - Fork 108
Expand docs for include_defaults
#5052
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
Merged
DaveCTurner
merged 4 commits into
main
from
2025/07/29/cluster-settings-include-defaults
Aug 7, 2025
Merged
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
8ab13c1
Expand docs for `include_defaults`
DaveCTurner efbd5cd
Merge branch 'main' into 2025/07/29/cluster-settings-include-defaults
DaveCTurner 7097d31
Update specification/cluster/get_settings/ClusterGetSettingsRequest.ts
DaveCTurner a71092e
Merge branch 'main' into 2025/07/29/cluster-settings-include-defaults
DaveCTurner 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 hidden or 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.
I'm having trouble finding a
_nodes/settings
API?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.
Bizarrely it's the
GET /_nodes/{nodeId}
path fromRestNodesInfoAction
, see how we computemetricsOrNodeIds
.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.
Should we say
_nodes/{nodeId}/info
instead??I tracked down a couple of commits that suggest
GET _nodes/settings
actually works as an endpoint: elastic/elasticsearch@f7db7eb (adds the code you mentioned,metricsOrNodeIds
) and elastic/elasticsearch@ad50afb. I can't find any documentation around the API, though. There's technically a testRemoteClusterSecurityRestIT#testNodesInfo
that usesGET _nodes/settings
. I gather thatGET /_nodes/settings
will returnGET /_nodes/_all/settings
I think the _nodes/* API lacks both documentation and testing -- like a user can't look up what
GET /_nodes/settings
does and find an answer. I'm good with committing this as is, but it'd be great to file a JIRA ticket to address testing and docs.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.
GET _nodes/{nodeId}/info
isn't a valid endpoint. Here are the nodes info API docs - particularlyGET /_nodes/{metric}
. We seem to have lost the list of valid metrics, butinfo
isn't one of them.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.
I opened #5094
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.
Ohhh, it's
GET _nodes/{nodeId}/info/{metrics}
-- I didn't have it quite right. Though not in that documentation you linked, anyway... 🤨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.
What a mess :) but yeah
GET _nodes/_all/info/settings
is a longer (but more cohesive) way of getting the same output asGET _nodes/settings