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.17.tar.gz
(8.9 kB
view hashes)
Built Distribution
Close
Hashes for nutanix_api-0.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 927bcce553e4cd7997689764122c4b6ed701e5c9250d66a4b460cfc1760adbf9 |
|
MD5 | 57c4c808dfa71f430621c687e137a5c0 |
|
BLAKE2b-256 | a1b284dd9f6a3153f6c767f8bb796d315ae829e60e2f0281634f2e9ab379e88b |