Introducing SOC Insights for BloxOne Threat Defense: Boost your SOC efficiency with AI-driven insights to eliminate manual work and accelerate investigation and response times. Read the blog announcement here.

API & Integration, DevOps,NetOps,SecOps

Reply

Join Grid Function: How does it work?

Adviser
Posts: 51
3066     0

I'd like to take advantage of the Grid Join function listed in the RestAPI guide:

curl -k -u admin:infoblox -H 'content-type: application/json' -X POST "https://member-master/wapi/v2.11/grid?_function=join&_return_as_object=1" -d '{"grid_name":"Infoblox", "master":"grid-master", "shared_secret":"test"}'

However, what's unclear is how can I send the Grid Member information with this function?  The input fields are limited with only grid_name, master, and shared_secret.  Can someone provide an example?  When ran in Postman, I get the following message:

Grid Master VIP cannot be the same as this member node's IP address
 
 

Re: Join Grid Function: How does it work?

Adviser
Posts: 181
3066     0

Hi,

 

The grid join function needs to be fired against the grid member that you are trying to add to the grid.

 

Say you have a grid master with the IP 172.26.1.2 and you have created a member at 172.26.1.3, in order to join this member to the grid, you would need to do the following:

 

  • Send an API to the grid master to create the offline member like below:

 

curl -k -u admin:infoblox -H 'content-type: application/json' -X POST "https://grid-master/wapi/v2.11/member?_return_as_object=1" -d '{"config_addr_type":  "IPV4","platform":  "VNIOS","host_name":"member1.localdomain","vip_setting": {"subnet_mask": "255.255.255.0","address": "172.26.1.3","gateway":"172.26.1.1"}}'
  • Send an API to the new member to join the grid:
curl -k -u admin:infoblox -H 'content-type: application/json' -X POST "https://172.26.1.3/wapi/v2.11/grid?_function=join&_return_as_object=1" -d '{"grid_name":"Infoblox", "master":"172.26.1.2", "shared_secret":"test"}'

Hope this helps,

Krishna Vasudevan

 

Re: Join Grid Function: How does it work?

Adviser
Posts: 51
3066     0

@kvasudevan wrote:
  • Send an API to the new member to join the grid:
curl -k -u admin:infoblox -H 'content-type: application/json' -X POST "https://172.26.1.3/wapi/v2.11/grid?_function=join&_return_as_object=1" -d '{"grid_name":"Infoblox", "master":"172.26.1.2", "shared_secret":"test"}'

The crucial piece that I was missing!  I was trying to initiate from the Grid Master...  Also explains why I got the error I got.  Thanks!

Showing results for 
Search instead for 
Did you mean: 

Recommended for You