API::Plesk::Complex - API::Plesk::Complex documentation


API-Plesk documentation  | view source Contained in the API-Plesk distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  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.

DESCRIPTION

Top

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.

EXPORT

Top

None.

AUTHOR

Top

Odintsov Pavel <nrg[at]cpan.org>

COPYRIGHT AND LICENSE

Top


API-Plesk documentation  | view source Contained in the API-Plesk distribution.