API pagination for Panorama address object

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

API pagination for Panorama address object

L1 Bithead

Hi All,

I am trying to confirm what is max number of entries can API query return for address object .
Like we have around 50k address , will API query will fetch all data in single page or it will fetch specific number of entries  ? or we need to use some sort of pagination if we have some limit per page and what parameter i can use.


Thanks 

1 REPLY 1

L1 Bithead

The API won’t return all 50,000 address objects at once. Panorama limits the number of results per response for performance reasons. You’ll need to use pagination. The API accepts parameters like n (number of entries to return) and skip (offset).

For example: https://<panorama>/api/?type=config&action=get&xpath=<path>&n=500&skip=1000

That way, you can retrieve the data in smaller batches. The total count is usually included in the XML or JSON response so you know how many pages to request.

Elwin
  • 184 Views
  • 1 replies
  • 1 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!