NAME
VM::HetznerCloud::API::SshKeys - SshKeys
VERSION
version 0.0.3
SYNOPSIS
use VM::HetznerCloud;
my $api_key = '1234abc';
my $cloud = VM::HetznerCloud->new(
token => $api_key,
);
$cloud->records->create(
);
ATTRIBUTES
endpoint
METHODS
list
Returns all SSH key objects.
$cloud->ssh_keys->list(
fingerprint => 'test',
label_selector => 'test',
name => 'test',
sort => 'test',
);
create
Creates a new SSH key with the given `name` and `public_key`. Once an SSH key is created, it can be used in other calls such as creating Servers.
$cloud->ssh_keys->create();
delete
Deletes an SSH key. It cannot be used anymore.
$cloud->ssh_keys->delete(
id => 'test',
);
get
Returns a specific SSH key object.
$cloud->ssh_keys->get(
id => 'test',
);
put
Updates an SSH key. You can update an SSH key name and an SSH key labels.
Please note that when updating labels, the SSH key current set of labels will be replaced with the labels provided in the request body. So, for example, if you want to add a new label, you have to provide all existing labels plus the new label in the request body.
$cloud->ssh_keys->put(
id => 'test',
);
AUTHOR
Renee Baecker <reneeb@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2018 by Renee Baecker.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)