cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynatrace API with more than 500 output

Malaik
DynaMight Advisor
DynaMight Advisor

Hi All

 

Why the output include only 500 items in the ouput even the Nextpagekey was mentioned.

Malaik_0-1626090859512.png

 

Any idea?

Thanks

 

Sharing Knowledge
4 REPLIES 4

Julius_Loman
DynaMight Guru
DynaMight Guru

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.

Certified Dynatrace Master | TEMPEST a.s., Slovakia, Dynatrace Master Partner

But how make 7 calls?

Changing time frame every call or how?

Sharing Knowledge

wolfgang_beer
Dynatrace Leader
Dynatrace Leader

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.

Malaik
DynaMight Advisor
DynaMight Advisor

Thanks a lot @wolfgang_beer , 

I didn't pay attention that the NextPageKey changes on every call.

 

Have a good day.

Sharing Knowledge