Skip to content

wanghm/nutanix_api_utils

Repository files navigation

nutanix restapi utilities

Nutanix Rest API Versions and Base URL

  • https://{PrismCentral Host}/api/nutanix/v3/
  • https://{PrismCentral Host}/api/nutanix/v2.0/

Resources

Requirements

  • Python3, requests
    pip install requests

Usage

config file: auth.json

{
    "prism_central_address": "xxx.xxx.xxx.xxx",
    "prism_element_address": "xxx.xxx.xxx.xxx",
    "user_name": "xxxxxxxxx",
    "password": "xxxxxxxxx"
}

import this class

from nutanix_api_utils_v3 import NutanixApiV3Client, RequestResponse
from nutanix_api_v2_utils import NutanixRestapiUtils

Run the test code (Samples)

cd test
python test_nutanix_api_v3_utils.py ../auth.json
python test_nutanix_api_v3_utils_calm.py ../auth.json

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages