There's no tool already made for this use case, but you could write a script which reads the csv and for each row uses the device registration HTTP resource of openwisp-controller to register the device using the shared secret of the specific organization you want the device to register to (or have the shared secret part of the csv if you want to register devices for multiple organizations using this strategy).
This is the shell code used by the openwisp-config deamon on OpenWRT to register a device: https://github.com/openwisp/openwisp-config/blob/master/openwisp-config/files/openwisp.agent#L123-L221 You can use this code as a guide for what you have to do in your script. I hope it helps. Federico On Wed, Jul 10, 2019 at 5:07 AM Amit Goyal <[email protected]> wrote: > Hi , Can someone help here ? > > On Friday, July 5, 2019 at 4:28:50 PM UTC+5:30, Amit Goyal wrote: >> >> Hi >> >> I have requirement of registering AP in openwisp from backend. Client is >> providing AP information like name , mac address etc in csv file . >> We have to get all information from csv file and need to register AP >> using that information . >> Is there any API or script exist in openwisp where we can pass these >> information as arguments and register AP in openwisp. >> >> Regards >> Amit >> > -- > You received this message because you are subscribed to the Google Groups > "OpenWISP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/openwisp/7d5041cb-d141-46e2-b27f-23110b250a19%40googlegroups.com > <https://groups.google.com/d/msgid/openwisp/7d5041cb-d141-46e2-b27f-23110b250a19%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/CAERYH6Xyaa0_vBOdOTtt%3DmPVb9prtzWN%3DD4iqwYqZaJDVFRGDw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
