How to add a new hardened node to an 8.14 Aria Operations for Logs cluster using API
search cancel

How to add a new hardened node to an 8.14 Aria Operations for Logs cluster using API

book

Article ID: 338306

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

The REST API flow for joining new nodes to an VMware Aria Operations for Logs cluster has been hardened.
The purpose of this article is to outline the new steps required to add a hardened node to VMware Aria Operations for Logs 8.14.

Environment

VMware Aria Operations for Logs 8.14.x

Resolution

To add a node using the new hardened APIs, follow the steps below.
  1. Log into the new node that you want to join to the cluster as root via SSH or Console.
  2. Run the following command to get an authentication token from the cluster:
curl -k -X POST -H “Content-Type: application/json” -d ‘{“username”:“admin”, “password”:“######“}’ https://primary_ip:9543/api/v2/sessions

Note: Replace password with the password of the local admin user, and replace primary_ip with the IP address of the Primary node.

Examplecurl -k -X POST -H “Content-Type: application/json” -d ‘{“username”:“admin”, “password”:“######“}’ https://XXX.XXX.XXX.XXX:9543/api/v2/sessions
  1. Run the following command to get a join token from the cluster:
curl -k -X GET -H “Authorization: Bearer authentication_token” -H ‘Content-Type: application/json’ https://primary_ip:9543/api/v2/deployment/token

Note: Replace authentication_token with the Authentication token returned in step 2, and replace primary_ip with the IP address of the Primary node.

Examplecurl -k -X GET -H “Authorization: Bearer authentication_token” -H ‘Content-Type: application/json’ https://XXX.XXX.XXX.XXX:9543/api/v2/deployment/token
  1. Run the following command to join the new node to the cluster:
curl -k -X POST -H “Authorization: Bearer join_token” -H ‘Content-Type: application/json’ -d ‘{“masterFQDN”: “primary_ip“}’ https://new_node_ip:9543/api/v2/deployment/join

Note: Replace join_token with the Join token returned in step 3, replace primary_ip with the IP address of the Primary node, and replace new_node_ip with the IP address of the new node you want to join to the cluster.

Examplecurl -k -X POST -H “Authorization: Bearer join_token” -H ‘Content-Type: application/json’ -d ‘{“masterFQDN”: “XXX.XXX.XXX.XXX“}’ https://YYY.YYY.YYY.YYY:9543/api/v2/deployment/join