NAME
WWW::Hetzner::Cloud::SSHKey - Hetzner Cloud SSHKey object
VERSION
version 0.002
SYNOPSIS
my $key = $cloud->ssh_keys->get($id);
# Read attributes
print $key->id, "\n";
print $key->name, "\n";
print $key->fingerprint, "\n";
print $key->public_key, "\n";
# Update
$key->name('renamed-key');
$key->labels({ env => 'prod' });
$key->update;
# Delete
$key->delete;
DESCRIPTION
This class represents a Hetzner Cloud SSH key. Objects are returned by WWW::Hetzner::Cloud::API::SSHKeys methods.
id
SSH key ID (read-only).
name
SSH key name (read-write).
public_key
The public key content (read-only).
fingerprint
SSH key fingerprint (read-only).
created
Creation timestamp (read-only).
labels
Labels hash (read-write).
update
$key->name('new-name');
$key->update;
Saves changes to name and labels back to the API.
delete
$key->delete;
Deletes the SSH key.
data
my $hashref = $key->data;
Returns all SSH key data as a hashref (for JSON serialization).
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-www-hetzner/issues.
IRC
Join #kubernetes on irc.perl.org or message Getty directly.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <torsten@raudssus.de>
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.