List all VMs on a specified cluster (advanced; clusters with >500 VMs)

February 9, 2020

by Chris Rasmussen

Intended Audience Level: Advanced

Code Sample Type: Complete Script

Nutanix Technologies: Prism Central

N/A

Script/Code Language: Python

REST API Sample? Yes

REST API Version: v3

This advanced script uses Microsoft C# and the Nutanix Prism Central v3 APIs to list all VMs in a cluster. Unlike the other basic list VMs code sample, this complete script demonstrates how to create and process multiple requests while using the “offset” and “length” parameters. These parameters, when used together, allow fine-grained control over exactly how many entities are returned.

Code Sample Details

This section may be empty if additional code sample details are not available.