Library for interact with v3 Nutanix API
Project description
Nutanix API
- Work in progress
Easily interact with Nutanix API v3
Installation
pip install nutanix-api
Usage
from nutanix_api import NutanixApiClient, NutanixVM, NutanixCluster
client = NutanixApiClient("username", "password", 9440, "https://path/to/endpoint")
# Virtual Machine
vm = NutanixVM.get(client, "61b13e12-1494-11ed-861d-0242ac120002")
vm.turn_off() # Turn VM off
vm.turn_on() # Turn VM on
# Cluster
cluster = NutanixCluster.get(client, "81b13e12-1494-11ed-861d-0242ac120003")
print(cluster.name)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nutanix-api-0.0.13.tar.gz
(7.2 kB
view hashes)
Built Distribution
Close
Hashes for nutanix_api-0.0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 386bd2c0b4909991e7905e3ce1d9b4627aa81a89bf4c5e39278f16b2329068e4 |
|
MD5 | bbe356e039687e1bf0cc3abc4e544b92 |
|
BLAKE2b-256 | ce7ce179b633ba22c3f1aab4fa7be30fc5b8c459184abb5960e84a908cacc3e0 |