VMware {code} Community
tnitzschephx
Contributor
Contributor

API does not return when large volume of data present

We are using the vCenter REST API

https://developer.vmware.com/docs/vsphere-automation/latest/vcenter/api/vcenter/vm/get/

Although we have less than 4,000 vms in our production environment in total, this API call just returns an error message.  The web service does not paginate; I haven't been able to find any workarounds. I have filtered by power state and can get those powered off and those that are suspended, but I only get an error message for those that are powered_on. When filtering by power state, this call works fine in our development environment where have only 100 vms powered on. We can't filter any further (by CPPU, for example), so I'm a little stuck.

https://{api_host}/api/vcenter/vm

Have any of you run into this and do you have any advice for me?

Reply
0 Kudos
0 Replies