I have a scenario where I want to unmanage only certain interfaces for Cisco routers and switches modelled within NPM. I specifically want to automate this feature such that no human interaction is required. The interfaces that are to be managed have certain strings within the interface description. Those interfaces that do not have a certain string within the interface description are to be unmanaged. I imagine using the SDK is a way to automate this but I've not used it before so I don't know if this is even possible. Maybe direct database writes is a way to go?
We do something similar. We use custom fields for the interfaces that say "Primary" true/false. Then in the "Unmange Schedule Utility" I grab all interfaces with primary=false.