Skip to main content
Question

Rest API limit for /v3/vms/list

  • May 14, 2025
  • 3 replies
  • 137 views

Forum|alt.badge.img+1

Hi Team, 

im trying to get the vm details using rest api 3 version,  by using the following payload

curl -X 'POST'  -uxxx:xx   'https://onwer.com:9440/api/nutanix/v3/vms/list'   -H 'accept: application/json'   -H 'Content-Type: application/json'   -H 'X-Nutanix-Client-Type: ui'   -d '{
  "kind": "vm",
  "sort_attribute": "string",
  "length": 2000,
  "sort_order": "ASCENDING",
  "offset": 0
}'

Here, if you see the 2000 length I have specified, but it's giving 1000 values only. Is there any other limit we need to increase ?

For the same rest api Also, I'm getting “RangeError: Maximum call stack size exceeded” in the REST API explorer. Any suggestions for this ?

This topic has been closed for replies.

3 replies

Forum|alt.badge.img+3
  • Trendsetter
  • 53 replies
  • May 16, 2025

Hi

If possible go to API v4 then fetch the VM by its name and easily retrieve what you need

Reference : https://developers.nutanix.com/api-reference?namespace=vmm&version=v4.0


  • Voyager
  • 2 replies
  • May 19, 2025

Hello,

You can make two api calls and use “offset: 1000” for the second call.


Forum|alt.badge.img+2
  • Trailblazer
  • 23 replies
  • May 27, 2025

Hi

Is there a hard-coded limit for amount of VMs that can be received with single API call?