Similar to This, I've installed NetBox via docker containers. I wrote some python code(API) which take an IP range(local of course) as input and scan the range via Nmap python module and provide the result nice and neat as output.
What I wanna do is I want NetBox to have a section that I can place an IP range as an input, then it contacts my API and takes the result back and store them in its database (suppose results are organized)
For example say I have a local subnet 192.168.104.0/24 and there are several devices(each has attributs like MAC address, hostname, whether a vm or not...) I give this range to Netbox and it places these devices in the database using the result my API provides for it.