- https://{PrismCentral Host}/api/nutanix/v3/
- https://{PrismCentral Host}/api/nutanix/v2.0/
- Code Samples:
https://www.nutanix.dev/code_samples/ - API references:
https://www.nutanix.dev/api-reference-v3/
https://www.nutanix.dev/api_references/prism-v2-0/ - API Explorer:
https://{PrismCentral}:9440/api/nutanix/v3/api_explorer/index.html https://{PrismElement}:9440/api/nutanix/v2/api_explorer/index.html
- Python3, requests
pip install requests
{
"prism_central_address": "xxx.xxx.xxx.xxx",
"prism_element_address": "xxx.xxx.xxx.xxx",
"user_name": "xxxxxxxxx",
"password": "xxxxxxxxx"
}
from nutanix_api_utils_v3 import NutanixApiV3Client, RequestResponse
from nutanix_api_v2_utils import NutanixRestapiUtils
cd test
python test_nutanix_api_v3_utils.py ../auth.json
python test_nutanix_api_v3_utils_calm.py ../auth.json