Webservice::OVH::Domain
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");
Gives access to services and zones connected to the uses account.
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);
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");
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
Synopsis: print "zone mydomain.com exists" if $ovh->domain->zone_exists("mydomain.com");
Produces an array of all available services that are connected to the used account.
Return: ARRAY
Synopsis: my $services = $ovh->order->services();
Produces an array of all available zones that are connected to the used account.
Synopsis: my $zones = $ovh->order->zones();
Returns a single service by name
Parameter: $service_name - domain name
Return: Webservice::OVH::Domain::Service
Synopsis: my $service = $ovh->domain->service("mydomain.com");
Returns a single zone by name
Parameter: $zone_name - domain name
Return: Webservice::OVH::Domain::Zone
Synopsis: my $zone = $ovh->domain->zone("mydomain.com");
To install Webservice::OVH, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Webservice::OVH
CPAN shell
perl -MCPAN -e shell install Webservice::OVH
For more information on module installation, please visit the detailed CPAN module installation guide.