Get more than 25 results from /machines?


I’m trying to query Machines using the Rest API, however I can’t seem to find docs that show how to increase the number of returned results greater than 25. The current response also does not seem to include pagination tokens (like nextToken).

“/MAAS/api/2.0/machines/” is the URL I am using.


Hi @jlamanna1576 ,

The /MAAS/api/2.0/machines/ is supposed to return all the machines. There is no pagination available on that endpoint.

I haven’t seen that behavior so far.
I have a MAAS with > 25 machines, yet I only get 25 from the API.

ok so it seems to be user dependent, so I must have a user that can’t see all of the machines.