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


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

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page