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.73.tar.gz (16.9 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.73-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for syneto_api-0.3.73.tar.gz
Algorithm Hash digest
SHA256 2906337076cbdff6a071087fa993a888c84c8a7d471ec01bf27b4dfc92868045
MD5 50bf9a432485a12ece5d5df9ac2548d4
BLAKE2b-256 2b272b891e59369ac528561e37085e2fb2f39afc4fb50e35dd8df36a60d5407d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for syneto_api-0.3.73-py3-none-any.whl
Algorithm Hash digest
SHA256 3e8de10f729d15c526fd7ac3f870992230d0f3336091e1b7b541d70bf84cd1f7
MD5 c1a432edc1e0e3e5489227192a2fb39e
BLAKE2b-256 c59a148334e7e2766e4461653aefb2eb5babbe360f014aa3a54c12b0ecfac1a5

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