API script to create objects in idoIT
-
Hi Everyone,
I want to create 1000 objects "Virtual Server" in idoIT, is there a way to synch Virtual machine information from Vcenter and automatically create those objects in idoIT ? I know API is an option, not sure how to get it done, anyone has done it before ? Please share any script if available, will be a great help.Edit: I want to automate this as well, so whenever i create a new virtual server in Vcenter, the script should create object in idoIT as well, whenever it runs next time.
Thanks
-
@AnilSuthar 8 days no repsonse from anyone, do you think you can help me guys ?
-
I don't have a ready-made script for you. The APi call to create an object is described in the Knowledge Base. How this is called depends heavily on the programming/scripting language useed.
-
As @MartinV already wrote, a ready-made script for your special problem is probaby hard to come by. If you want to write one yourself, there are a few options.
- When using the shell you could try the i-doit CLI tool. I started with this and use it some times for quick tests.
- If your more inclined to Python, have a look at i-doit_API.
- I personally write my scripts with Perl using the WebService::IdoitAPI module.
Kind regards,
Mathias[Edit: correct typo]
-
@mamawe Thank you, will explore the oprtions and update.