NAME

WebService::DigitalOcean::Role::Keys - Keys role for DigitalOcean WebService

VERSION

version 0.002

METHODS

key_create

Arguments

Str name
Str public_key

Creates a new ssh key for this account.

my $response = $do->key_create(
    name => 'my public key',
    public_key => <$public_key_fh>,
);

key_delete

Arguments

Int id
Str fingerprint

Deletes the specified ssh key.

$do->key_delete(
    id => 146432
);

key_get

Arguments

Int id
Str fingerprint

Retrieves details about a particular ssh key, identified by id or fingerprint (pick one).

my $response = $do->key_get(
    id => 1215,
);

key_list

Retrieves all the keys for this account.

AUTHOR

André Walker <andre@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2014 by André Walker.

This is free software, licensed under:

The GNU General Public License, Version 2, June 1991