cloudshell rest api的python客户端
cloudshell-rest-api的Python项目详细描述
cloudshell rest api
cloudshell rest api的python客户端
功能
- add shell-添加新的shell实体(受cloudshell 7.2支持) 更新shell -更新现有的shell实体(支持7.2)
- 获取已安装的标准-获取安装在CloudShell上的标准和匹配版本的列表(受CloudShell 8.1支持)
安装
从pypi安装cloudshell rest api python包:
pip install cloudshell-rest-api
开始
请确保在文件开头包含这一行:
from cloudshell.rest.api import PackagingRestApiClient
登录cloudshell:
client = PackagingRestApiClient('SERVER', 9000, 'USER', 'PASS', 'Global')
向cloudshell添加新shell:
client.add_shell('work//NutShell.zip')
许可证
- 免费软件:apache软件许可证2.0
历史记录
8.2.2.0(2019-01-08)
- 向rest api添加了delete shell方法
8.2.0.0(2017-09-19)
- rest api的最新添加。请欢迎获取外壳-返回请求的外壳信息
8.1.1.0(2017-08-27)
- 重新构造update_shell以同时接受shell名称
8.1.0.1(2017-06-12)
- 错误修复
8.1.0.0(2017-06-04)
- 查询cloudshell服务器上安装的标准
7.2.0.6(2016-09-01)
- 的第一个版本,带有“添加外壳”和“更新外壳”功能