WebService::Linode - Perl Interface to the Linode.com API.
my $api = WebService::Linode->new( apikey => 'your api key here'); print Dumper($api->linode_list); $api->linode_reboot(linodeid=>242);
This module implements the Linode.com api methods. Linode methods have had dots replaced with underscores to generate the perl method name. All keys and parameters have been lower cased but returned data remains otherwise the same. For additional information see http://www.linode.com/api/
For documentation of possible arguments to the constructor, see WebService::Linode::Base.
Each of the Linode API methods below may optionally be prefixed with QUEUE_ to add that request to a queue to be processed later in one or more batch requests which can be processed by calling send_queued_requests. For example:
my @linode_ids = () # Get your linode ids through normal methods my @responses = map { $api->linode_ip_list( linodeid=>$_ ) } @linode_ids;
Can be reduced to a single request:
my @linode_ids = () # Get your linode ids through normal methods $api->QUEUE_linode_ip_list( linodeid=>$_ ) for @linode_ids; my @responses = $api->send_queued_requests; # One api request
See WebService::Linode::Base for additional queue management methods.
Send queued batch requests, returns list of responses.
Optional Parameters:
distributionid
isxen
kernelid
planid
distributionvendor
keywords
domainid
Required Parameters:
axfr_ips
description
domain
expire_sec
lpm_displaygroup
master_ips
refresh_sec
retry_sec
soa_email
status
ttl_sec
type
resourceid
name
port
priority
protocol
target
weight
linodeid
configid
datacenterid
paymentterm
alert_bwin_enabled
alert_bwin_threshold
alert_bwout_enabled
alert_bwout_threshold
alert_bwquota_enabled
alert_bwquota_threshold
alert_cpu_enabled
alert_cpu_threshold
alert_diskio_enabled
alert_diskio_threshold
backupweeklyday
backupwindow
label
ms_ssh_disabled
ms_ssh_ip
ms_ssh_port
ms_ssh_user
watchdog
skipchecks
comments
devtmpfs_automount
disklist
helper_depmod
helper_disableupdatedb
helper_network
helper_xen
ramlimit
rootdevicecustom
rootdevicenum
rootdevicero
runlevel
imageid
rootpass
rootsshkey
size
diskid
isreadonly
stackscriptid
stackscriptudfresponses
fromdistributionid
hostname
ipaddressid
tolinodeid
withipaddressid
jobid
pendingonly
pending
distributionidlist
ispublic
rev_note
script
nodebalancerid
algorithm
check
check_attempts
check_body
check_interval
check_path
check_timeout
ssl_cert
ssl_key
stickiness
address
mode
nodeid
password
username
expires
token
Michael Greb, <michael@thegrebs.com>
<michael@thegrebs.com>
Stan "The Man" Schwertly <stan@schwertly.com>
<stan@schwertly.com>
Copyright 2008-2014 Michael Greb, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WebService::Linode, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Linode
CPAN shell
perl -MCPAN -e shell install WebService::Linode
For more information on module installation, please visit the detailed CPAN module installation guide.