【中文解释】:克隆人的名字
cloudgenix-idname的Python项目详细描述
id->;CloudGenix的名称转换器
id->;CloudGenix Python SDK的名称转换器
概要
CloudGenix的API对所有对象使用唯一的ID值。
这个快速模块利用cloudgenix python sdk创建一个dictionary对象,其中包含 公共对象列表,由id引用。
一旦创建了这个对象(例如:idname_dict
),就可以快速查找存在id的名称:
idname_dict=cloudgenix_idname.generate_id_name_map(cgx_sess)vpn_link_id='15136303805980148'print('My VPN link is "{}".'.format(idname_dict.get(vpn_link_id,vpn_link_id)))
My VPN link is "SJC Branch ('AT&T' via 'Circuit to AT&T') <-> ('ATT2' via 'Circuit to ATT2') Charlotte DC".
要求
- 活动CloudGenix帐户
- python>;=2.7或>;=3.6
- Python模块:
- cloudgenix=5.1.1b1-https://github.com/CloudGenix/sdk-python
代码示例
- cloudgenix=5.1.1b1-https://github.com/CloudGenix/sdk-python
带有test.py
,它创建一个id->;名称映射并转储到控制台。
许可证
麻省理工学院
版本
Version | Changes |
---|---|
1.2.3 | Fixed minor return issue |
1.2.2 | Add support for Spoke Clusters |
1.2.1 | Add support for SDK >= 5.1.1b1 |
1.2.0 | Add reverse lookup support (name -> ID) to all functions. Reverse lookup has limitations as names are not unique. |
1.1.3 | Resolve Issue #6, enhance Site WAN Interface mapping, add shortcut to generate_id_name_map. |
1.1.2 | Fix minor return issue. |
1.1.1 | Fix issue with tenant_viewonly not being able to read operators. |
1.1.0 | Fix various bugs, issue #1, and Python 3 support |
1.0.0 | Initial Release. |