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