CloudGenix AppFabric的python2和python3 sdk
cloudgenix的Python项目详细描述
cloudgenix python sdk v5.1.1b1
CloudGenix AppFabric的python2和python3 sdk
概要
旨在成为cloudgenix api周围的小型轻量级sdk包装器,以便于使用。 初始版本要求知道post/put/patch操作的json/dict对象。
要求
- 活动CloudGenix帐户
- python>;=2.7或>;=3.6
- Python模块:
- 请求+安全附加服务=2.18.4-http://docs.python-requests.org/en/master/
代码示例
- 请求+安全附加服务=2.18.4-http://docs.python-requests.org/en/master/
带有example.py
,显示了获取站点json列表的用法。
超级简化的示例代码(在~4行代码中重写example.py):
# Import the CloudGenix SDK API constructor and JSON response pretty printerfromcloudgeniximportAPI,jd# Instantiate the CloudGenix API constructorcgx_sess=API()# Call CloudGenix API login using the Interactive helpers (Handle SAML2.0 login and MSP functions too!).cgx_sess.interactive.login()# Print a dump of the list of sites for your selected accountjd(cgx_sess.get.sites())
许可证
麻省理工学院
版本
Version | Build | Changes |
---|---|---|
5.1.1 | b1 | Support for November 2018 Controller release. |
5.0.3 | b2 | Enhanced REST API retry handling and options. |
b1 | Support for September 2018 Controller release. | |
5.0.1 | b1 | Support for July 2018 Controller release, New version notifications, Depreciate legacy _single functions. |
4.7.1 | b1 | Support for May 2018 Controller release. |
4.6.1 | b1 | Support for Mar 2018 Controller release. |
4.5.7 | b1 | Support for Feb 2018 Controller release, Bugfix for issue #4 |
4.5.5 | b4 | Bugfix for certain POST APIs, other minor fixes. |
b3 | CA Pinning update, *_single function deprecation, add missed 'security' extras requirement. | |
b2 | Various fixes and cleanup for public release. | |
b1 | Update for 15/12/2017 API additions. | |
4.5.3 | b2 | Initial Internal Release. |
有关详细信息
- 在http://support.cloudgenix.com
- 在
docs/
目录或https://cloudgenix.github.io/sdk-python/查看自动生成的文档。 - 使用
help()
函数在python帮助中查看。(例如:help(cgx_sess.get.login)
)