File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,15 @@ def get_cluster_alive_nodes(self):
311
311
"""
312
312
return [_ for _ in self .get_cluster_all_nodes () if _ ["alive" ]]
313
313
314
+ def request_current_index_from_node (self , node_id ):
315
+ """
316
+ Request current index from node (the request is processed asynchronously)
317
+ :return:
318
+ """
319
+ base_url = self .resource_url ("cluster/index-snapshot" )
320
+ url = f"{ base_url } /{ node_id } "
321
+ return self .put (url )
322
+
314
323
"""
315
324
Troubleshooting. (Available for DC) It gives the posibility to download support zips.
316
325
Reference: https://confluence.atlassian.com/support/create-a-support-zip-using-the-rest-api-in-data-center-applications-952054641.html
Original file line number Diff line number Diff line change @@ -364,6 +364,16 @@ Issue security schemes
364
364
# Use only_levels=True for get the only levels entries
365
365
jira.get_issue_security_scheme(scheme_id, only_levels = False )
366
366
367
+ Cluster methods (only for DC edition)
368
+ ----------------------
369
+ .. code-block :: python
370
+
371
+ # Get all cluster nodes.
372
+ jira.get_cluster_all_nodes()
373
+
374
+ # Request current index from node (the request is processed asynchronously).
375
+ jira.request_current_index_from_node(node_id)
376
+
367
377
TEMPO
368
378
----------------------
369
379
.. code-block :: python
You can’t perform that action at this time.
0 commit comments