Python client library for Deltacloud API
Project description
A Python client for Deltacloud API REST interface.
Features
Basic operations with images, instances, hardware-profiles and realms
Manage instances using start, stop, destroy and reboot operations
Create new instance from image
Install
pip install deltacloud
Examples
Launching an instance
from deltacloud import Deltacloud
client = Deltacloud('http://localhost:3001/api', 'mockuser', 'mockpassword')
instance = client.create_instance('img1', {'hwp_id': 'm1-small'})
Listing images/hardware profiles/realms/instances
print(client.images()) print(client.hardware_profiles()) print(client.realms()) print(client.instances())
Stopping an instance
instance = client.instances()[0] instance.stop()
Contributions
Michal Fojtik
Tomas Sedovic
Martin Packman
License
Licensed under Apache License, Version 2.0 Copyright (C) 2009 Red Hat, Inc.
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
deltacloud-0.9.1.tar.gz
(4.7 kB
view details)
File details
Details for the file deltacloud-0.9.1.tar.gz.
File metadata
- Download URL: deltacloud-0.9.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fcb06a81993266b3b864e23a8a6fbb1393e6175025275ce4d942ce13c6d153c
|
|
| MD5 |
acd1cc80f3ae5ceda72b65b8345d7ebe
|
|
| BLAKE2b-256 |
1a818713d199e082932b737c0bddd95df9eb9ed370217819715b743d5eb41fad
|