Skip to main content

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.74

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for syneto_api 0.3.74
File Size Uploaded Provenance Actions
syneto_api-0.3.74.tar.gz 16.9 kB Without provenance Details for syneto_api-0.3.74.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for syneto_api 0.3.74
File Interpreter ABI Platform Actions
syneto_api-0.3.74-py3-none-any.whl Python 3 none any Details for syneto_api-0.3.74-py3-none-any.whl

Total release size: 38.2 kB

Release files / syneto_api-0.3.74.tar.gz

Download URL syneto_api-0.3.74.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
94b7ca0880c1b9448b8f16383868fffa55c940db6831cd8be7471c39f96cf240
BLAKE2b-256 checksum
How to use checksums
65555650748460b0da1d37fdeef2883c2c742fcb8e44f3275e8a6a5d16e430e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.9.21 Linux/6.19.10-200.fc43.x86_64

Release files / syneto_api-0.3.74-py3-none-any.whl

Download URL syneto_api-0.3.74-py3-none-any.whl
Size 21.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90cf2ef64e849e6cf7b71883e7c693c751b5197a1d0a638cfdcb85996b269e0d
BLAKE2b-256 checksum
How to use checksums
972824995adfb7db0f5a00654556022e9651603513d77cb802f41e2e3d766b1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.9.21 Linux/6.19.10-200.fc43.x86_64

Security for syneto_api 0.3.74

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.74 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page