NAME
WebService::DigitalOcean::Role::Droplets - Droplets role for DigitalOcean WebService
VERSION
version 0.011
METHODS
$do->droplet_create(\%args)
Arguments
Str
$args{name}Str
$args{region}Str
$args{size}Str
$args{image}ArrayRef
$args{ssh_keys} (optional)Bool
$args{backups} (optional)Bool
$args{ipv6} (optional)Bool
$args{private_networking} (optional)
Creates a new droplet.
$do->droplet_create(
name => "My-Droplet",
region => "nyc1",
size => "512mb",
image => 449676389,
ssh_keys => [ 52341234, 215124, 64325534 ],
backups => 0,
ipv6 => 1,
private_networking => 0,
);
More info: https://developers.digitalocean.com/#create-a-new-droplet.
$do->droplet_delete($id)
Arguments
Deletes the specified droplet.
$do->droplet_delete(1250928);
More info: https://developers.digitalocean.com/#delete-a-droplet.
$do->droplet_get($id)
Arguments
Retrieves the specified droplet.
my $response = $do->droplet_get(15314123);
More info: https://developers.digitalocean.com/#retrieve-an-existing-droplet-by-id.
$do->droplet_list()
Lists all droplets for this account.
my $response = $do->droplet_list();
for (@{ $response->{content}{droplets} }) {
print $_->{id};
}
More info: https://developers.digitalocean.com/#list-all-droplets.
DESCRIPTION
Implements the droplets resource.
More info: https://developers.digitalocean.com/#droplets.
AUTHOR
André Walker <andre@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2014 by André Walker.
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991