Starting in NetOps 21.2.8 there is a new option that allows a user to retire or not retire a device in Performance Management when you manually delete it. Does this
new feature extend to rest when deleting models?
Retire a Device While Deleting
New Dialog to Retire or not (Dialog only shows if integrated with CAPM)
Release : 21.2.8+
Component : Spectrum OneClick
The Rest interface does not fully have this option as of yet, to not retire the device in CAPM remove the device from the
IP Domain Global Collection Prior to deleting the model.
1. Delete Association to Global Collection
Rest Call to destroy an association
<rel_handle> - a model can either be statically added or dynamically added to a Global Collection, so one of the following two relations is needed (typically dynamicGlobalCollects)
dynamicGlobalCollects 0x0001003a MANY_TO_MANY
staticGlobalCollects 0x0001003b MANY_TO_MANY
<LMhandle> - the model handle of the IP Domain Global Collection
<RMhandle> - the model handle of the device to be deleted
2. Now that the device has been removed from the IP Domain Global Collection destroy the device model
Delete the device model
The rest call might be updated in a later version to add an option to not retire the device, For now, it must be removed from the IP Domain GC to not have it retired.