mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00

Provide a method for attaching, listing, and detaching block storage volumes on Rackspace next-generation cloud servers.
15 lines
337 B
Ruby
15 lines
337 B
Ruby
module Fog
|
|
module Compute
|
|
class RackspaceV2
|
|
class Real
|
|
def get_attachment(server_id, volume_id)
|
|
request(
|
|
:expects => [200, 203, 300],
|
|
:method => 'GET',
|
|
:path => "servers/#{server_id}/os-volume_attachments/#{volume_id}"
|
|
)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|