Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pagination in icurl() to support large amount of objects #174

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

takishida
Copy link
Collaborator

The current API query example made by icurl():

/api/class/fvIfConn.json

The new API query example with pagination:

/api/class/fvIfConn.json?page=0&page-size=100000

With the pagination, the API query in icurl() will query up to 100K object instances at a time. If there are more objects to be returned, it will automatically query again with the next page such as page=1, page=2 and so on, then it will concatenate all the result as a single list so that the output of icurl() remains the same regardless of the pagination or not.

This enhancement will fix issue #173 and any other failure due to massive amount of objects to be returned.

Copy link
Collaborator

@monrog2 monrog2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed API-only commSetup.masMos lookup, decided to move forward as-is as that change appears to be API-only today.

@monrog2 monrog2 merged commit 010cd6d into master Oct 15, 2024
3 checks passed
@monrog2 monrog2 deleted the paginated_icurl branch October 15, 2024 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Overlapping VLAN pool check fails due to "API call failed" when there are too many VLAN deployments
2 participants