Webservice::OVH::Domain
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");
Gives access to projects connected to the used account.
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);
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");
Produces an array of all available projects that are connected to the used account.
Return: ARRAY
Synopsis: my $projects = $ovh->order->projects();
Returns a single project by name
Parameter: $project_name - project name
Return: Webservice::OVH::Cloud::Project
Synopsis: my $project = $ovh->cloud->project("Name");
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;
Parameter: $flavor_id - Cloud flavor id, $region - region
Return: HASH
Synopsis: my $prices = $ovh->cloud->price;
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.