v4 API: Update Prism Central Image with request idempotency and Resource Etag (Python `requests` Library)
February 5, 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 REST APIs, Python `requests` library and new v4 SDK features to update a Prism Central image. The new features used are:
– Request Idempotency using Ntnx-Request-Id headers
– Resource Etag using If-Match headers
This request is specific to the Nutanix v4 APIs 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.