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.20.tar.gz
(8.9 kB
view details)
Built Distribution
File details
Details for the file nutanix-api-0.0.20.tar.gz
.
File metadata
- Download URL: nutanix-api-0.0.20.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb8f57ccca722097cba17dde51419ee79074aeb1a759b5c2a82089810529742c |
|
MD5 | d500f90fa07b4a3031e19df57229ff3d |
|
BLAKE2b-256 | 2b3cf0e06c2a5b75357fbd18061c2bdcca7ae3f6004ca47182d9e27732c14e1c |
File details
Details for the file nutanix_api-0.0.20-py3-none-any.whl
.
File metadata
- Download URL: nutanix_api-0.0.20-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7b4b4691d5782e3047c1d103f4ed37bf010d3dd95ba819d8abd764cc9507e0a |
|
MD5 | cb8debd5a94d9f879f570617a6d341a4 |
|
BLAKE2b-256 | e7dba8a5abaae5e5be0af33cf85ba6944f5af330e4820b68c2e2797d2e3a078e |