This section covers how to automate Cisco Intersight. We will be running scripts and configurations against the Cisco Intersight - Manage Infrastructure from the Cloud v1 pod on Cisco dCloud.
Follow the instructions on the main landing page of this repo to clone it and install dependencies.
Change into this directory:
cd https://github.com/xanderstevenson/data-center-development/intersightInstall the Intersight library
pip install intersightGo to Cisco Intersight - Manage Infrastructure from the Cloud v1 on Cisco dCloud
Click View and then Go to Intersight
From the top menu, choose System
Choose Generate API Key > version 3 (giving it any name and expiration > copy and save the API Key ID and download the Secret Key.
Copy the Secret key from your Downloads to this dir (data-center-development/intersight)
Export the API Key and Secret Key in the authenticate.py file like so (be sure you're in your virtual environment):
Linux/Mac
export intersight_api_key="<your api key>"
export intersight_api_key_file="../<your secret key>.txt"
Windows
set intersight_api_key=<your api key>
set intersight_api_key_file=..\<your secret key>.txt

