Hi all,
We have 2 environments using Commvault (Dev - 195 VMs and Prod - 2175 VMs). In testing the REST APIs, I've found that the GET VM API only returns some VMs in the Prod environment. Is there a limitation to the number of records returned?
sample Powershell code:
$ccVms = Invoke-RestMethod "$cs/webconsole/api/VM" -Method 'GET' -Headers $headers
$vmGuid = $ccVMs.vmStatusInfoList | Where-Object name -eq $vmname | Select-Object -ExpandProperty strGUID
$vmEsxHost = $ccVMs.vmStatusInfoList | Where-Object name -eq $vmname | Select-Object -ExpandProperty vmHost
I've tried adding "Pageinfo: 0,3000" in the headers, but my code was not able to some VMs.
I've also tried GET /v4/virtualmachines but I’ve found that the API only returns ~103 VMs from Get Virtual Machines | Commvault®
Both environments are on 11.36.39