Skip to content

garelp/vcdcli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 

Repository files navigation

vcdcli

Cli for Vmware VCloud Director.

Requirement:

1. HTTPie (apt-get install HTTPie)
2. Requests (apt-get install python-requests)
3. PrettyTable (apt-get install python-prettytable)

Usage:

usage: vcdcli.py [-h] [--login] [--list] [--poweron VAPPON]
                 [--poweroff VAPPOFF] [--show OBJNAME] [--delete OBJTODELETE]
                 [--shutdown VAPPSHUT] [--vdc VDCNAME]
                 [--username VCLOUDUSERNAME] [--password VCLOUDPASSWORD]
                 [--org VCLOUDORG] [--host VCLOUDHOST]
                 [operation]

positional arguments:
  operation             vapp, template, pool ...

optional arguments:
  -h, --help            show this help message and exit
  --login               login with new credentials
  --list                list data
  --poweron VAPPON      Power on Vapp
  --poweroff VAPPOFF    Power off Vapp
  --show OBJNAME        show object
  --delete OBJTODELETE  delete object
  --shutdown VAPPSHUT   Shutdown vapp
  --vdc VDCNAME         select specific pool
  --username VCLOUDUSERNAME
                        VCloud username
  --password VCLOUDPASSWORD
                        VCloud password
  --org VCLOUDORG       VCloud Organisation
  --host VCLOUDHOST     VCloud host

Examples:

1. To list all vapps:
	vcdcli vapp --list
	
2. To list vapp in a specific vdc
	vcdcli vapp --list --vdc VdcName
	
3. Show Vapp info:
	vcdcli vapp --show VappName
	
3. To list all templates:
	vcdcli template --list

4. List all pools (vdc):
	vcdcli pool --list

5. Vapp operations:
	Currently power on/off and shutdown is supported. You can also delete a Vapp.

6. Delete template:
	vcdcli template --delete TmplName

About

VCloud director cli

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages