Nutanix v4 API Code Sample Update: February 2024

Nutanix.dev-CodeSampleUpdateFebruary2024

Table of Contents

In our most recent article, Nutanix v4 API Update: January 2024, we covered the latest features and improvements made available in Nutanix Prism Central™ pc2023.3 and AOS™ 6.7. Along with that article a number of code samples were updated and published to the NutanixDev GitHub; today’s article outlines the new code samples now available and highlights how to get started using them. Note: this article covers Python® and JavaScript™ code samples.

Python

New Code Samples

Create Nutanix Prism Central categories

Create Nutanix Prism Central™ categories using ntnx_prism_py_client Python SDK

Create Nutanix Flow Network Security™ Policy

Create Nutanix Flow Network Security Policy using ntnx_microseg_py_client Python SDK (Part 1)
Create Nutanix Flow Network Security Policy using ntnx_microseg_py_client Python SDK (Part 2)

Create managed subnet

Create managed subnet using ntnx_networking_py_client Python SDK

Create Nutanix AHV® VM

Create Nutanix AHV® VM using ntnx_vmm_py_client Python SDK

Updated Code Samples

Collect details for and run Nutanix LCM® updates

Collect details for and run LCM updates using ntnx_lcm_py_client Python SDK

JavaScript®

Updated Code Samples

List clusters

Nutanix v4 API SDK for Node.js – clustermgmt-js-client

Wrapping Up

These new code samples are intended to introduce new and existing Nutanix API users to the Nutanix v4 APIs and SDKs. For more information, see the Nutanix v4 API Introduction.

Related Resources

License

Nutanix code samples are distributed under the MIT license available at https://github.com/nutanixdev/code-samples/blob/master/LICENSE.

Disclaimer

These code samples are intended as a standalone examples.  Please be aware that all public code samples provided by Nutanix are unofficial in nature, are provided as examples only, are unsupported and will need to be heavily scrutinized and potentially modified before they can be used in a production environment.  All such code samples are provided on an as-is basis, and Nutanix expressly disclaims all warranties, express or implied.  All code samples are © Nutanix, Inc., and are provided as-is under the MIT license (https://opensource.org/licenses/MIT).

© 2024 Nutanix, Inc. All rights reserved. Nutanix, the Nutanix logo and all Nutanix product, feature and service names mentioned herein are registered trademarks or trademarks of Nutanix, Inc. in the United States and other countries. Other brand names mentioned herein are for identification purposes only and may be the trademarks of their respective holder(s). This post may contain links to external websites that are not part of Nutanix.com. Nutanix does not control these sites and disclaims all responsibility for the content or accuracy of any external site. Our decision to link to an external site should not be considered an endorsement of any content on such a site. Certain information contained in this post may relate to or be based on studies, publications, surveys and other data obtained from third-party sources and our own internal estimates and research. While we believe these third-party studies, publications, surveys and other data are reliable as of the date of this post, they have not independently verified, and we make no representation as to the adequacy, fairness, accuracy, or completeness of any information obtained from third-party sources.