System Administration > Configuration > NSX Managers > Clusters > Cluster Configuration

Add a controller to the cluster (Deprecated)

Add a new controller to the NSX cluster.
Deprecated. Use POST /cluster?action=join_cluster to join a node to cluster.
The controller comes with the new node.

Request:

Method:
POST
URI Path(s):
/api/v1/cluster/nodes
Request Headers:
n/a
Query Parameters:
AddClusterNodeAction+
Request Body:
AddClusterNodeSpec+

Example Request:

Controller Node POST https://<nsx-mgr>/api/v1/cluster/nodes?action=add_cluster_node { "external_id": "4c539859-1451-439a-a920-f64492863b16", "controller_role_config": { "type": "AddControllerNodeSpec", "host_msg_client_info": { "shared_secret": "secret1" }, "mpa_msg_client_info": { "shared_secret": "secret1" } } }

Successful Response:

Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
ClusterNodeConfig+

Example Response:

Controller Node { "_revision": 0, "id": "7e36956a-85c4-4c3e-a883-8d26592146f1", "resource_type": "ClusterNodeConfig", "external_id": "4c539859-1451-439a-a920-f64492863b16", "controller_role": { "type": "ControllerClusterRoleConfig", "host_msg_client_info": { "account_name": "cvn-ccp-7e36956a-85c4-4c3e-a883-8d26592146f1" }, "mpa_msg_client_info": { "account_name": "cvn-ccp-mpa-abcdef12-85c4-4c3e-a883-8d26592146f1" }, "control_cluster_listen_addr": { "port": 0 }, "control_plane_listen_addr": { "port": 0 } }, "_create_time": 1416221408704, "_create_user": "system", "_last_modified_user": "system", "_last_modified_time": 1416221408704 }

Required Permissions:

crud

Feature:

cluster_management

Additional Errors: