Skip to content

Commit 4eef4f9

Browse files
committed
HNWEB-5220-add-active-branchers-endpoint
1 parent 6d8d4fc commit 4eef4f9

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

hypernode_api_python/client.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,19 @@ def order_hypernode(self, data):
630630
"""
631631
return self.requests("POST", HYPERNODE_API_APP_ORDER_ENDPOINT, data=data)
632632

633+
def get_active_branchers(self, app_name):
634+
"""
635+
List all active brancher nodes of your Hypernode.
636+
637+
:param str app_name: The name of the Hypernode to create the branch from
638+
:return obj response: The request response object
639+
"""
640+
HYPERNODE_API_APP_BRANCHER_ENDPOINT = "/v2/app/{}/brancher/"
641+
642+
return self.requests(
643+
"GET", HYPERNODE_API_APP_BRANCHER_ENDPOINT.format(app_name)
644+
)
645+
633646
def create_brancher(self, app_name, data):
634647
"""
635648
Create a new branch (server replica) of your Hypernode.

0 commit comments

Comments
 (0)