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


Advertisement

Description

perl-API-DirectAdmin - interface to the DirectAdmin Hosting Panel API ( http://www.directadmin.com )

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-API-DirectAdmin
Package version 0.09
Package release alt1
Package architecture noarch
Package type rpm
Installed size 27.93 KB
Download size 27.93 KB
Official Mirror ftp.altlinux.org
use API::DirectAdmin;
my %auth = (
auth_user   => 'admin_name',
auth_passwd => 'admin_passwd',
host        => '11.22.33.44',
);
my $da = API::DirectAdmin->new(%auth);
my $ip_list = $da->ip->list();
unless ($ip_list && ref $ip_list eq 'ARRAY' && scalar @$ip_list) {
die 'Cannot get ip list from DirectAdmin';
}
my $ip  = $ip_list->[0];
my $dname  = 'reg.ru';
my $user_name = 'user1';
my $email = 'user1@example.com';
my $package = 'newpackage';
my $client_creation_result = $da->user->create( {
username => $user_name,
passwd   => 'user_password',
passwd2  => 'user_password',
domain   => $dname,
email    => $email,
package  => $package,
ip       => $ip,
});
my $suspend_result = $da->user->disable( {
select0 => $user_name,
} );
if ( $suspend_result->{error} == 1 ) {
die "Cannot  suspend account $suspend_result->{text}";
}
my $resume_result = $da->user->enable( {
select0 => $user_name,
} );
if ( $resume_result->{error} == 1 ) {
die "Cannot Resume account $resume_result->{text}";
}
my $delete_result = $da->user->delete( {
select0 => $user_name,
} );
if ( $delete_result->{error} == 1 ) {
die "Cannot delete account $delete_result->{text}";
}
my %params = (
action  => 'package',
package => 'package_name',
user    => 'username',
);
my $responce = $da->query(
command        => 'CMD_API_MODIFY_USER',
method	   => 'POST',
params         => \%params,
allowed_fields => 'action
package
user',
);

Alternatives

Package Version Architecture Repository
perl-API-DirectAdmin - - -

Requires

Name Value
/usr/share/perl5 -
perl(Data/Dumper.pm) -
perl(HTTP/Request.pm) -
perl(LWP/UserAgent.pm) -
perl(Modern/Perl.pm) >= 2010.0
perl(URI.pm) -
perl(base.pm) -
perl-base >= 1:5.10.0
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(API/DirectAdmin.pm) = 0.090
perl(API/DirectAdmin/Component.pm) = 0.020
perl(API/DirectAdmin/DNS.pm) = 0.060
perl(API/DirectAdmin/Domain.pm) = 0.050
perl(API/DirectAdmin/Ip.pm) = 0.050
perl(API/DirectAdmin/Mysql.pm) = 0.050
perl(API/DirectAdmin/User.pm) = 0.060
perl-API-DirectAdmin = 0.09-alt1

Download

Type URL
Binary Package perl-API-DirectAdmin-0.09-alt1.noarch.rpm
Source Package perl-API-DirectAdmin-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-DirectAdmin rpm package:
    # sudo apt-get install perl-API-DirectAdmin

Files

Path
/usr/share/doc/perl-API-DirectAdmin-0.09/Changes
/usr/share/doc/perl-API-DirectAdmin-0.09/README
/usr/share/doc/perl-API-DirectAdmin-0.09/description
/usr/share/perl5/API/DirectAdmin.pm
/usr/share/perl5/API/DirectAdmin/Component.pm
/usr/share/perl5/API/DirectAdmin/DNS.pm
/usr/share/perl5/API/DirectAdmin/Domain.pm
/usr/share/perl5/API/DirectAdmin/Ip.pm
/usr/share/perl5/API/DirectAdmin/Mysql.pm
/usr/share/perl5/API/DirectAdmin/User.pm

See Also

Package Description
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
perl-API-ParallelsWPB-0.03-alt1.noarch.rpm client for Parallels Presence Builder API
perl-API-Plesk-2.03-alt1.noarch.rpm OO interface to the Plesk XML API (http://www.parallels.com/en/products/plesk/)
Advertisement
Advertisement