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.11.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for nutanix_api-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2d9163938a6377a3071904c602f9b9f46feda5fc6861211784fd3e18718bc60 |
|
MD5 | bbd8e53c0c27ca25d942a7dc095f5e51 |
|
BLAKE2b-256 | 74771a7214c5c5e1d2c6d0ee8edef59ed805e87fcffb4144a30eba49c2473eb6 |