Moving Databases to Another Subscription

Use the assign-to-subscription operation to move a database to another subscription (webspace). Learn more in the Administrator's Guide.

Next in this section:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet moving a database between subscriptions includes the assign-to-subscription operation node:

<packet>
<database>
   <assign-to-subscription>
   ...
   </assign-to-subscription>
</database>
</packet>

 

The assign-to-subscription node is presented by type DatabaseAssignToSubscriptionInputType (database_input.xsd), and its graphical representation is as follows:

assign-to-subscription

 

Response Packet Structure

The assign-to-subscription node of the output XML packet is presented by type DatabaseSetDBOutputType (database_output.xsd) and structured as follows:

assign-to-subscription_output

 

Samples

This request moves the database with ID 1 to the subscription with ID 2.

<packet>
  <database>
    <assign-to-subscription>
      <filter>
        <id>1</id>
      </filter>
      <webspace-id>2</webspace-id>
    </assign-to-subscription>
  </database>
</packet>

Response:

<packet version="1.6.7.0">
  <database>
    <assign-to-subscription>
      <result>
        <status>ok</status>
        <filter-id>1</filter-id>
        <id>1</id>
      </result>
    </assign-to-subscription>
  </database>
</packet>