NAME

WebService::DigitalOcean::Role::Domains - Domains role for DigitalOcean WebService

VERSION

version 0.001

METHODS

domain_create

Arguments

Str name

The domain name.

Str ip_address

The IP address the domain will point to.

Creates a new domain name.

$do->domain_create(
    name => 'example.com',
    ip_address => '12.34.56.78',
);

domain_delete

Arguments

Str domain

The domain name.

Deletes the specified domain.

$do->domain_delete(
    domain => 'example.com',
);

domain_get

Arguments

Str domain

The domain name.

Retrieves the specified domain.

my $response = $do->domain_get(
    domain => 'example.com',
);

domain_list

Lists all domains for this account.

my $response = $do->domain_list();

for (@{ $response->{content}{domains} }) {
    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