Retrieving Supported Types Of Databases

Use the get-supported-types operation to retrieve the supported types of database.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet retrieving types of database servers supported by Plesk includes the get-supported-types operation node:

<packet>
<dns>
   <get-supported-types/>
 </dns>
</packet>

 

The graphical representation of the get-supported-types node is as follows:

 

Response Packet Structure

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

 

 

Samples

This request packet retrieves the supported types of database servers.

<packet version="1.5.2.0">
<db_server>
   <get-supported-types/>
 </db_server>
</packet>

Response (for MS Windows server):  

<packet version="1.5.2.0">
<db_server>
<get-supported-types>
   <result>
      <status>ok</status>
      <type>mssql</type>
      <type>mysql</type>
   </result>
</get-supported-types>
</db_server>
</packet>

Response (for Unix server):

<packet version="1.5.2.0">
<db_server>
<get-supported-types>
   <result>
      <status>ok</status>
      <type>mysql</type>
      <type>postgresql</type>
   </result>
</get-supported-types>
</db_server>
</packet>