NAME

Webservice::OVH::Domain

SYNOPSIS

use Webservice::OVH;

my $ovh = Webservice::OVH->new_from_json("credentials.json");

my $services = $ovh->domain->services; foreach my $service (@$services) {

    print $service->name;
}

my $ = $ovh->domain->zones; foreach my $zone (@$zones) {

    print $zone->name;
}

print "I have a zone" if $ovh->domain->zone_exists("myaddress.de"); print "I have a service" if $ovh->domain->service_exists("myaddress.de");

DESCRIPTION

Gives access to services and zones connected to the uses account.

METHODS

_new

Internal Method to create the domain object. This method is not ment to be called external.

service_exists

Returns 1 if service is available for the connected account, 0 if not.

zone_exists

Returns 1 if zone is available for the connected account, 0 if not.

services

Produces an array of all available services that are connected to the used account.

zones

Produces an array of all available zones that are connected to the used account.

service

Returns a single service by name

service

Returns a single zone by name