Hi slehner, Hi community,
late reply on this, i know, but:
From my perspective we see here the following:
If you call the service_discovery_run endpoint with “fix_all” it’s nothing else than “Accept All” in the GUI.
But if there are no services discovered already, there’s nothing to Accept at all.
So i would suggest to call the endpoint with “refresh” first and afterwards with “fix_all”.
For that you have to be aware of two things:
- “refresh” is a rescan in 2.2, but in 2.1 and before it’s tabula_rasa. With 2.2 there’s a new option to call tabula_rasa explicitly.
- With “refresh” you have to handle the redirect to the “Wait for service discovery completion” endpoint properly.
At this point i have to do some advertise for our Ansible-Collection.
We just released a new version with the discovery-module handling the redirect and also with the bulk discovery feature implemented.
KR,
Max
edit: refresh in 2.1 and before is, like in 2.2, just a rescan.