Solved

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

  • 4 June 2020
  • 2 replies
  • 5431 views

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?

icon

Best answer by Bender555 4 June 2020, 13:57

View original

This topic has been closed for comments

2 replies

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

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