Skip to main content

SDK for building applications to work with Enterprise Cloud 2.0

Project description

The eclsdk is a collection of libraries for building applications to work with Enterprise Cloud 2.0.

Usage

The following example simply connects to an Enterprise Cloud 2.0.:

import ecl

conn = ecl.connection.Connection(
    auth_url="http://ecl:5000/v3/",
    project_id="Tenant ID",
    username="API Key",
    password="API Secret Key",
    user_domain_id="default",
    project_domain_id="default")

vols = conn.block_store.volumes()
for vol in vols:
    print vol.name

Token can be used instead of username/password using auth_plugin=’token’:

import ecl

conn = ecl.connection.Connection(
    auth_plugin='token'
    token='my-fancy-token1234'
    auth_url="http://ecl:5000/v3/",
    project_id="Tenant ID")

vols = conn.block_store.volumes()
for vol in vols:
    print vol.name

Documentation

Documentation is available at https://ecl.ntt.com

License

Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for eclsdk, version 0.0.18
Filename, size File type Python version Upload date Hashes
Filename, size eclsdk-0.0.18-py2.py3-none-any.whl (554.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size eclsdk-0.0.18.tar.gz (254.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page