Hi Diogo,
Yes, we can able to fetch the devices as
blocks of 500.I have tested this API and working fine in Our QA Spectrum setup (10.4.1), please find the results in attached files.
I think Spectrum version does not matter here , but what is the your Spectrum Version ?
Could you please cross test REST API once and please let us/support know if you need any help.
Thanks
Channa
------------------------------
Broadcom - CA Technologies
------------------------------
Original Message:
Sent: 01-20-2020 07:08 AM
From: Diogo Almeida
Subject: Spectrum REST API - how to retrieve thousands of devices
Hi!
I am trying to get all the devices (~100K) through webservices with throttlesize=500 but the API doesn't recognize "start" argument, let's see:
The initial query:
GET http://<spectrum>/spectrum/restful/devices?attr=0x1006e&attr=0x12d7f&attr=0x10030&attr=0x10032&attr=0x23000e&attr=0x12bfe&throttlesize=500
The results are fast and at the bottom of XML we get something like:
<link
href="http://<spectrum>/spectrum/restful/devices?id=fb6bd912-0056-4c88-9881-3018644357de&start=1000&throttlesize=1000"
rel="next" type="application/xml"/>
Next query:
GET http://<spectrum>/spectrum/restful/devices?id=fb6bd912-0056-4c88-9881-3018644357de&start=1000&throttlesize=500
Ok, I supposed that this will be the next query and it will returns next results but no, the results are equal.
What I want is to return everything in blocks of 500. Can I do this?