NAME

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

VERSION

version 0.003

METHODS

$do->key_create(%args)

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>,
);

More info: https://developers.digitalocean.com/#create-a-new-key.

$do->key_delete(%args)

Arguments

Int id
Str fingerprint

Deletes the specified ssh key.

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

More info: https://developers.digitalocean.com/#destroy-a-key.

$do->key_get(%args)

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,
);

More info: https://developers.digitalocean.com/#retrieve-an-existing-key.

$do->key_list()

Retrieves all the keys for this account.

More info: https://developers.digitalocean.com/#list-all-keys.

DESCRIPTION

Implements the SSH Keys resource.

More info: https://developers.digitalocean.com/#keys.

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