Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support grid api #191

Open
fawaf opened this issue Jan 7, 2022 · 2 comments
Open

support grid api #191

fawaf opened this issue Jan 7, 2022 · 2 comments

Comments

@fawaf
Copy link

fawaf commented Jan 7, 2022

per https://www.infoblox.com/wp-content/uploads/infoblox-deployment-infoblox-rest-api.pdf

@jerlev-p
Copy link

One specific use case that is needed is the ability to restart DHCP services after creating a network, range and/or fixed address.

Per community article: Restart Services Using the REST API

Search for the Grid to get the reference:

curl -k -u admin:infoblox -X GET https://192.168.1.2/wapi/v1.1/grid

The search returns a reference (_ref) for the Grid:

[        {            "_ref": "grid/b25lLmNsdXN0ZXIkMA:Infoblox"        }    ]

Restart services using the reference:

curl -k -u admin:infoblox -X POST https://192.168.1.2/wapi/v1.1/grid/b25lLmNsdXN0ZXIkMA:Infoblox?_function=restartservices -H "Content-Type:application/json" -d '{"restart_option": "RESTART_IF_NEEDED", "service_option": "ALL", "member_order": "SEQUENTIALLY", "sequential_delay": '1'}'

@fawaf
Copy link
Author

fawaf commented Jan 21, 2022

depends on infobloxopen/infoblox-go-client#162

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants