<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Clone a new vApp using Python in VMware vCloud™ API Documents</title>
    <link>https://communities.vmware.com/t5/VMware-vCloud-API-Documents/Clone-a-new-vApp-using-Python/ta-p/2783424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since I didn't find a simple Python vCloud API example and there is no Python binding at this time, I wrote an example that instantiates a vApp from a vApp Template in the Catalog.&amp;nbsp; Please see the attached "Python newVapp.zip".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For input parameters it uses an XML document like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;config&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;server&amp;gt;vcd.vmware.com&amp;lt;/server&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;organization&amp;gt;calls&amp;lt;/organization&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;user&amp;gt;calladmin&amp;lt;/user&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;password&amp;gt;vmware&amp;lt;/password&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;orgvdc&amp;gt;CallsOrgVDC1&amp;lt;/orgvdc&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;catalog&amp;gt;Master Images&amp;lt;/catalog&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;vAppTemplate&amp;gt;apitest&amp;lt;/vAppTemplate&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;vAppName&amp;gt;api_vApp&amp;lt;/vAppName&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;vAppDesc&amp;gt;example vApp created by vCloud API&amp;lt;/vAppDesc&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;vAppNetwork&amp;gt;calls internal&amp;lt;/vAppNetwork&amp;gt;&lt;BR /&gt;&amp;lt;/config&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, your source vApp Template should be fully configured for network and making identical copies because this simple example powers on the new vApp behind a network fence (that is - natRouted instead of bridged). And this example does not address the numerous options around new network connections or guest customization in each VM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully you will find this simple example somewhat helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jan 2011 22:58:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-03T22:58:46Z</dc:date>
    <item>
      <title>Clone a new vApp using Python</title>
      <link>https://communities.vmware.com/t5/VMware-vCloud-API-Documents/Clone-a-new-vApp-using-Python/ta-p/2783424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since I didn't find a simple Python vCloud API example and there is no Python binding at this time, I wrote an example that instantiates a vApp from a vApp Template in the Catalog.&amp;nbsp; Please see the attached "Python newVapp.zip".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For input parameters it uses an XML document like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;config&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;server&amp;gt;vcd.vmware.com&amp;lt;/server&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;organization&amp;gt;calls&amp;lt;/organization&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;user&amp;gt;calladmin&amp;lt;/user&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;password&amp;gt;vmware&amp;lt;/password&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;orgvdc&amp;gt;CallsOrgVDC1&amp;lt;/orgvdc&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;catalog&amp;gt;Master Images&amp;lt;/catalog&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;vAppTemplate&amp;gt;apitest&amp;lt;/vAppTemplate&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;vAppName&amp;gt;api_vApp&amp;lt;/vAppName&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;vAppDesc&amp;gt;example vApp created by vCloud API&amp;lt;/vAppDesc&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;vAppNetwork&amp;gt;calls internal&amp;lt;/vAppNetwork&amp;gt;&lt;BR /&gt;&amp;lt;/config&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, your source vApp Template should be fully configured for network and making identical copies because this simple example powers on the new vApp behind a network fence (that is - natRouted instead of bridged). And this example does not address the numerous options around new network connections or guest customization in each VM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully you will find this simple example somewhat helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 22:58:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vCloud-API-Documents/Clone-a-new-vApp-using-Python/ta-p/2783424</guid>
      <dc:creator />
      <dc:date>2011-01-03T22:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Clone a new vApp using Python</title>
      <link>https://communities.vmware.com/t5/VMware-vCloud-API-Documents/Clone-a-new-vApp-using-Python/tac-p/2783425#M8</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where did you find the Python vCloud API ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Mar 2012 22:48:29 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vCloud-API-Documents/Clone-a-new-vApp-using-Python/tac-p/2783425#M8</guid>
      <dc:creator>dfamorato</dc:creator>
      <dc:date>2012-03-04T22:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Clone a new vApp using Python</title>
      <link>https://communities.vmware.com/t5/VMware-vCloud-API-Documents/Clone-a-new-vApp-using-Python/tac-p/2783426#M9</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no Python binding for the vCloud API as this time.&amp;nbsp; So in this Python example I am using the Python methods directly for accessing a REST API in general and the vCloud REST API in particular.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Mar 2012 22:57:51 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vCloud-API-Documents/Clone-a-new-vApp-using-Python/tac-p/2783426#M9</guid>
      <dc:creator />
      <dc:date>2012-03-04T22:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Clone a new vApp using Python</title>
      <link>https://communities.vmware.com/t5/VMware-vCloud-API-Documents/Clone-a-new-vApp-using-Python/tac-p/2783427#M10</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But Bill, hasn't VMware announced almost 2 years ago the Open-Source Python SDK for vCloud API ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.vmware.com/company/news/releases/vcloud-api.html"&gt;http://www.vmware.com/company/news/releases/vcloud-api.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Mar 2012 23:01:12 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vCloud-API-Documents/Clone-a-new-vApp-using-Python/tac-p/2783427#M10</guid>
      <dc:creator>dfamorato</dc:creator>
      <dc:date>2012-03-04T23:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Clone a new vApp using Python</title>
      <link>https://communities.vmware.com/t5/VMware-vCloud-API-Documents/Clone-a-new-vApp-using-Python/tac-p/2783428#M11</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but it never materialized, I'm afraid.&amp;nbsp; I have not heard if/when a Python binding will be available.&amp;nbsp; You might try asking the question over on the vCloud API community forum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Mar 2012 23:06:15 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vCloud-API-Documents/Clone-a-new-vApp-using-Python/tac-p/2783428#M11</guid>
      <dc:creator />
      <dc:date>2012-03-04T23:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Clone a new vApp using Python</title>
      <link>https://communities.vmware.com/t5/VMware-vCloud-API-Documents/Clone-a-new-vApp-using-Python/tac-p/2783429#M12</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to do a little thread Necromancy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a python library that support vcloud&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://libcloud.apache.org/supported_providers.html"&gt;http://libcloud.apache.org/supported_providers.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Dec 2012 06:16:44 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vCloud-API-Documents/Clone-a-new-vApp-using-Python/tac-p/2783429#M12</guid>
      <dc:creator>MyersCarpenter</dc:creator>
      <dc:date>2012-12-30T06:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Clone a new vApp using Python</title>
      <link>https://communities.vmware.com/t5/VMware-vCloud-API-Documents/Clone-a-new-vApp-using-Python/tac-p/2783430#M13</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could some one please help me on the issue below, i am using the vcloud director 5.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[xxxxxx@localhost newVapp]$ python newVApp.py&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;base_url:&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://10.10.51.8/api/v1.0"&gt;https://10.10.51.8/api/v1.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "newVApp.py", line 37, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; resp = urllib2.urlopen(base_url + '/login')&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/local/lib/python2.7/urllib2.py", line 126, in urlopen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return _opener.open(url, data, timeout)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/local/lib/python2.7/urllib2.py", line 397, in open&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; response = meth(req, response)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/local/lib/python2.7/urllib2.py", line 510, in http_response&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'http', request, response, code, msg, hdrs)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/local/lib/python2.7/urllib2.py", line 435, in error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return self._call_chain(*args)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/local/lib/python2.7/urllib2.py", line 369, in _call_chain&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = func(*args)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "/usr/local/lib/python2.7/urllib2.py", line 518, in http_error_default&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)&lt;/P&gt;&lt;P&gt;urllib2.HTTPError: HTTP Error 406: Not Acceptable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 10:35:17 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vCloud-API-Documents/Clone-a-new-vApp-using-Python/tac-p/2783430#M13</guid>
      <dc:creator>justsanjeev</dc:creator>
      <dc:date>2014-07-21T10:35:17Z</dc:date>
    </item>
  </channel>
</rss>

