cloudshell-rest-api
Features
- Add Shell - adds a new Shell Entity (supported from CloudShell 8.0)
- Update Shell - updates an existing Shell Entity (supported from CloudShell 8.0)
- Delete Shell - removes an existing Shell Entity (supported from CloudShell 9.2)
- Get Shell - get Shell's information
- Get Installed Standards - gets a list of standards and matching versions installed on CloudShell (supported from CloudShell 8.1)
- Import Package - imports a package to CloudShell
- Export Package - exports a package from CloudShell
Installation
pip install cloudshell-rest-api
Getting started
from cloudshell.rest.api import PackagingRestApiClient
# Loging to CloudShell
client = PackagingRestApiClient.login("HOST", "USERNAME", "PASSWORD", "DOMAIN")
# Or connect with a token
client = PackagingRestApiClient("HOST", "TOKEN")
# Add a new Shell to CloudShell
client.add_shell("SHELL_PATH.zip")
License
- Free software: Apache Software License 2.0