A command line client for executing va_master api commands.
Project description
Vapps CLI
This product allows users to use the command line to call VA master API functions by using simple commands.
Installation
` pip install vapps `
Usage
The first time you use the command, it will prompt you for a username, password and the URL of Your VA master.
# 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'}]
After this, a config file is generated which will use the entered credentials.
# 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',
...
}
]
}
]
Available Commands
- providers
list - Prints a list of all providers and their name, location and driver name.
- apps
- list
available - Prints a list of all apps. running - Prints a list of all running apps. #Not yet implemented, also returns all apps.
directory #Not yet implemented
- services
- list - Prints all consul services
ok - Prints all services which returned with status “passing” critical - Prints all services which returned with status “critical”
- vpn
list - Lists all VPN users status - Returns the status of VPN users add - Creates a new VPN user. With –username, the user will be created with this username. Example vapps vpn add --username new_vpn_user get-cert - Prints the VPN certificate for the user. With –username, the user for which the certificate is retrieved. Example vapps vpn get-cert --username some_vpn_user
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vapps-1.1.9.tar.gz.
File metadata
- Download URL: vapps-1.1.9.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c8472e1110fe5c88ae53a79b9aa416822ed8a436480896071a3ab1044819901
|
|
| MD5 |
8d2bc18a53c603921f0c3bb29d01ceb4
|
|
| BLAKE2b-256 |
d3a4b6c268d3ef10a963949ecbcefbed8f00e88e25023445fb38bdd16a8af952
|
File details
Details for the file vapps-1.1.9-py2-none-any.whl.
File metadata
- Download URL: vapps-1.1.9-py2-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48621afa7d9bd312aeeeabb18248cb23509da37316e3c00b8714e7e1adbd0ab1
|
|
| MD5 |
af078fdc13688494542601a978fdf0bc
|
|
| BLAKE2b-256 |
55be82031f8702a90de57d38a88cda1ec3ec531749bcfb94b7c1baa24c724395
|