R/tags.R
droplet_do_actions.Rd
Perform actions on one or more droplets associated with a tag
droplet_do_actions(name, type, ...)
(character) Name of the tag. Required.
(character) action type, one of 'power_cycle', 'power_on', 'power_off', 'shutdown', 'enable_private_networking', 'enable_ipv6', 'enable_backups', 'disable_backups', or 'snapshot'. Required.
Additional options passed down to POST
if (FALSE) {
tag_create(name = "pluto")
d <- droplet_create()
tag_resource(name = "pluto", resource_id = d$id)
(x <- droplet_do_actions(name = "pluto", type = "power_off"))
# wait until completed, check with action(xx$actions[[1]]$id)
droplet_do_actions(name = "pluto", type = "power_on")
}