This example script uses the API to list all datastores that the user has ability to access.
This query requires sysadmin access and using the System group.
./list-datastores.pl --username USER --password PASS --orgname ORG --hostname HOST
Orgname is optional. It will default to "System" if not given.
To install VMware::vCloud, copy and paste the appropriate command in to your terminal.
cpanm
cpanm VMware::vCloud
CPAN shell
perl -MCPAN -e shell install VMware::vCloud
For more information on module installation, please visit the detailed CPAN module installation guide.