DevNet Workshop ACI API Devarshi Shah – Technical Marketing Engineer, INSBU DEVNET-2054
Workshop objectives •
This workshop will step through installing the ACI Cobra Python SDK
•
The SDK files can be installed on Windows/Unix/Linux environments. This presentation will guide the user through the installation on Windows 10 using the dCloud environment. Installation steps may vary for Unix/Linux environments
•
All Cobra SDK documentation and egg files can be downloaded directly from the APIC
•
We will also use API inspector to capture an API post message and use the arya tool to convert JSON to python script
Cobra SDK installation requirements It is recommended to have the following installed prior to installing the SDK • Python 2.7 • easy_install • pip • virtualenv (recommended but not used in the workshop) The dCloud environment has Python 2.7.8 installed. Version 2.7.9 or above automatically comes with setup_tools (easy_install) and pip. For ease of installation we will upgrade Python 2.7.8 to 2.7.13
Automate script creation with arya arya is a tool that will convert XML or JSON posts into equivalent Python code leveraging the Cobra SDK arya can be installed using pip