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 .env
.
like:
NTNX_USER="admin"
NTNX_PASSWORD="nutanix/4u"
NTNX_URL="https://prismcentral.local:9440/api/nutanix/v3"
EIP_UUID="DBCDFED3-994D-4F51-9605-C5799DC8B929"
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 node.js (I recommend using nvm)
- use
npm
or install yarn. - Install required packages with:
npm install
or
yarn install
node main.js