List all VMs in a cluster with more than 500 VMs

February 9, 2020

by Chris Rasmussen

Intended Audience Level: Advanced

Code Sample Type: Complete Script

Nutanix Technologies: Prism Central


Script/Code Language: Python

REST API Sample? Yes

REST API Version: v3

Use the Nutanix Prism Central v3 APIs to list all VMs in a cluster, where the specified cluster manages more than 500 VMs. This sample demonstrates how to create and send multiple API requests that use the “offset” and “length” parameters. These parameters are required when requests beyond default parameters are required. Complete documentation is available on the code sample site.

Code Sample Details

Note this section may be empty, if additional code sample details are not available.