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.

Source Distribution

cloudshell_sandboxapi_wrapper-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file cloudshell_sandboxapi_wrapper-1.0.0.tar.gz.

File metadata

  • Download URL: cloudshell_sandboxapi_wrapper-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for cloudshell_sandboxapi_wrapper-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5afe025327d30b4ed5fac8bcc4b5ec1d0fe95da0ce3fee4d8bf08b7200f40b35
MD5 0a926c2ed955a9d32f48764789201d97
BLAKE2b-256 48b4a2731217adc0d3848fa70b6d8339e3b095641b854f7a311f2f087b8a108d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page