perl-API-CPanel-0.09-alt1.noarch.rpm


Advertisement

Description

perl-API-CPanel - interface to the CPanel Hosting Panel API ( http://cpanel.net )

Distribution: ALT Linux Sisyphus
Repository: Autoimports noarch
Package name: perl-API-CPanel
Package version: 0.09
Package release: alt1
Package architecture: noarch
Package type: rpm
Installed size: 30.92 KB
Download size: 30.92 KB
Official Mirror: ftp.altlinux.org
use API::CPanel; my $connection_params = { auth_user => 'username', auth_passwd => 'qwerty', host => '11.22.33.44', }; my $ip_list = API::CPanel::ip::list( $connection_params ); unless ($ip_list && ref $ip_list eq 'ARRAY' && scalar @$ip_list) { die 'Cannot get ip list from CPanel'; } my $ip = $ip_list->[0]; my $dname = 'perlaround.ru'; my $user_name = 'user1'; my $client_creation_result = API::CPanel::user::create( { %{ $connection_params }, username => $user_name, password => 'user_password', domain => $dname, }); my $suspend_result = API::CPanel::user::disable( { %{ $connection_params }, user => $user_name, } ); unless ( $suspend_result ) { die "Cannot suspend account"; } my $resume_result = API::CPanel::user::enable( { %{ $connection_params }, user => $user_name, } ); unless ( $resume_result ) { die "Cannot resumeaccount"; } my $delete_result = API::CPanel::user::delete( { %{ $connection_params }, user => $user_name, } ); unless ( $delete_result ) { die "Cannot delete account"; }

Alternatives

Provides

  • perl(API/CPanel.pm) = 0.090
  • perl(API/CPanel/Domain.pm) = 0.090
  • perl(API/CPanel/Ip.pm) = 0.070
  • perl(API/CPanel/Misc.pm) = 0.070
  • perl(API/CPanel/Mysql.pm) = 0.070
  • perl(API/CPanel/Package.pm) = 0.070
  • perl(API/CPanel/User.pm) = 0.080
  • perl-API-CPanel = 0.09-alt1

    Install Howto

    1. Add the following line to /etc/apt/sources.list:
      rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
      rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
      
    2. Update the package index:
      # sudo apt-get update
    3. Install perl-API-CPanel rpm package:
      # sudo apt-get install perl-API-CPanel

    Files

    • /usr/share/doc/perl-API-CPanel-0.09/Changes
    • /usr/share/doc/perl-API-CPanel-0.09/README
    • /usr/share/perl5/API/CPanel.pm
    • /usr/share/perl5/API/CPanel/Domain.pm
    • /usr/share/perl5/API/CPanel/Ip.pm
    • /usr/share/perl5/API/CPanel/Misc.pm
    • /usr/share/perl5/API/CPanel/Mysql.pm
    • /usr/share/perl5/API/CPanel/Package.pm
    • /usr/share/perl5/API/CPanel/User.pm
    Advertisement
    Advertisement