Launch a Nutanix Calm blueprint via API – Part 2
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”.
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.
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! 🙂