Webservice::OVH::Cloud::Project::Image
use Webservice::OVH; my $ovh = Webservice::OVH->new_from_json("credentials.json"); my $projects = $ovh->cloud->projects; my $example_project = $projects->[0]; my $images = $project->images; foreach my $image (@$images) { print $image->type; }
Provides access to information about an image. Nothing more can be done with this.
Internal Method to create the image object. This method is not ment to be called directly.
Parameter: %params - key => value
Return: Webservice::OVH::Cloud::Project::Image
Synopsis: Webservice::OVH::Cloud::Project::Image->_new(wrapper => $ovh_api_wrapper, project => $project, module => $module, id => $id );
Root Project.
Return: Webservice::OVH::Cloud::Project
Synopsis: my $project = $ssh_key->project;
Returns the api id
Return: VALUE
Synopsis: my $id = $image->id;
Returns the raw properties as a hash. This is the original return value of the web-api.
Return: HASH
Synopsis: my $properties = $image->properties;
Exposed property value.
Synopsis: my $visibility = $image->visibility;
Synopsis: my $status = $image->status;
Synopsis: my $name = $image->name;
Synopsis: my $region = $image->region;
Synopsis: my $min_disk = $image->min_disk;
Synopsis: my $size = $image->size;
Return: DateTime
Synopsis: my $creation_date = $image->creation_date;
Synopsis: my $min_ram = $image->min_ram;
Synopsis: my $user = $image->user;
Synopsis: my $type = $image->type;
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.