- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Join Grid Function: How does it work?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2020 10:01 AM
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:
Solved! Go to Solution.
Re: Join Grid Function: How does it work?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2020 10:14 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2020 11:06 AM
@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!