tag:blogger.com,1999:blog-19993209332880365292024-03-12T17:07:56.890-07:00vCloud Air CLI as Docker containerAnonymoushttp://www.blogger.com/profile/01794616263730443624noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-1999320933288036529.post-55955285072786015402015-08-21T06:44:00.000-07:002015-08-21T06:44:06.222-07:00vCloud Air CLI as Docker container<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Georgia, Times New Roman, serif;"><br />Now have the ability to consume vCA (vCloud Air) services through vCA CLI Docker image.</span><br />
<span style="font-family: Georgia, Times New Roman, serif;"><br /></span>
<br />
<div style="text-align: justify;">
<span style="font-family: Georgia, Times New Roman, serif;"><b><u>vCA CLI</u></b> – Command Line Interface for VMware vCloud Air was launched recently for Ubuntu and Mac OS X. It supports vCloud Air On Demand and Subscription model, it also supports standalone vCloud Director. Now, it can be leveraged independent of any OS or any linux distribution. In this blog, it will be demonstrated that how to take advantage of the packaged vCA CLI Docker image to quickly get going with vCA CLI regardless of what client OS Distribution you’re using as long as you have access to Docker engine.</span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia, Times New Roman, serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Georgia, 'Times New Roman', serif;">1. Docker can be installed as per the below documentation for variety of OS;</span><br />
<br />
<span style="font-family: Georgia, 'Times New Roman', serif; text-align: left;"> </span><a href="https://docs.docker.com/installation/" style="font-family: Georgia, 'Times New Roman', serif; text-align: left;">https://docs.docker.com/installation/</a><br />
<span style="font-family: Georgia, Times New Roman, serif;"><br /></span><span style="font-family: Georgia, 'Times New Roman', serif; text-align: left;">2. After the installation of the docker engine. Just pull the vca-cli docker image from docker hub;</span><br />
<span style="font-family: Georgia, Times New Roman, serif;"><br /></span><span style="font-family: Georgia, 'Times New Roman', serif; text-align: left;"> docker pull vkohli/vca-cli </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"><br /></span><span style="font-family: Georgia, 'Times New Roman', serif; text-align: left;">3. Run the docker container and attach to its bash shell;</span></div>
<div>
<div style="text-align: left;">
<span style="font-family: Georgia, Times New Roman, serif;"> $docker run –i –t vkohli/vca-cli /bin/bash<br /> root@aba17a142b96:/# vca<br /> Usage: vca [OPTIONS] COMMAND [ARGS]...<br /><br /> VMware vCloud Air Command Line Interface.<br /> Options:<br /> -p, --profile <profile> Profile id<br /> -v, --version Show version<br /> -d, --debug Enable debug<br /> -j, --json Results as JSON object<br /> -x, --xml Results as XML document<br /> -i, --insecure Perform insecure SSL connections<br /> -h, --help Show this message and exit.</span></div>
<div style="text-align: left;">
<span style="font-family: Georgia, 'Times New Roman', serif;"> </span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span></div>
<div style="text-align: left;">
<span style="font-family: Georgia, 'Times New Roman', serif;"> </span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><span style="font-family: Georgia, Times New Roman, serif;">Commands:</span></div>
<div style="text-align: left;">
<span style="font-family: Georgia, 'Times New Roman', serif;"> </span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><span style="font-family: Georgia, Times New Roman, serif;">blueprint Operations with Blueprints </span><span style="font-family: Georgia, Times New Roman, serif;"> </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"> catalog Operations with Catalogs</span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"> deployment Operations with Deployments</span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"> dhcp Operations with Edge Gateway DHCP Service</span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"> disk Operations with Independent Disks</span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"> events Operations with Events</span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"> example vCloud Air CLI Examples</span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"> firewall Operations with Edge Gateway Firewall Rules</span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"> gateway Operations with Edge Gateway</span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"> instance Operations with Instances</span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"> login Login to a vCloud service</span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"> logout Logout from a vCloud service</span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"> nat Operations with Edge Gateway NAT Rules</span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"> network Operations with Networks</span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"> org Operations with Organizations</span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"> plan Operations with Plans</span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"> status Show current status</span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"> vapp Operations with vApps</span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"> vdc Operations with Virtual Data Centers (vdc)</span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"> vm Operations with Virtual Machines (VMs)</span><span style="font-family: Georgia, 'Times New Roman', serif;"> </span><br />
<span style="font-family: Georgia, Times New Roman, serif;"> vpn Operations with Edge Gateway VPN</span><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIV2IjEzfdFEHGdp_JyDI6hRSMTAkQ_FEQPs9fzdSHgJOeP1yNBOf6-UKlPDQEct37jvChzeStDKUEQcfltF-3dARcgIJXy6Ir0_ImSEa0Vj9Wo2D2a2m4eQCMOg8WyeXL-Vr5tfCFIJ2J/s1600/Image_1.png" style="margin-left: auto; margin-right: auto;"><img alt="" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIV2IjEzfdFEHGdp_JyDI6hRSMTAkQ_FEQPs9fzdSHgJOeP1yNBOf6-UKlPDQEct37jvChzeStDKUEQcfltF-3dARcgIJXy6Ir0_ImSEa0Vj9Wo2D2a2m4eQCMOg8WyeXL-Vr5tfCFIJ2J/s400/Image_1.png" title="vCA-CLI running on single host" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><u>vCA-CLI normal functionality on single Host</u></td></tr>
</tbody></table>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjppVFYfdCG6a2czLUeBbFp_OusD8ERAy0apHFgIYez9GylUTxyuGM4khyphenhyphenjqrAJqQ8vSCj0bZ3nJT_rtXDXAeHeNNZB6UHiyYA9DmjLzIilXqeByYxIHWG-eWEmnDJLMnUdeqeZEEzoE_g3/s1600/Image_2.png" style="margin-left: auto; margin-right: auto;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjppVFYfdCG6a2czLUeBbFp_OusD8ERAy0apHFgIYez9GylUTxyuGM4khyphenhyphenjqrAJqQ8vSCj0bZ3nJT_rtXDXAeHeNNZB6UHiyYA9DmjLzIilXqeByYxIHWG-eWEmnDJLMnUdeqeZEEzoE_g3/s400/Image_2.png" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><u>vCA-CLI functionality with Docker Container</u></td></tr>
</tbody></table>
<span style="font-family: Georgia, Times New Roman, serif;"><br />The advantage of having the vca-cli docker image is to;<br /><br />1. Run it independent of the underlying OS,the only requirement is docker engine.<br /><br />2. All the dependencies and installation process of vCA-CLI is taken care in the packaged docker image.<br /><br />3. Multi-user support: Currently vCA-CLI does not support multi-user login and usage from the same host machine. But using docker image one host machine can be used to support mutli-user requirement as multiple docker containers (independent instance of vca-cli) can be spawned for each user on the same host as shown in the figures above.</span><br />
<span style="font-family: Georgia, Times New Roman, serif;"><br /></span>
<span style="font-family: Georgia, Times New Roman, serif;">Start using the vca-cli, please visit the official github page for more details;</span><br />
<span style="font-family: Georgia, Times New Roman, serif;"><br /><a href="https://github.com/vmware/vca-cli">https://github.com/vmware/vca-cli</a></span><span style="font-family: Georgia, Times New Roman, serif;"><br /></span></div>
<div class="MsoListParagraph" style="background: white; text-indent: -.25in;">
<o:p></o:p></div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/01794616263730443624noreply@blogger.com0