v4 API: Create Prism Central VM (Python SDK)

February 23, 2023

by Chris Rasmussen

Intended Audience Level: Intermediate

Code Sample Type: Complete Script

Nutanix Technologies: Prism Central

Minimum Product Version: pc.2022.9

Script/Code Language: Python

REST API Sample? Yes

REST API Version: v4

This Python code sample demonstrates using the Nutanix v4 Python SDKs and new v4 SDK features to create a Prism Central virtual machine.

– Multiple Nutanix SDK namespaces: vmm, storage, networking, prism, clustermgmt
– Configuration of multiple Prism Central connections across various SDKs
– Verification of the cluster that will host the new VM
– Verification of network the VM should connect to
– Verification of the image the VM disk should be cloned from
– Task monitoring

This request is specific to the Nutanix v4 SDKs and is not backwards compatible with v1, v2.0 or v3 APIs.

Code Sample Details

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

Note: Please follow the usage instructions in this directory’s README.md. This will ensure the associated Cloud-Init userdata and dependencies are downloaded with this code sample.

Nutanix Prism Central pc.2022.9 or later is required to use this code sample.

Related Resources