Get information from Prism Element or Prism Central and generate data file for EfficientIP Cloud Observer.
The generated file must be pushed to the /data1/tmp/cloud_observer/ of the EfficientIP SOLIDserver to be integrated through the normal croned job (every minute).
Nutanix API v3 is available on Nutanix developper website
Swagger in also available on Prism UI. By default v2 is presented. Change URL to v3 to see it.
Use the sample file to create a config.ini
.
like:
[nutanix]
user=admin
password=pass
url=https://prism.local:9440/api/nutanix/v3
[eip]
uuid=DBCDFED3-994D-4F51-9605-C5799DD5B929
EIP_IP=10.10.10.1
EIP_USER=cloudobserver
EIP_PATH=/home/cloudobserver
Folder name is based on cluster name.
Instance name is based on VM name (excluding Nutanix CVM).
Network name is based on Nutanix Subnet defined on the cluster.
Each VM Network interface has 1 Mac address, multiple IP addresses connected to 1 Network.
- Install python3
- Create an environment and activate it (venv documentation)
- Install required packages with:
pip install -r requirements.txt
python main.py