Request Packet Structure

A request XML packet creating a database includes the add-db operation node:

<packet version="1.4.2.0">
<database>
   <add-db>
   ¡­
   </add-db>
</database>
</packet>

 

The add-db node is presented by type DatabaseAddInputType (database_input.xsd), and its graphical representation is as follows:

 

Note: The db-server-id node is required only when you use Plesk for Unix. For info on database servers, refer to Managing Database Servers section. In Plesk for Windows, you can define the ID of a database server by the type of databases. However, it is recommended to consider this parameter as required, because in next versions of Plesk for Windows the algorithm of defining database servers can be changed.

Note: Use lower case for the database types. In other case the request might be incorrectly processed by the server.

Remarks

You can add multiple databases in a single packet. Add as many add-db operations as the number of databases you want to add.

<database>
   <add-db>
   ¡­
   </add-db>
...
   <add-db>
   ¡­
   </add-db>

</database>