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

[API] PageSize does not work on getLinodes #11126

Open
kamilchodola opened this issue Oct 18, 2024 · 1 comment
Open

[API] PageSize does not work on getLinodes #11126

kamilchodola opened this issue Oct 18, 2024 · 1 comment

Comments

@kamilchodola
Copy link

As per documentation getLinodes endpoint is capable of handling 500 requests per page at maximum so I used it like this"
const instances = await getLinodes({ page: 1, pageSize: 500 });

Unfortunately it still keeps capping everything to 100. Is it handled properly in JS wrapper?

@bnussman
Copy link
Member

@linode/api-v4 should allow you to pass a page size using page_size (rather than pageSize)

export interface Params {
page?: number;
page_size?: number;
}

Let us know if this works for you! 😃

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

No branches or pull requests

2 participants