NAME
WebService::DigitalOcean::Role::Domains - Domains role for DigitalOcean WebService
VERSION
version 0.011
METHODS
$do->domain_create(\%args)
Arguments
Creates a new domain name.
$do->domain_create({
name => 'example.com',
ip_address => '12.34.56.78',
});
More info: https://developers.digitalocean.com/#create-a-new-domain.
$do->domain_delete($domain)
Arguments
Deletes the specified domain.
$do->domain_delete('example.com');
More info: https://developers.digitalocean.com/#delete-a-domain.
$do->domain_get($domain)
Arguments
Retrieves the specified domain.
my $response = $do->domain_get('example.com');
More info: https://developers.digitalocean.com/#retrieve-an-existing-domain.
$do->domain_list()
Lists all domains for this account.
my $response = $do->domain_list();
for (@{ $response->{content}{domains} }) {
print $_->{id};
}
More info: https://developers.digitalocean.com/#list-all-domains.
DESCRIPTION
Implements the domain resource.
More info: https://developers.digitalocean.com/#domains.
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