<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 13px;">
<div style="">Hi Guys,</div>
<div style=""><br>
</div>
<div style="">Trying to utilise the Proxmox 2.0 REST API, by POSTing to /api2/json/nodes/vz1/openvz (vz1 being the node name) to create a new OpenVZ container. Cannot seem to get the correct syntax for "ostemplate", can someone please clarify the format?</div>
<div style=""><br>
</div>
<div style="">See below for an example HTTP response:</div>
<div style=""><br>
</div>
<div style="">
<div>HTTP/1.1 500 unable to parse directory volume name '/var/lib/vz/template/cache/debian-6.0-standard_6.0-4_amd64.tar.gz'</div>
<div>Date: Thu, 19 Apr 2012 23:43:36 GMT</div>
<div>Server: Apache</div>
<div>Pragma: no-cache</div>
<div>Cache-control: no-cache</div>
<div>Content-Length: 170</div>
<div>Connection: close</div>
<div>Content-Type: text/plain; charset=iso-8859-1</div>
<div>Expires: Thu, 19 Apr 2012 23:43:36 GMT</div>
<div><br>
</div>
<div>I have tried various formats, including "local:debian-6.0-standard_6.0-4_amd64.tar.gz" and "local:/var/lib/vz/template/cache/debian-6.0-standard_6.0-4_amd64.tar.gz" but can't quite put my finger on it. The documentation doesnt clarify the input format.</div>
<div><br>
</div>
<div>Regards,</div>
</div>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<p class="p1"></p>
<div style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px">
<font><font face="Arial,sans-serif" size="4" color="#0088CF" style="font-family:Tahoma,Arial,Helvetica; font-size:11pt"><span style="font-size:13.5pt">Nathan Sullivan</span></font><font face="Arial,sans-serif"><br>
</font><font class="Apple-style-span" color="#cccccc" face="Arial, sans-serif">Voice Specialist</font></font></div>
<div style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px">
<font><font face="Helvetica,sans-serif" size="2" color="black" style="font-family:Tahoma,Arial,Helvetica; font-size:11pt"><span style="font-size:10pt">NetSIP pty ltd – An Impirical Company</span></font><font face="Helvetica,sans-serif" size="2" color="black" style="font-family:Tahoma,Arial,Helvetica; font-size:11pt"><span style="font-size:10pt"><br>
Level 3, 24 Little Edward St, Spring Hill QLD 4000</span></font><font face="Helvetica,sans-serif"><font class="Apple-style-span" color="#0088cf"><br>
</font></font><font face="Helvetica,sans-serif" size="2" color="#0088CF" style="font-family:Tahoma,Arial,Helvetica; font-size:11pt"><span style="font-size:10pt">t    </span></font><font face="Helvetica,sans-serif" size="2" color="black" style="font-family:Tahoma,Arial,Helvetica; font-size:11pt"><span style="font-size:10pt">1300
 638 747</span></font><font face="Helvetica,sans-serif" size="2" color="#1F497D" style="font-family:Tahoma,Arial,Helvetica; font-size:11pt"><span style="font-size:10pt"><br>
</span></font><font face="Helvetica,sans-serif" size="2" color="#0088CF" style="font-family:Tahoma,Arial,Helvetica; font-size:11pt"><span style="font-size:10pt">e   <a href="mailto:nathan.sullivan@netsip.com.au">nathan.sullivan</a></span></font><font face="Helvetica,sans-serif" size="2" style="font-family:Tahoma,Arial,Helvetica; font-size:11pt"><span style="font-size:10pt"><a href="mailto:nathan.sullivan@netsip.com.au">@netsip.com.au</a></span></font><font face="Helvetica,sans-serif" size="2" color="black" style="font-family:Tahoma,Arial,Helvetica; font-size:11pt"><span style="font-size:10pt">     </span></font><font face="Helvetica,sans-serif" size="2" style="font-family:Tahoma,Arial,Helvetica; font-size:11pt"><span style="font-size:10pt"><font color="#0088CF"><a href="http://www.netsip.com.au">www.netsip.com.au</a></font></span></font></font></div>
<p></p>
<div style="font-family:Tahoma; font-size:13px"></div>
</div>
</div>
</div>
</div>
</body>
</html>