v3 - vms/list - How to get full list of VMs? | Nutanix Community
Skip to main content
Solved

v3 - vms/list - How to get full list of VMs?


Bender555

Hello. I faced with limitation of number VMs in API reply. There is option “length” which can be added to request, but max value is 500 (I got it into experiments). We have around 1000 VMs in our environment.

Is there solution?

Best answer by Bender555

It seems that i found a solution - https://www.nutanix.dev/code_samples/list-all-vms-in-a-cluster-with-more-than-500-vms/

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

Bender555
  • Author
  • Adventurer
  • 3 replies
  • Answer
  • June 4, 2020

Bender555
  • Author
  • Adventurer
  • 3 replies
  • June 4, 2020

you need to use option ‘offset’ and make one more request