The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Webservice::OVH::Domain

SYNOPSIS

    use Webservice::OVH;
    
    my $ovh = Webservice::OVH->new_from_json("credentials.json");
    
    my $projects = $ovh->cloud->projects;
    foreach my $project (@$project) {
        
        print $project->name;
    }
    
    print "I have a project" if $ovh->cloud->project_exists("Name");

DESCRIPTION

Gives access to projects connected to the used account.

METHODS

_new

Internal Method to create the cloud object. This method is not ment to be called directly.

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

  • Return: Webservice::OVH::Project

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

project_exists

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

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

  • Return: VALUE

  • Synopsis: print "Name exists" if $ovh->domain->project_exists("Name");

projects

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

  • Return: ARRAY

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

project

Returns a single project by name

create_project

Price information for projects and other running cloud services

  • Parameter: $description - (optional) description, $voucher - (optional)

  • Return: Return: Webservice::OVH::Cloud::Project

  • Synopsis: my $order = $ovh->cloud->create_project;

price

Price information for projects and other running cloud services

  • Parameter: $flavor_id - Cloud flavor id, $region - region

  • Return: HASH

  • Synopsis: my $prices = $ovh->cloud->price;