Removing Available Database Servers

The remove operation is used to remove a database from the list of database servers available within the subscription.

In this chapter:

Request Packet Structure

Response Packet Structure

Sample

 
Request Packet Structure

A request XML packet removing a database from the list of databases available within the subscription includes the remove operation node:

<packet>
<webspace>
   <db-servers>
	  <remove>
	   ...
	  </remove>
   </db-servers>
</webspace>
</packet>

 

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

db-servers-webspace-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 (webspace.xsd)which has the following presentation:

db-servers-webspace-remove-resp

 
Sample

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

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

Response:

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