If you do not only have the IP address of these objects but also the names (assuming they are unique) you could go via the following approach:
Create a file called "hosts.csv" or however you want to call it.
Write the following information in the first line:
Add the Information of the related hosts from the second line until you are done, e.g.:
Do the same for the address ranges (exact same format), but save it under a different name, e.g. "ranges.csv".
Execute the following commands (make sure to be in the same directory where the csv files are placed, otherwise specify the path to the file | the example is for local execution on the Management server, when doing it remote from a Windows host via mgmt_cli.exe you need to add the -m Option followed by the management server IP address):
"mgmt_cli set host -b ./hosts.csv"
"mgmt_cli set address-range -b ./ranges.csv"
If you do not have a list for the object names you Need to call the api in order to find the names for a given IP and afterwards do the just described Tasks. How you can find the Name of an object by just having it's IP? => use the "show objects filter 'w.x.y.z'" API call/command. In this case you Need to make sure that you retreice the correct objects because this call will return all objects that have the given IP of "w.x.y.z." assigned to it. (not a Problem the IPs in your management server are unique related to objects)