v4 API: LCM Updates with Prism Central and Prism Element (Python SDK)

March 16, 2023

by Chris Rasmussen

Intended Audience Level: Intermediate

Code Sample Type: Complete Script

Nutanix Technologies: Prism Central, Prism Element, LCM

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 manage Nutanix LCM updates. This script can be run against either Prism Central or Prism Element.

– LCM inventory update, ensuring the latest installed version information is available
– Collection of update recommendations in preparation for update installation
– Update planning to provide detailed info on required service restarts, if any
– Update installation
– Task monitoring and duration reporting

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 required script dependencies are downloaded with this demonstration script.

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

Related Resources