12 Jul 2021 12:57 PM - last edited on 19 Nov 2021 12:22 PM by MaciejNeumann
Hi All
Why the output include only 500 items in the ouput even the Nextpagekey was mentioned.
Any idea?
Thanks
Solved! Go to Solution.
12 Jul 2021 01:18 PM
The page size is 500, that's why your result set is split into 3395/500 -> 7 pages.
You need to issue 7 calls to Dynatrace API to get the full result.
You may want to try the pageSize parameter to return larger pages, but 5000 is the maximum anyway.
12 Jul 2021 01:34 PM - edited 12 Jul 2021 01:34 PM
But how make 7 calls?
Changing time frame every call or how?
12 Jul 2021 02:50 PM
No you just copy the nextPageKey value, remove all the other filters and just call the same endpoint giving only the nextPageKey as a cursor. You will then get the next 500 entities and a NEW nextPageKey that you again enter as the cursor.
12 Jul 2021 02:58 PM
Thanks a lot @wolfgang_beer ,
I didn't pay attention that the NextPageKey changes on every call.
Have a good day.