We have several elements created before we installed IDP. Now that we have it installed, we need to assign the CI Type to each element.
We don't want to re-discover the same elements with IDP because we would lose the trending.
Is there any way that this process can be automated with a Script/API?
In IDP, elements that were not provisioned by IDP are called unmanaged elements. If you go to Inventory -> Unmanaged, you should see the list of unmanaged element listed in a table. You have the option to set the CI type of these unmanaged elements and set them as managed elements.
Hope it helps.