Syneto API
Syneto Client API library: authentication, storage, virtualization and protection
Installation
$ pip install syneto-api
Basic Usage
from syneto_api import Authentication, Virtualization, Storage, Protection
auth_api = Authentication(url_base="https://syneto-instance-ip-address/api/auth", insecure_ssl=True)
response = auth_api.login(username="admin", password="admin")
jwt = response['jwt']
virt_api = Virtualization(url_base="https://syneto-instance-ip-address/api/virtualization", insecure_ssl=True)
virt_api.set_auth_jwt(jwt)
print(virt_api.get_vms())
storage_api = Storage(url_base="https://syneto-instance-ip-address/api/storage", insecure_ssl=True)
storage_api.set_auth_jwt(jwt)
print(storage_api.get_pools())
Environment Variables
For conveninence, the base urls for the api endpoints are also accepted as environment variables, please see below.
AUTHORIZATION_USER=admin
AUTHORIZATION_PASS=admin
AUTHORIZATION_SERVICE=https://syneto-instance-ip-address/api/auth
VIRTUALIZATION_SERVICE=https://syneto-instance-ip-address/api/virtualization
STORAGE_SERVICE=https://syneto-instance-ip-address/api/storage
PROTECTION_SERVICE=https://syneto-instance-ip-address/api/protection
If you are using self-signed SSL certificates, set the following env. so that the http request library does not perform ssl verification.
ALLOW_INSECURE_SSL=True
Publishing
See RELEASE.md
Metadata
Release files for syneto_api 0.3.79
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| syneto_api-0.3.79.tar.gz | 19.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| syneto_api-0.3.79-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.9 kB
Release files / syneto_api-0.3.79.tar.gz
| Download URL | syneto_api-0.3.79.tar.gz |
|---|---|
| Size | 19.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87daf5f647ed5cd379fdb97d66e38618a1bd0a5859aa83f66dc57db807009cd5
|
|
BLAKE2b-256 checksum How to use checksums |
fda24db99bc3ea10855e08cd1aea8252d61ae2b577a067d9fa971a2fd05844ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.9.21 Linux/7.1.8-200.fc44.x86_64
|
Release files / syneto_api-0.3.79-py3-none-any.whl
| Download URL | syneto_api-0.3.79-py3-none-any.whl |
|---|---|
| Size | 22.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b1838fcff8725c04b8cd6bbea7b88ffa5995485f2e26ac39e82d8829c5ee4e2
|
|
BLAKE2b-256 checksum How to use checksums |
e1a2d3cfb39d3d1d2052b3634be5f7fa10570c65e9b10f81db3c610d2b8bd03f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.9.21 Linux/7.1.8-200.fc44.x86_64
|