Use the switch-subscription operation to associate a subscription with a different service plan.
A request XML packet that switches a subscription to a different service plan includes the switch-subscription operation node:
<packet version="1.6.3.0">
<webspace>
<switch-subscription>
...
</switch-subscription>
</webspace>
</packet>
The switch-subscription node (domain_input.xsd
) has the following graphical representation:
domain_input.xsd
).The switch-subscription node of the output XML packet is structured as follows:
plesk_common.xsd
). Note: The problems node outputs a table with these columns: Description, Current, Requested, Allowed. The Description column holds the subscription option name (limit, permission, hosting setting). The Current column contains the current value of the option. The Requested column contains the requested value for the option. The Allowed column contains the changed values. The other values remain in the Current state after the operation is performed.
The request packet that switches the subscription with ID 5 to the plan with GUID cc982f71-48c3-479d-bc7b-59b97547e092 looks as follows:
<packet version ="1.6.3.0">
<webspace>
<switch-subscription>
<filter>
<id>5</id>
</filter>
<plan-guid>cc982f71-48c3-479d-bc7b-59b97547e092</plan-guid>
</switch-subscription>
</webspace>
</packet>
Response:
<packet version="1.6.3.0">
<webspace>
<switch-subscription>
<result>
<status>ok</status>
<filter-id>5</filter-id>
<id>5</id>
<problems>Description Current Requested Allowed
Switch on log rotation (example.com) switched on (Log rotation condition: by size (195 switched on (Log rotation condition: by size (10.0 switched on (Log rotation condition: by size (10.0
MB),
Maximum number of log files: 10,
Compress log files: KB),
Maximum number of log files: 0,
Compress log files: KB),
Maximum number of log files: 0,
Compress log files:
switched on,
Send processed log files to e-mail: -) switched on,
Send processed log files to e-mail: -) switched on,
Send processed log files to e-mail: -)
Hard disk quota (example.com) Unlimited Unlimited Unlimited
SSL support (example.com) switched on switched off switched off
SSI support (example.com) switched off switched on switched on</problems>
</result>
</switch-subscription>
</webspace>
</packet>