
API:: Plesk:: Complex includes functions to perform complex operations, such as changing the tariff plan.

use API::Plesk::Complex;
my $result = API::Plesk::Complex::change_tariff(
$plesk_client, # Plesk.pm object.
from => 'source_tariff_name', # source tariff
to => 'result_tarif_name', # result tariff
id => 'client_id_in_plesk' # client id in Plesk
);
# $result -- API::Plesk::Response object.

There are currently enforced only change tariff plan on the basis of permits and limitations specified in the Template with the names in "to" and "from" fields.
We have Plesk feature - a shift from "high" (ie, with a large disk space, large number subdomains etc.) to a "low" is not allowed and will get an error. So tentatively better check tariffs on "the possibility of transferring" first in Plesk administrative panel, and then use the automatic shift.

None.

Blank.

Odintsov Pavel <nrg[at]cpan.org>

Copyright (C) 2008 by NRG
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.