Removing Available Database Servers

The remove operation is used to remove a database from the list of database servers available to the plan subscribers.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 
Request Packet Structure

A request XML packet removing a database from the list of databases available to the plan subscribers includes the remove operation node:

<packet>
<service-plan>
   <db-servers>
	  <remove>
	   ...
	  </remove>
   </db-servers>
</service-plan>
</packet>

 

The remove node is presented by type DomainTemplateDbServerInput (domain_template.xsd). Its graphical representation is as follows:

db-servers-remove

Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.

 
Response Packet Structure

The remove node of the output XML packet is of complex type (domain_template.xsd)which has the following presentation:

db-servers-remove-response

 
Samples

The following request removes the MySQL database server available on the port 3306 of localhost from the list of database servers available in the service plan with id 1:

 <packet>
  <service-plan>
    <db-servers>
      <remove>
        <filter>
          <id>1</id>
        </filter>
        <db-server>
          <type>mysql</type>
          <host>localhost</host>
          <port>3306</port>
        </db-server>
      </remove>
    </db-servers>
  </service-plan>
</packet>

Response:

<packet>
  <service-plan>
    <db-servers>
      <remove>
        <result>
          <status>ok</status>
          <filter-id>1</filter-id>
          <id>1</id>
        </result>
      </remove>
    </db-servers>
  </service-plan>
</packet>