https://github.com/nttcom/eclsdk
Enterprise Cloud Python SDK
https://github.com/nttcom/eclsdk
Last synced: about 2 months ago
JSON representation
Enterprise Cloud Python SDK
- Host: GitHub
- URL: https://github.com/nttcom/eclsdk
- Owner: nttcom
- License: apache-2.0
- Created: 2017-03-30T05:45:19.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2026-01-14T08:07:28.000Z (2 months ago)
- Last Synced: 2026-01-14T08:26:01.340Z (2 months ago)
- Language: Python
- Homepage:
- Size: 2.74 MB
- Stars: 5
- Watchers: 14
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Enterprise Cloud 2.0 Python SDK
================================
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