Launch a Nutanix Calm blueprint via API – Part 2

launch_calm_blueprint_part2

Table of Contents

A couple of days ago I published a quick article entitled Launch a Nutanix Calm blueprint with API – Part 1. That article covered, as suggested by the excessively descriptive (:-)) title, how to use the Nutanix v3 APIs to launch a Nutanix Calm blueprint.

In that article, I also said the article would be followed soon by a related Python code sample. That code sample is now ready and has been pushed to the Nutanix Developer Github code samples repository.

If you would like to jump straight to the code sample repository, please do so by clicking here: Launch Nutanix Calm blueprint via API. If you would like a little more info on what the code sample does, read on!

What does the code sample do?

As with most code samples in the Nutanix Dev code sample repo, this one is a complete script that includes basic error checking, multiple command-line parameters and appropriate messages to show what’s happening.

Shown below is a screenshot of what the script looks like when it is run (click to enlarge):

As you can see, a ton of info is shown, all of which can be disabled by setting the “–debug” flag to “disabled”.

Repository documentation

Instead of diving into the options available on the command line here, please head over and check out the script’s readme. Complete documentation and usage instructions are available there.

Hands-on lab

Within the next few weeks we’ll also be publishing a hands-on lab that will walk you through creating this script. Aimed at those without extensive Python knowledge or those that want to know how each part works, you’ll start from scratch and end up with a working version of the script above. For now, I encourage you to check out our existing labs collection, though!

Thanks for reading and hopefully this code sample helps someone! 🙂

© 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.