This sample script adds hosts from a csv-file using the REST API in Monitor. Proof of concept level so test before use, also a example input file how the CSV-file should be formatted.

 

add_hosts_api.sh

hosts.csv