def resize_volume(options={})
body = Hash.new
body[:resize] = Hash.new
volume = Hash.new
body[:resize][:volume] = volume
volume[:size] = options[:size] or raise CloudDB::Exception::MissingArgument, "Must provide a volume size"
(raise CloudDB::Exception::Syntax, "Volume size must be a value between 1 and 10") if !options[:size].is_a?(Integer) || options[:size] < 1 || options[:size] > 10
response = @connection.dbreq("POST", @dbmgmthost, "#{@dbmgmtpath}/instances/#{CloudDB.escape(@id.to_s)}/action", @dbmgmtport, @dbmgmtscheme, {}, body.to_json)
CloudDB::Exception.raise_exception(response) unless response.code.to_s.match(/^20.$/)
true
end