@@ -424,6 +424,10 @@ def get_all_system_avatars(self, avatar_type: str = "user") -> T_resp_json:
424
424
"""
425
425
426
426
def get_cluster_all_nodes (self ) -> T_resp_json :
427
+ """
428
+ Get all nodes in the cluster
429
+ :return:
430
+ """
427
431
url = self .resource_url ("cluster/nodes" )
428
432
return self .get (url )
429
433
@@ -457,7 +461,8 @@ def get_cluster_alive_nodes(self) -> list:
457
461
458
462
def request_current_index_from_node (self , node_id : T_id ) -> T_resp_json :
459
463
"""
460
- Request current index from node (the request is processed asynchronously)
464
+ Request current index from node (the request is processed asynchronously).
465
+ This method is deprecated as it is Lucene specific and is planned for removal in Jira 11.
461
466
:return:
462
467
"""
463
468
base_url = self .resource_url ("cluster/index-snapshot" )
@@ -502,7 +507,43 @@ def download_support_zip(self, file_name: str) -> bytes:
502
507
Reference: https://docs.atlassian.com/software/jira/docs/api/REST/8.5.0/#api/2/cluster/zdu
503
508
"""
504
509
510
+ def approve_cluster_zdu_upgrade (self ) -> T_resp_json :
511
+ """
512
+ Approves the cluster upgrade.
513
+ :return:
514
+ """
515
+ url = self .resource_url ("cluster/zdu/approve" )
516
+ return self .post (url )
517
+
518
+ def cancel_cluster_zdu_upgrade (self ) -> T_resp_json :
519
+ """
520
+ Cancels the ongoing cluster upgrade.
521
+ :return:
522
+ """
523
+ url = self .resource_url ("cluster/zdu/cancel" )
524
+ return self .post (url )
525
+
526
+ def retry_cluster_zdu_upgrade (self ) -> T_resp_json :
527
+ """
528
+ Retries the cluster upgrade.
529
+ :return:
530
+ """
531
+ url = self .resource_url ("cluster/zdu/retryUpgrade" )
532
+ return self .post (url )
533
+
534
+ def start_cluster_zdu_upgrade (self ) -> T_resp_json :
535
+ """
536
+ Starts the cluster upgrade.
537
+ :return:
538
+ """
539
+ url = self .resource_url ("cluster/zdu/start" )
540
+ return self .post (url )
541
+
505
542
def get_cluster_zdu_state (self ) -> T_resp_json :
543
+ """
544
+ Get the state of the cluster upgrade.
545
+ :return:
546
+ """
506
547
url = self .resource_url ("cluster/zdu/state" )
507
548
return self .get (url )
508
549
0 commit comments