Join cluster

To join to cluster, you need to log in.

Request Structure:


Post data:

access_token = <access_token>
cluster_username = <username>
cluster_password = <password>
cluster_ip = <IP>

The response from the server:

 "msg": <cluster config>,
 "status": "success",
 "error": ""


-cluster not created on connecting node
-missing data
-username not found
-password is wrong
-a node with the same hostname is already in the cluster


import requests
import json

api_url = "http://<IP>:<PORT>/api/"
access_token = 'BLABLALBA'

path = 'cluster/join'
data = {
    'cluster_username': 'admin',
    'cluster_password': 'admin',
    'cluster_ip': '',

def send(path, data):
    data['access_token'] = access_token
    send = + path, data=data)

send(path, data)





Revision #4
Created 6 May 2022 13:44:29 by Ruslan
Updated 8 May 2022 09:52:42 by Ruslan