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:

  1. get list of all devices
  2. 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.

A long time ago, i did a lab using ansible to do add devices, import rediscover.

See if this video helps you

I did the discovery, and take a long time to complete, it takes time because it runs on only one device at a time .

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 😅

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.