NAME

DigitalOcean::SSH::Key - Represents a SSH Key object in the DigitalOcean API

VERSION

version 0.17

SYNOPSIS

FILL ME IN   

DESCRIPTION

FILL ME IN

METHODS

id

This is a unique identification number for the key. This can be used to reference a specific SSH key when you wish to embed a key into a Droplet.

fingerprint

This attribute contains the fingerprint value that is generated from the public key. This is a unique identifier that will differentiate it from other keys using a format that SSH recognizes.

public_key

This attribute contains the entire public key string that was uploaded. This is what is embedded into the root user's authorized_keys file if you choose to include this SSH key during Droplet creation.

name

This is the human-readable display name for the given SSH key. This is used to easily identify the SSH keys when they are displayed.

path

Returns the api path for this domain

update

This method updates an SSH key.

  • name Required, String, The name to give the new SSH key in your account.

my $updated_ssh_key = $ssh_key->update(name => 'newname');

This method returns the updated DigitalOcean::SSH::Key.

delete

This deletes the public SSH Key from your account. This will return 1 on success and undef on failure.

id

AUTHOR

Adam Hopkins <srchulo@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Adam Hopkins.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.