Webservice::OVH::Cloud::Project::SSH
use Webservice::OVH; my $ovh = Webservice::OVH->new_from_json("credentials.json"); my $projects = $ovh->cloud->projects; my $example_project = $projects->[0]; my $keys = $project->ssh_keys; foreach my $key (@$keys) { print $key->name; $key->delete; }
Gives access to ssh key functionalty for a specific project.
Internal Method to create the SSH object. This method is not ment to be called directly.
Parameter: %params - key => value
Return: Webservice::OVH::Cloud::Project::SSH
Synopsis: Webservice::OVH::Cloud::Project::SSH->_new(wrapper => $ovh_api_wrapper, project => $project, module => $module, id => $id );
Synopsis: Webservice::OVH::Cloud::Project::SSH->_new(wrapper => $ovh_api_wrapper, project => $project, module => $module );
Root Project.
Return: Webservice::OVH::Cloud::Project
Synopsis: my $project = $ssh_key->project;
When this object is deleted on the api side, this method returns 0.
Return: VALUE
Synopsis: print "Valid" if $ssh_key->is_valid;
Intern method to check validity. Difference is that this method carps an error.
Synopsis: $ssh_key->_is_valid;
Returns the api id
Synopsis: my $id = $ssh_key->id;
Returns the raw properties as a hash. This is the original return value of the web-api.
Return: HASH
Synopsis: my $properties = $ssh_key->properties;
Exposed property value.
Synopsis: my $finger_print = $ssh_key->finger_print;
Return: ARRAY
Synopsis: my $regions = $ssh_key->regions;
Synopsis: my $name = $ssh_key->name;
Synopsis: my $public_key = $ssh_key->public_key;
Deletes the object api sided and sets it invalid.
Synopsis: $ssh_key->delete;
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.