Retrieving IP addresses

Use the get operation to retrieve all IP addresses from Plesk server database.

In this chapter:

Request Packet

Response Packet Structure

Samples

 

Request Packet

A request XML packet retrieving IP addresses from Plesk database includes the get operation node.

<packet>
<ip>
  <get/>
</ip>
</packet>

 

The get node graphical representation is as follows:

 

Response Packet Structure

The get node of the output XML packet is structured as follows:

   

 

Samples

The packet retrieving IP addresses from Plesk database looks as follows:

<packet>
<ip>
  <get/>
</ip>
</packet>

Response:

<packet>
<ip>
<get>
      <result>
         <status>ok</status>
         <addresses>
            <ip_info>
               <ip_address>10.58.49.221</ip_address>
               <netmask>255.255.0.0</netmask>
               <type>exclusive</type>
               <interface>eth0</interface>
            </ip_info>
         </addresses>
      </result>
</get>
</ip>
</packet>