class OceanKit::Resource::VolumeAction
- OceanKit::Resource::VolumeAction
- OceanKit::Resource::Base
- Reference
- Object
Defined in:
ocean_kit/resources/volume_action.crInstance Method Summary
-
#attach(volume_id, droplet_id)
Attach a Block Storage volume to a Droplet
-
#deattach(volume_id, droplet_id)
Detach a Block Storage volume from a Droplet
-
#resize(volume_id, size_gigabytes)
Resize a Block Storage volume
- #volume_actions
Constructor methods inherited from class OceanKit::Resource::Base
new(headers : HTTP::Headers | Nil)
new
Instance methods inherited from module OceanKit::Client::Connection
destroy(path, options = nil)
destroy,
get(path, options = nil)
get,
post(path, options)
post,
put(path, options)
put,
request(http_method, path, options)
request
Instance Method Detail
def attach(volume_id, droplet_id)
#
Attach a Block Storage volume to a Droplet
Each volume may only be attached to a single Droplet. However, up to five volumes may be attached to a Droplet at a time