NAME

WebService::DigitalOcean::Role::DropletActions - Droplet Actions role for DigitalOcean WebService

VERSION

version 0.010

METHODS

$do->droplet_resize(\%args)

Arguments

Int $args{droplet}
Str $args{size}

Resizes a droplet.

$do->droplet_resize({
    droplet => 123456,
    size    => '1gb',
});

More info: https://developers.digitalocean.com/#resize-a-droplet.

$do->droplet_change_kernel(\%args)

Arguments

Int $args{droplet}
Int $args{kernel}

Changes the kernel of a droplet.

$do->droplet_change_kernel({
    droplet => 123456,
    kernel  => 654321,
});

More info: https://developers.digitalocean.com/#change-the-kernel.

$do->droplet_rebuild(\%args)

Arguments

Int $args{droplet}
Str $args{image}

Rebuilds a droplet.

$do->droplet_rebuild({
    droplet => 123456,
    image   => 654321,
});

More info: https://developers.digitalocean.com/#rebuild-a-droplet.

$do->droplet_restore(\%args)

Arguments

Int $args{droplet}
Str $args{image}

Restores a droplet to an image backup.

$do->droplet_rebuild({
    droplet => 123456,
    image   => 654321,
});

More info: https://developers.digitalocean.com/#restore-a-droplet.

$do->droplet_rename(\%args)

Arguments

Int $args{droplet}
Str $args{name}

Renames a droplet, thus setting the reverse DNS.

$do->droplet_rename({
    droplet => 123456,
    name    => 'new-name',
});

More info: https://developers.digitalocean.com/#rename-a-droplet.

$do->droplet_snapshot(\%args)

Arguments

Int $args{droplet}
Str $args{name}

Saves a snapshopt of the droplet.

$do->droplet_rebuild({
    droplet => 123456,
    name    => 'snapshot-name',
});

More info: https://developers.digitalocean.com/#rebuild-a-droplet.

$do->droplet_reboot($droplet_id)

Arguments

Int $droplet_id

Reboots droplet.

$do->droplet_reboot(123456);

More info: https://developers.digitalocean.com/#reboot-a-droplet.

$do->droplet_power_cycle($droplet_id)

Arguments

Int $droplet_id

Power cycles droplet.

$do->droplet_power_cycle(123456);

More info: https://developers.digitalocean.com/#power-cycle-a-droplet.

$do->droplet_power_on($droplet_id)

Arguments

Int $droplet_id

Powers on droplet.

$do->droplet_power_on(123456);

More info: https://developers.digitalocean.com/#power-on-a-droplet.

$do->droplet_power_off($droplet_id)

Arguments

Int $droplet_id

Powers off droplet.

$do->droplet_power_off(123456);

More info: https://developers.digitalocean.com/#power-off-a-droplet.

$do->droplet_password_reset($droplet_id)

Arguments

Int $droplet_id

Resets the root password of the droplet.

$do->droplet_password_reset(123456);

More info: https://developers.digitalocean.com/#password-reset-a-droplet.

$do->droplet_shutdown($droplet_id)

Arguments

Int $droplet_id

Shuts down a droplet

$do->droplet_shutdown(123456);

More info: https://developers.digitalocean.com/#shutdown-a-droplet.

$do->droplet_enable_ipv6($droplet_id)

Arguments

Int $droplet_id

Enables IPv6 in a droplet.

$do->droplet_enable_ipv6(123456);

More info: https://developers.digitalocean.com/#enable-ipv6.

$do->droplet_enable_private_networking($droplet_id)

Arguments

Int $droplet_id

Enables private networking for a droplet.

$do->droplet_enable_private_networking(123456);

More info: https://developers.digitalocean.com/#enable-private-networking.

$do->droplet_disable_backups($droplet_id)

Arguments

Int $droplet_id

Disables backups for the droplet.

$do->droplet_disable_backups(123456);

More info: https://developers.digitalocean.com/#disable-backups.

$do->droplet_action_get(\%args)

Arguments

Int $args{droplet}
Int $args{action}

Retrieve details from a specific action.

$do->droplet_action_get({
    droplet => 123456,
    action  => 53,
});

More info: https://developers.digitalocean.com/#retrieve-a-droplet-action.

DESCRIPTION

Implements the droplets actions resource.

More info: https://developers.digitalocean.com/#droplet-actions.

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