# File lib/fog/profitbricks/requests/compute/restore_volume_snapshot.rb, line 24 def restore_volume_snapshot(datacenter_id, volume_id, options = {}) request( :expects => [202], :method => 'POST', :path => "/datacenters/#{datacenter_id}/volumes/#{volume_id}/restore-snapshot", :headers => { "Content-Type" => "application/x-www-form-urlencoded" }, :body => URI.encode_www_form("snapshotId" => options[:snapshot_id]) ) end