Skip to main content

Syneto Client API library

Project description

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

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

syneto_api-0.3.78.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

syneto_api-0.3.78-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file syneto_api-0.3.78.tar.gz.

File metadata

  • Download URL: syneto_api-0.3.78.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.9 Darwin/25.5.0

File hashes

Hashes for syneto_api-0.3.78.tar.gz
Algorithm Hash digest
SHA256 bb51e22b491e6e799d756bc8c681f10ed535f9a74e61064d8a6747f750f4898b
MD5 085d3e9f0705d6f991cbab3019b4e170
BLAKE2b-256 f807741b6b303bb538aee315741a3f622e7a0b39340d470116af5dce25bdf9e5

See more details on using hashes here.

File details

Details for the file syneto_api-0.3.78-py3-none-any.whl.

File metadata

  • Download URL: syneto_api-0.3.78-py3-none-any.whl
  • Upload date:
  • Size: 22.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.9 Darwin/25.5.0

File hashes

Hashes for syneto_api-0.3.78-py3-none-any.whl
Algorithm Hash digest
SHA256 01968dd5432a9c29ca567b3f244e321a1acadccae88c0d9033361f51440cf684
MD5 ea6dd46233b08d3db7a8a47dc541cf41
BLAKE2b-256 690497aa2d2142816f07625bce36052a6bf829c3dec49bed1b3a0acc8330ae51

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page