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.80
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.80.tar.gz | 18.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| syneto_api-0.3.80-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.8 kB
Release files / syneto_api-0.3.80.tar.gz
| Download URL | syneto_api-0.3.80.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5cd16db6dff32326752311f9756724b665577ea4b756ed968008a116a9bca22d
|
|
BLAKE2b-256 checksum How to use checksums |
a50431be22c7064398c45de20b513f3b7fbd5284c1d9251bffa7ed673255e475
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.9 Darwin/27.0.0
|
Release files / syneto_api-0.3.80-py3-none-any.whl
| Download URL | syneto_api-0.3.80-py3-none-any.whl |
|---|---|
| Size | 23.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
758cfed2af4568dc6c33854633aa4c0b1b6db982d977f7199a8f7a30115661d7
|
|
BLAKE2b-256 checksum How to use checksums |
e576775ba9fd649e63335988e63f8d37ec00e5c9228bfb22b52c24e694719acc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.9 Darwin/27.0.0
|