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/
Optional Parameters:
- distributionid
- keywords
- distributionvendor
Optional Parameters:
- kernelid
- isxen
Optional Parameters:
- planid
Optional Parameters:
- distributionid
Required Parameters:
- type
- domain
Optional Parameters:
- refresh_sec
- retry_sec
- master_ips
- expire_sec
- soa_email
- axfr_ips
- description
- ttl_sec
- status
Required Parameters:
- domainid
Required Parameters:
- domainid
Optional Parameters:
- refresh_sec
- retry_sec
- master_ips
- type
- expire_sec
- domain
- soa_email
- axfr_ips
- description
- ttl_sec
- status
Optional Parameters:
- domainid
Required Parameters:
- type
- domainid
Optional Parameters:
- protocol
- name
- weight
- target
- priority
- ttl_sec
- port
Required Parameters:
- resourceid
- domainid
Required Parameters:
- resourceid
Optional Parameters:
- weight
- target
- priority
- ttl_sec
- domainid
- port
- protocol
- name
Required Parameters:
- domainid
Optional Parameters:
- resourceid
Required Parameters:
- linodeid
Required Parameters:
- datacenterid
- planid
- paymentterm
Required Parameters:
- linodeid
Optional Parameters:
- configid
Required Parameters:
- linodeid
Required Parameters:
- linodeid
Optional Parameters:
- configid
Required Parameters:
- linodeid
- planid
Required Parameters:
- linodeid
- paymentterm
- datacenterid
- planid
Required Parameters:
- linodeid
Required Parameters:
- linodeid
Optional Parameters:
- skipchecks
Required Parameters:
- linodeid
Optional Parameters:
- alert_diskio_threshold
- lpm_displaygroup
- watchdog
- alert_bwout_threshold
- ms_ssh_disabled
- ms_ssh_ip
- ms_ssh_user
- alert_bwout_enabled
- alert_diskio_enabled
- ms_ssh_port
- alert_bwquota_enabled
- alert_bwin_threshold
- backupweeklyday
- alert_cpu_enabled
- alert_bwquota_threshold
- backupwindow
- alert_cpu_threshold
- alert_bwin_enabled
- label
Optional Parameters:
- linodeid
Required Parameters:
- kernelid
- linodeid
- label
Optional Parameters:
- rootdevicero
- helper_disableupdatedb
- rootdevicenum
- comments
- rootdevicecustom
- devtmpfs_automount
- ramlimit
- runlevel
- helper_depmod
- helper_xen
- disklist
Required Parameters:
- linodeid
- configid
Required Parameters:
- configid
Optional Parameters:
- helper_disableupdatedb
- rootdevicero
- comments
- rootdevicenum
- rootdevicecustom
- kernelid
- runlevel
- ramlimit
- devtmpfs_automount
- helper_depmod
- linodeid
- helper_xen
- disklist
- label
Required Parameters:
- linodeid
Optional Parameters:
- configid
Required Parameters:
- label
- size
- type
- linodeid
Required Parameters:
- diskid
- linodeid
- size
Required Parameters:
- rootpass
- linodeid
- distributionid
- size
- label
Optional Parameters:
- rootsshkey
Required Parameters:
- diskid
- linodeid
Required Parameters:
- linodeid
- diskid
Required Parameters:
- diskid
Optional Parameters:
- linodeid
- label
- isreadonly
Required Parameters:
- linodeid
Optional Parameters:
- diskid
Required Parameters:
- size
- label
- linodeid
- stackscriptid
- distributionid
- rootpass
- stackscriptudfresponses
Required Parameters:
- linodeid
Required Parameters:
- linodeid
Optional Parameters:
- ipaddressid
Required Parameters:
- linodeid
Optional Parameters:
- pendingonly
- jobid
Required Parameters:
- label
- distributionidlist
- script
Optional Parameters:
- rev_note
- description
- ispublic
Required Parameters:
- stackscriptid
Required Parameters:
- stackscriptid
Optional Parameters:
- distributionidlist
- description
- script
- ispublic
- rev_note
- label
Optional Parameters:
- stackscriptid
Required Parameters:
- nodebalancerid
Optional Parameters:
- protocol
- check
- check_path
- check_interval
- algorithm
- check_attempts
- stickiness
- check_timeout
- check_body
- port
Required Parameters:
- configid
Required Parameters:
- configid
Optional Parameters:
- check_body
- stickiness
- check_attempts
- check_timeout
- algorithm
- port
- check
- protocol
- check_path
- check_interval
Required Parameters:
- nodebalancerid
Optional Parameters:
- configid
Required Parameters:
- label
- address
- configid
Optional Parameters:
- mode
- weight
Required Parameters:
- nodeid
Required Parameters:
- nodeid
Optional Parameters:
- mode
- label
- address
- weight
Required Parameters:
- configid
Optional Parameters:
- nodeid
Required Parameters:
- username
- password
These methods are deprecated and will be going away.
Returns the ID for a domain given the name.
Takes a record name and domainid or domain and returns the resourceid.
- Michael Greb,
<mgreb@linode.com>
- Stan "The Man" Schwertly
<stan@linode.com>
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.