1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/rackspace/requests/compute_v2/delete_attachment.rb
Julio Feijo 8920e7bbfb [rackspace|compute] Add attachments model and collection.
Provide a method for attaching, listing, and detaching block
storage volumes on Rackspace next-generation cloud servers.
2012-09-13 10:37:37 -04:00

15 lines
333 B
Ruby

module Fog
module Compute
class RackspaceV2
class Real
def delete_attachment(server_id, volume_id)
request(
:expects => [202],
:method => 'DELETE',
:path => "servers/#{server_id}/os-volume_attachments/#{volume_id}"
)
end
end
end
end
end