These methods allow you to modify existing droplets.
droplet_resize(droplet, size, ...) droplet_rebuild(droplet, image, ...) droplet_rename(droplet, name, ...) droplet_change_kernel(droplet, kernel, ...)
droplet | A droplet, or something that can be coerced to a droplet by
|
---|---|
size | (character) Size slug (name) of the image size. See |
... | Additional options passed down to low-level API method. |
image | (optional) The image ID of the backup image that you would like to restore. |
name | (character) The new name for the droplet |
kernel | (numeric) The ID of the new kernel. |
Resize a specific droplet to a different size. This will affect the number of processors and memory allocated to the droplet.
Reinstall a droplet with a default image. This is useful if you want to start again but retain the same IP address for your droplet.
Change the droplet name
Change kernel ID.
Beware: droplet_resize()
does not seem to work, see
resize()