Till Brehm
2016-07-24 b9a3ef486ebcde18a5ade37865ff8f397185d24f
commit | author | age
413d3b 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
00333e 2 <html><head><title>ISPCOnfig 3 remote API documentation</title>
413d3b 3
T 4   
5
6   
7   
8   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
9   <link rel="stylesheet" type="text/css" href="definitionen.css">
10   <style type="text/css">
11   </style></head>
12
13 <body>
14 <div style="padding:40px">
15 <h1>openvz_get_free_ip(<span class="var">$session_id</span>, <span class="var">$server_id</span> = 0);</h1>
16 <br>
17 <p class="headgrp">Description: </p>
18 <p class="margin"> Shows the unreserved IPs for openvz virtual machines.</p><br>
19 <p class="headgrp">Input Variables: </p> 
20 <p class="margin"> <span class="var">$session_id</span>, <span class="var">$server_id</span> = 0</p>
21 <p class="headgrp">Parameters (in <span class="var">$params</span>): </p>
22 <p class="margin"> None</p>
23 <p class="headgrp">Output: </p> 
24 <p class="margin"> Returns the IPs available for an openvz virtual machine.</p>
25 <p><span class="headgrp">SQL Interaction</span> (the matching server ID condition is left out if <span class="var">$server_id</span>=0):</p>
26 <p class="margin"> "SELECT ip_address_id, server_id, ip_address FROM openvz_ip WHERE reserved = 'n' AND vm_id = 0 AND server_id = <span class="var">$server_id</span> LIMIT 0,1"</p>
27 <!--<b>Output:</b> 
28 <p style="margin-left:100px">Gives a record of </p> -->
29 </div>
30
31 </body></html>