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.72.tar.gz (16.2 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.72-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: syneto_api-0.3.72.tar.gz
  • Upload date:
  • Size: 16.2 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.72.tar.gz
Algorithm Hash digest
SHA256 02b970203c3b471400e8c5b969adc63651be4abe0d575a1694ad675dfd78520c
MD5 58ef15f6d9d3f6ce024ebef1f580fcf6
BLAKE2b-256 74e5ee5a844560d5d89ab7de2c95cce867f60483dece0c1c11032503bfdb9a9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: syneto_api-0.3.72-py3-none-any.whl
  • Upload date:
  • Size: 20.1 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.72-py3-none-any.whl
Algorithm Hash digest
SHA256 3d11623484ac7f49b326ba3400cf722934c768d935857a2c02568be5a157ed3b
MD5 22ea78390a5951a84de43443339e7df7
BLAKE2b-256 c1f57e48d3cc0e97b4999df32e5ed4a3ce51364b69154f58b90cf729e4481405

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