Skip to main content

A python wrapper for the CloudEndure API

Project description

CloudEndure SDK

Python Package

Compatability:
Python Version 3.8

Using CloudEndureSDK

DOCUMENTATION WORK IN PROGRESS...

Example - Backup All Blueprints:
from cloudendure import CloudendureSDK

userApiToken = "{TOKEN}"

client = CloudendureSDK(userApiToken)
client.export_all_bp_csv('blueprint_backup.csv')
Example - List All Projects
from cloudendure import CloudendureSDK

userApiToken = 'token'
projectId = 'projectId'

client = CloudendureSDK(userApiToken)
projects = client.list_projects()
print(projects)
Example - List all project blueprints:
from cloudendure import CloudendureSDK

userApiToken = 'token'
projectId = 'projectId'

client = CloudendureSDK(userApiToken)
blueprints = client.list_blueprint(projectId)
Example - List all machines in a project
from cloudendure import CloudendureSDK

userApiToken = 'token'
projectId = 'projectId'

client = CloudendureSDK(userApiToken)
machines = client.list_machines(projectId)
print(machines)
Example - Get a machine blueprint and export to csv
from cloudendure import CloudendureSDK

userApiToken = 'token'
projectId = 'projectId'
client = CloudendureSDK(userApiToken)

machine = client.get_machine_by_name(machineName='MyMachineName', projectId=projectId)
blueprint = [client.get_blueprint_by_machine(machineId=machine['id'], projectId=projectId)]
print(blueprint)
client.export_bp_csv(filename='export.csv', blueprint=blueprint)
Example - Get Machine by Name
from cloudendure import CloudendureSDK

userApiToken = 'token'
projectId = 'projectId'
client = CloudendureSDK(userApiToken)

machine = client.get_machine_by_name(machineName='MyMachine', projectId=projectId)
print(machine)
Example - Mass update blueprints from csv
from cloudendure import CloudendureSDK

userApiToken = 'token'
projectId = 'projectId'
client = CloudendureSDK(userApiToken)

# Backup All Blueprints
client.export_all_bp_csv('backup.csv') 

r = client.update_machine_blueprint_csv(fileName='update.csv')
print(r)


Project details


Download files

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

Source Distribution

cloudendure2-0.0.4.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cloudendure2-0.0.4-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file cloudendure2-0.0.4.tar.gz.

File metadata

  • Download URL: cloudendure2-0.0.4.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.2

File hashes

Hashes for cloudendure2-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b266f4791fa282e4301cc124123b6270b17309bcb95af512e77b736cd60e087a
MD5 286fb88620190665a21be1f9a98a1eca
BLAKE2b-256 fae868cf26a092426b500a693d779e07a5418ea8d217fd295a8fd88373a23aea

See more details on using hashes here.

File details

Details for the file cloudendure2-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: cloudendure2-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.2

File hashes

Hashes for cloudendure2-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2ada5e57cf2e80f4c81be3cb64ba28883d5a8c0c761038d8b79acdc9b02ab375
MD5 0667a92619a4838c37be464030beb69c
BLAKE2b-256 d761c7af0cf0763c522d4ef322d0f29c02e4da4cb0eb4dca16b3a3a844d58a41

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