Skip to content

Commit ab1c60f

Browse files
committed
add missing reload_secure_settings api
1 parent 7ff0cd5 commit ab1c60f

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

elasticsearch/client/nodes.py

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,22 @@ def info(self, node_id=None, metric=None, params=None):
2222
"GET", _make_path("_nodes", node_id, metric), params=params
2323
)
2424

25+
@query_params("timeout")
26+
def reload_secure_settings(self, node_id=None, params=None):
27+
"""
28+
`<https://www.elastic.co/guide/en/elasticsearch/reference/6.x/secure-settings.html#reloadable-secure-settings>`_
29+
30+
:arg node_id: A comma-separated list of node IDs to span the
31+
reload/reinit call. Should stay empty because reloading usually
32+
involves all cluster nodes.
33+
:arg timeout: Explicit operation timeout
34+
"""
35+
return self.transport.perform_request(
36+
"POST",
37+
_make_path("_nodes", node_id, "reload_secure_settings"),
38+
params=params,
39+
)
40+
2541
@query_params(
2642
"completion_fields",
2743
"fielddata_fields",
@@ -71,7 +87,13 @@ def stats(self, node_id=None, metric=None, index_metric=None, params=None):
7187
)
7288

7389
@query_params(
74-
"type", "ignore_idle_threads", "interval", "snapshots", "threads", "timeout"
90+
"doc_type",
91+
"type",
92+
"ignore_idle_threads",
93+
"interval",
94+
"snapshots",
95+
"threads",
96+
"timeout",
7597
)
7698
def hot_threads(self, node_id=None, params=None):
7799
"""
@@ -82,6 +104,8 @@ def hot_threads(self, node_id=None, params=None):
82104
returned information; use `_local` to return information from the
83105
node you're connecting to, leave empty to get information from all
84106
nodes
107+
:arg doc_type: The type to sample (default: cpu), valid choices are:
108+
'cpu', 'wait', 'block'
85109
:arg type: The type to sample (default: cpu), valid choices are:
86110
'cpu', 'wait', 'block'
87111
:arg ignore_idle_threads: Don't show threads that are in known-idle

0 commit comments

Comments
 (0)