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.10.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for nutanix_api-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c38fe32186bc32c7c50ce586406129f4a63ed0adf8fb41cf489dea51168b2730 |
|
MD5 | 6d99bc8aedc100fcb2349eb0cc89aa0e |
|
BLAKE2b-256 | bd0722f4a2cb7927467247a1ded3727ab0c80dc60e75087bd2bdced8f35f18dd |