DX NetOps

 View Only
  • 1.  CA Spectrum Rest API for deleting devices

    Posted Sep 13, 2018 12:55 AM

    looking at specific examples of rest call to remove devices from spectrum. Looking at this documentation does not provide me much details

    https://docops.ca.com/ca-spectrum/10-2-3/en/programming/web-services-api-reference/how-to-use-the-ca-spectrum-web-services-api/restful-resources-nouns/model



  • 2.  Re: CA Spectrum Rest API for deleting devices
    Best Answer

    Broadcom Employee
    Posted Sep 13, 2018 08:14 AM

    The way to remove a device from Spectrum using the  REST API is to use the following URL with the http DELETE method.

     

    http://<hostname><:portnumber>/spectrum/restful/model/<model_handle>

     

    For example:

     

    curl -H "Content-Type: application/xml" -X DELETE "http://spectrum:spectrum@localhost:8080/spectrum/restful/model/0x5400000

     

    This command would delete the model with the model handle of 0x54000000.