search cancel

How to Delete a Device Using Rest and Not Retire It in Performance Management


Article ID: 240396


Updated On:


CA Spectrum


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?

(DELETE) http://<hostname><:portnumber>/spectrum/restful/model/<model_handle>




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

(DELETE) http://<hostname><:port>/spectrum/restful/associations/relation/<rel_handle>/leftmodel/<LMhandle>/rightmodel/<RMhandle>

<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

Example Syntax


2. Now that the device has been removed from the IP Domain Global Collection destroy the device model

Delete the device model

(DELETE) http://<hostname><:portnumber>/spectrum/restful/model/<model_handle>

Example Syntax

Additional Information

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.

DELETE associations

DELETE model