NAME
Webservice::OVH::Cloud::Project::SSH
SYNOPSIS
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;
}
DESCRIPTION
Gives access to ssh key functionalty for a specific project.
METHODS
_new_existing
Internal Method to create the SSH object. This method is not ment to be called directly.
Parameter: %params - key => value
Synopsis: Webservice::OVH::Cloud::Project::SSH->_new(wrapper => $ovh_api_wrapper, project => $project, module => $module, id => $id );
_new
Internal Method to create the SSH object. This method is not ment to be called directly.
Parameter: %params - key => value
Synopsis: Webservice::OVH::Cloud::Project::SSH->_new(wrapper => $ovh_api_wrapper, project => $project, module => $module );
project
Root Project.
Return: Webservice::OVH::Cloud::Project
Synopsis: my $project = $ssh_key->project;
is_valid
When this object is deleted on the api side, this method returns 0.
Return: VALUE
Synopsis: print "Valid" if $ssh_key->is_valid;
_is_valid
Intern method to check validity. Difference is that this method carps an error.
Return: VALUE
Synopsis: $ssh_key->_is_valid;
id
Returns the api id
Return: VALUE
Synopsis: my $id = $ssh_key->id;
properties
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;
finger_print
Exposed property value.
Return: VALUE
Synopsis: my $finger_print = $ssh_key->finger_print;
regions
Exposed property value.
Return: ARRAY
Synopsis: my $regions = $ssh_key->regions;
name
Exposed property value.
Return: VALUE
Synopsis: my $name = $ssh_key->name;
public_key
Exposed property value.
Return: VALUE
Synopsis: my $public_key = $ssh_key->public_key;
delete
Deletes the object api sided and sets it invalid.
Synopsis: $ssh_key->delete;