Forum Discussion
BigIQ - how to trigger a rediscover/reimport of all devices by API
Hello fellow F5 admins,
I'm looking for an elegant way of triggering a rediscover/reimport of all our devices currently known to our BigIQ by an API call (to build an ansible playbook in the end).
Can anyone point me into the right direction or even better, has a working solution?
There seems to be only an endpoint for redicovering and reimporting single devices. Do I really have to:
- get list of all devices
- loop over that list and trigger a reimport for every device individually?
Any input would be much appreciated.
Cheers
Ichnafi
Ichnafi I have never used them but then again the BIG-IQ rediscovery of all devices it manages is just a few clicks to log in and then select all the devices using the select all. The following might help you but from what I can tell this is for discovery of new devices and not existing.
https://clouddocs.f5.com/products/big-iq/mgmt-api/v6.0.1/
https://clouddocs.f5.com/products/big-iq/mgmt-api/v6.0.1/ApiReferences/bigiq_public_api_ref/r_adc_core_discovery_import_60.html- IchnafiCirrostratus
Hi and thank you for your answer.
I know it can be done in the GUI, but why doing it manualy when you can automate it 😅
- FerCamargoEmployee
A long time ago, i did a lab using ansible to do add devices, import rediscover.
See if this video helps you
https://youtu.be/uplEz9qQhy4?si=9EdDHJtf2eHFBr0l
I did the discovery, and take a long time to complete, it takes time because it runs on only one device at a time .
- IchnafiCirrostratus
Hi,
I am using an ansible task to import newly created vmcp-Guests already. So my guess was right, and it's a one after the other job. Too bad...
Thank you for your answer.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com