一种用于执行va_master api命令的命令行客户机。
vapps的Python项目详细描述
车辆通行许可证cli
此产品允许用户使用命令行通过简单的命令调用va master api函数。
安装
` pip install vapps `
用法
第一次使用该命令时,它将提示您输入用户名、密码和va master的url。
# vapps providers list Could not find a va_master configuration - either the --load-conf path is incorrect, or a configuration has not been generated yet. Please answer the following prompts : Enter the va_master username : admin Enter the va_master password : admin Enter the VA master url. Include the http:// and the port, example : https://127.0.0.1:443 VA master url : https://127.0.0.1:443 [ { 'driver_name': u'vmware', 'location': u'va_master', 'provider_name': u'va-vmware'}]
在此之后,将生成一个配置文件,该文件将使用输入的凭据。
# vapps apps list available [ { u'location': u'va_master', u'provider_name': u'va-vmware', u'provider_usage': { u'used_cpus': 95.0, u'used_disk': 134.41, u'used_ram': 0.01, u'used_servers': 9}, u'servers': [ { u'hostname': u'server_hostname', u'icon': u'fa-server', u'ip': None, u'provider': u'va-vmware', u'size': u'va-small', ... } ] } ]
可用命令
- 提供者
- 列表-打印所有提供商及其名称、位置和驱动程序名称的列表。
- 应用程序
- 列表
- 可用-打印所有应用程序的列表。 运行-打印所有正在运行的应用程序的列表。#尚未实现,还返回所有应用。
目录尚未实现
- 服务
- 列表-打印所有领事服务
- 确定-打印所有返回状态为“通过”的服务 严重-打印所有返回状态为“严重”的服务
- 虚拟专用网
- 列表-列出所有VPN用户 status-返回VPN用户的状态 添加-创建新的VPN用户。使用–username,将使用此用户名创建用户。示例vapps vpn add --username new_vpn_user 获取证书-打印用户的VPN证书。with–username是为其检索证书的用户。示例vapps vpn get-cert--username some_vpn_user