NAME
WebService::DigitalOcean::Role::Droplets - Droplets role for DigitalOcean WebService
VERSION
version 0.002
METHODS
droplet_create
Arguments
- Str name
- Str region
- Str size
- Str image
- Optional[ ArrayRef ] ssh_keys
- Optional[ Bool ] backups
- Optional[ Bool ] ipv6
- Optional[ Bool ] private_networking
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,
);
droplet_delete
Arguments
Deletes the specified droplet.
$do->droplet_delete(
id => 1250928,
);
droplet_get
Arguments
Retrieves the specified droplet.
my $response = $do->droplet_get(
droplet => 15314123,
);
droplet_list
Lists all droplets for this account.
my $response = $do->droplet_list();
for (@{ $response->{content}{droplets} }) {
print $_->{id};
}
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