DX NetOps

  • 1.  Spectrum Discovery through REST API

    Posted Mar 20, 2019 01:55 PM

    Can anyone suggest how we can do discovery of IPs through RESTful POST? I want to send all the IPs at one time in the POST payload. Is that something possible?



  • 2.  Re: Spectrum Discovery through REST API
    Best Answer

    Posted Mar 20, 2019 04:05 PM

    I know you can send a POST URL to create a model:

     

    https://docops.ca.com/ca-spectrum/10-3-1/en/programming/web-services-api-reference/how-to-use-the-ca-spectrum-web-services-api/restful-resources-nouns/model/example-create-a-model-based-on-model-type

     

    An XML would not be possible in this case.

     

    But you could create a script with a series of URLs listed using curl to POST.

     



  • 3.  Re: Spectrum Discovery through REST API

    Posted Mar 27, 2019 10:19 AM

    Hi Matthew,

    Do you know if there are some limitations on how many rest calls Spectrum can handle at a given time?

    I know that Nimsoft has that limitation.

     

    Thanks.



  • 4.  Re: Spectrum Discovery through REST API

    Posted Mar 27, 2019 10:30 AM

    There is no set limit no.

    You can certainly cause performance issues if you send too many though.  So just be aware of your server performance when doing / scripting.



  • 5.  Re: Spectrum Discovery through REST API

    Posted Mar 27, 2019 10:33 AM

    Perfect! Thanks.



  • 6.  Re: Spectrum Discovery through REST API

    Broadcom Employee
    Posted Mar 27, 2019 11:49 AM

    I've also seen customers deploy a separate OneClick server just to handle API work if it's excessive.



  • 7.  Re: Spectrum Discovery through REST API

    Broadcom Employee
    Posted Mar 20, 2019 08:08 PM


  • 8.  Re: Spectrum Discovery through REST API

    Posted Mar 27, 2019 10:17 AM

    Thanks Tarun and Matthew for your valuable replies! 

    I am thinking of working on the solution that Matthew suggested.