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.9.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for nutanix_api-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18369aefd0c9aaed25eb4afc7df584bac3fc6c14637bf67bdd53618de201e8b4 |
|
MD5 | 38f44ca353311b9b35bae6e5578bd10f |
|
BLAKE2b-256 | aae2cdd697c5bb9d6b60216711345c3c2e0a844617d0b56dddf511183af55515 |