The Activate API/NBI, both the ADPIDoc Swagger and the client interface, will by default only return 20 items. Those items can be lines, services, devices, etc.
So if i have 57 nodes and I do a GET for devices, it will only return 20 of them. What we need to do is use pagination. For pagination, what we do is specify a limit and an offset. For example, if pull all devices for the network above I listed (57 nodes).
In the response, it will give me 20 nodes but in the response header it will also say:
This tells me there are 57 total items (of which i gave you the first 20). I now have 2 options, i can either pull all 57 all at once with:
Above is good because 57 is very few, but what if i want to pull alarm history which will have thousands of lines?
The answer is pagination. So in this case, I want to see 10 per "page" and we use the offset to define the page.