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.

  • Parameter: $api_wrapper - ovh api wrapper object, $module - root object

  • Return: Webservice::OVH::Order

  • Synopsis: Webservice::OVH::Order->_new($ovh_api_wrapper, $self);

service_exists

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

  • Parameter: $service_name - Domain name, $no_recheck - (optional)only for internal usage

  • Return: VALUE

  • Synopsis: print "mydomain.com exists" if $ovh->domain->service_exists("mydomain.com");

zone_exists

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

  • Parameter: $zone_name - Domain name, $no_recheck - (optional)only for internal usage

  • Return: VALUE

  • Synopsis: print "zone mydomain.com exists" if $ovh->domain->zone_exists("mydomain.com");

services

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

  • Return: ARRAY

  • Synopsis: my $services = $ovh->order->services();

zones

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

  • Return: ARRAY

  • Synopsis: my $zones = $ovh->order->zones();

service

Returns a single service by name

zone

Returns a single zone by name