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.77.tar.gz (17.0 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.77-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: syneto_api-0.3.77.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.9.2 Darwin/24.6.0

File hashes

Hashes for syneto_api-0.3.77.tar.gz
Algorithm Hash digest
SHA256 fe79e9d939651c96879757cc2bb2360ad9eca594b8f217f9b9fe91fb929dabf9
MD5 437076ae889af7d08acfecdb5935105e
BLAKE2b-256 9e8327990fbecbb386d5946151302a60d849efbda5d14bec46e58a1bf491db30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: syneto_api-0.3.77-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.9.2 Darwin/24.6.0

File hashes

Hashes for syneto_api-0.3.77-py3-none-any.whl
Algorithm Hash digest
SHA256 af770db5c36c0f3c5698f990a96e395d14c81183505abfc8b4d3dfb932da603a
MD5 28a92b9ac9802db502cd5330c0c74b38
BLAKE2b-256 83306697412c57cdab2c28b7a165a9fe046ffdc3421627d81cad2ea4c6f0ba2f

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