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.76.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.76-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: syneto_api-0.3.76.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.76.tar.gz
Algorithm Hash digest
SHA256 c38d95b25b1e5b64ef879de74376d67cc7560154d9dd32a76eee254527bc3247
MD5 c4a182c01c70b01c4b0527c4bd57ab24
BLAKE2b-256 d6d68b03816cf0c2e278f8fd05d6b4db661d19eba5c77c23fabc399f306e63c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: syneto_api-0.3.76-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.76-py3-none-any.whl
Algorithm Hash digest
SHA256 68b08af0727c7fbd292d003244b0c584c9358c30b77a1e5171fa3e63ec0d547f
MD5 993e366a2adaf8a85c3108b79b930cad
BLAKE2b-256 f1355499caec0850e12176c6426dbbd9df4f647e4d324dc5c4de2981338e7835

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