Use the assign-to-subscription operation to move a database to another subscription (webspace). Learn more in the Administrator's Guide.
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:
The assign-to-subscription node of the output XML packet is presented by type DatabaseSetDBOutputType (database_output.xsd
) and structured as follows:
common.xsd
).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>