Cross-posted from my blog, http://www.therealcloudsurgeon.com/2016/04/getting-started-with-delphix-python.html
This post includes a video, in case it gets removed from this post again, here is the link: https://vimeo.com/164779308
Allo everyone. By popular demand, I going to start a short series on using the Delphix python module, "delphixpy". If you have been following my work any time over the last two years and have downloaded the Landshark environment along with Delphix Express
, then you have been a recipient of the benefits of delphixpy.
In short, delphixpy is a way to call the Delphix API from within python so that you can leverage all that object oriented goodness that python provides. This also allows you to treat json as dictionaries and many other powerful things of python. I have posted three common examples for DevOps, CI/CD, and Enterprise Automation shops and did try to meticulously comment them. I have recorded an intro video where I walk you through getting your Landshark environment setup to run the scripts and run the examples against a Landshark environment so that you can easily follow along where ever you are.
There will be much more information to come very soon, we are just getting started! (I apologize in advance for my repetition of the word "neat." It is so weird, but I never realized that I even use that word!)
You can get my examples from GitHub here
You can post questions, etc on the Delphix Community Site here
Landshark and Delphix Express download and setup instructions here
Summary of preparation commands:
- ssh into the Landshark LinuxTarget as the delphix user.
- assume root: su -
- yum install git -y
- pip install virtualenv
- exit root (you should now be the delphix user again)
- git clone https://github.com/CloudSurgeon/delph...
- virtualenv --system-site-packages ~/landshark
- source ~/landshark/bin/activate
- pip install --upgrade -r ~/delphixpy-examples/requirements.txt