Skip to main content

Python wrapper for CloudShell Sandbox API

Project description

Installation

pip install cloudshell_sandboxapi_wrapper

Example Usage

from cloudshell_sandboxapi_wrapper.SandboxAPI import SandboxAPI
sandbox = SandboxAPI(host=SERVER_NAME, username=USERNAME, password=PASSWORD, domain=DOMAIN, port=SERVER_PORT)
blueprints = sandbox.get_blueprints()
blueprint_id = sandbox.get_blueprint_details(blueprint_id=BLUEPRINT_NAME)['id']
sandbox_id = sandbox.start_sandbox(BLUEPRINT_NAME, PT23H, SANDBOX_NAME)
sandbox.stop_sandbox(sandbox_id)

Note:Tested on cloudshell 9.3 with Python 2.7/3.7/3.8. For API details, please refer to CloudShell Sandbox API help: CloudShell Sandbox API

Project details


Release history Release notifications

Download files

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

Files for cloudshell-sandboxapi-wrapper, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size cloudshell_sandboxapi_wrapper-1.0.0.tar.gz (3.9 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