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


Advertisement

Description

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

Property Value
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

Package Version Architecture Repository
perl-API-CPanel - - -

Requires

Name Value
/usr/share/perl5 -
perl(Data/Dumper.pm) -
perl(Exporter/Lite.pm) -
perl(LWP/UserAgent.pm) -
perl(MIME/Base64.pm) -
perl(XML/Simple.pm) -
perl(lib.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
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

Download

Type URL
Binary Package perl-API-CPanel-0.09-alt1.noarch.rpm
Source Package perl-API-CPanel-0.09-alt1.src.rpm

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

Path
/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

See Also

Package Description
perl-API-Client-0.04-alt1.noarch.rpm General-Purpose API Client Abstraction
perl-API-DirectAdmin-0.09-alt1.noarch.rpm interface to the DirectAdmin Hosting Panel API ( http://www.directadmin.com )
perl-API-Facebook-0.04-alt1.noarch.rpm perl module API-Facebook
perl-API-FritzBox-0.007-alt1.noarch.rpm API interface to FritzBox devices
perl-API-Github-0.06-alt1.noarch.rpm perl module API-Github
perl-API-Google-0.12-alt1.noarch.rpm Perl library for easy access to Google services via their API
perl-API-Google-scripts-0.12-alt1.noarch.rpm API-Google scripts
perl-API-ISPManager-0.07-alt1.noarch.rpm interface to the ISPManager Hosting Panel API ( http://ispsystem.com )
perl-API-ISPManager-scripts-0.07-alt1.noarch.rpm API-ISPManager scripts
perl-API-Instagram-0.013-alt1.noarch.rpm Object Oriented Interface for the Instagram REST and Search APIs
perl-API-McBain-0.1-alt1.noarch.rpm Framework for building auto-validating, self-documenting APIs
perl-API-McBain-scripts-0.1-alt1.noarch.rpm API-McBain scripts
perl-API-Medium-0.900-alt1.noarch.rpm Talk with medium.com using their REST API
perl-API-MikroTik-0.24-alt1.noarch.rpm Non-blocking MikroTik API interface
perl-API-Name-0.06-alt1.noarch.rpm perl module API-Name
Advertisement
Advertisement