NAME
WebService::Linode - Perl Interface to the Linode.com API.
VERSION
Version 0.07
SYNOPSIS
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/autodoc.cfm
Methods from the Linode API
avail_stackscripts
Required Parameters:
Optional Parameters:
distributionid
distributionvendor
keywords
avail_kernels
Required Parameters:
Optional Parameters:
kernelid
isxen
avail_linodeplans
Required Parameters:
Optional Parameters:
plainid
avail_datacenters
Required Parameters:
Optional Parameters:
avail_distributions
Required Parameters:
Optional Parameters:
distributionid
domain_create
Required Parameters:
domain
type
Optional Parameters:
description
soa_email
refresh_sec
retry_sec
expire_sec
ttl_sec
status
master_ips
domain_delete
Required Parameters:
domainid
Optional Parameters:
domain_update
Required Parameters:
domainid
Optional Parameters:
domain
description
type
soa_email
refresh_sec
retry_sec
expire_sec
ttl_sec
status
master_ips
domain_list
Required Parameters:
Optional Parameters:
domainid
domain_resource_create
Required Parameters:
domainid
type
Optional Parameters:
name
target
priority
weight
port
protocol
ttl_sec
domain_resource_delete
Required Parameters:
domainid
resourceid
Optional Parameters:
domain_resource_update
Required Parameters:
domainid
resourceid
Optional Parameters:
name
target
priority
weight
port
protocol
ttl_sec
domain_resource_list
Required Parameters:
domainid
Optional Parameters:
resourceid
linode_create
Required Parameters:
datacenterid
planid
paymentterm
Optional Parameters:
linode_reboot
Required Parameters:
linodeid
Optional Parameters:
configid
linode_boot
Required Parameters:
linodeid
Optional Parameters:
configid
linode_resize
Required Parameters:
linodeid
planid
Optional Parameters:
linode_shutdown
Required Parameters:
linodeid
Optional Parameters:
linode_delete
Required Parameters:
linodeid
Optional Parameters:
linode_update
Required Parameters:
linodeid
Optional Parameters:
label
lpm_displaygroup
alert_cpu_enabled
alert_cpu_threshold
alert_diskio_enabled
alert_diskio_threshold
alert_bwin_enabled
alert_bwin_threshold
alert_bwout_enabled
alert_bwout_threshold
alert_bwquota_enabled
alert_bwquota_threshold
backupwindow
backupweeklyday
watchdog
linode_list
Required Parameters:
Optional Parameters:
linodeid
linode_config_create
Required Parameters:
linodeid
kernelid
label
Optional Parameters:
comments
ramlimit
disklist
runlevel
rootdevicenum
rootdevicecustom
rootdevicero
helper_disableupdatedb
helper_xen
helper_depmod
linode_config_delete
Required Parameters:
linodeid
configid
Optional Parameters:
linode_config_update
Required Parameters:
linodeid
configid
Optional Parameters:
kernelid
label
comments
ramlimit
disklist
runlevel
rootdevicenum
rootdevicecustom
rootdevicero
helper_xen
helper_disableupdatedb
helper_depmod
linode_config_list
Required Parameters:
linodeid
Optional Parameters:
configid
linode_disk_create
Required Parameters:
linodeid
label
type
size
Optional Parameters:
isreadonly
linode_disk_createfromstackscript
Required Parameters:
linodeid
stackscriptid
stackscriptudfresponses
distributionid
label
size
rootpass
Optional Parameters:
linode_disk_createfromdistribution
Required Parameters:
linodeid
distributionid
label
size
rootpass
Optional Parameters:
rootsshkey
linode_disk_resize
Required Parameters:
linodeid
diskid
size
Optional Parameters:
linode_disk_duplicate
Required Parameters:
linodeid
diskid
Optional Parameters:
linode_disk_delete
Required Parameters:
linodeid
diskid
Optional Parameters:
linode_disk_update
Required Parameters:
linodeid
diskid
Optional Parameters:
label
isreadonly
linode_disk_list
Required Parameters:
linodeid
Optional Parameters:
diskid
linode_ip_addprivate
Required Parameters:
linodeid
Optional Parameters:
linode_ip_list
Required Parameters:
linodeid
Optional Parameters:
ipaddressid
linode_job_list
Required Parameters:
linodeid
Optional Parameters:
jobid
pendingonly
stackscript_create
Required Parameters:
label
distributionidlist
script
Optional Parameters:
description
ispublic
rev_note
stackscript_delete
Required Parameters:
stackscriptid
Optional Parameters:
stackscript_update
Required Parameters:
stackscriptid
Optional Parameters:
label
description
distributionidlist
ispublic
rev_note
script
stackscript_list
Required Parameters:
stackscriptid
Optional Parameters:
Additional Helper Methods
getDomainIDbyName( domain => 'example.com' )
Returns the ID for a domain given the name.
getDomainResourceIDbyName( domainid => 242, name => 'www')
Takes a record name and domainid or domain and returns the resourceid.
AUTHORS
Michael Greb,
<mgreb@linode.com>
Stan "The Man" Schwertly
<stan@linode.com>
BUGS
This module does not yet support the Linode API batch method, patches welcome.
Please report any bugs or feature requests to bug-webservice-linode at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WebService-Linode. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc WebService::Linode
You can also look for information at:
Module Repo
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
COPYRIGHT & LICENSE
Copyright 2008-2009 Linode, LLC, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.