fog--fog/lib/fog/cloudstack/requests/compute/create_vpn_connection.rb

27 lines
688 B
Ruby

module Fog
module Compute
class Cloudstack
class Real
# Create site to site vpn connection
#
# {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/createVpnConnection.html]
def create_vpn_connection(*args)
options = {}
if args[0].is_a? Hash
options = args[0]
options.merge!('command' => 'createVpnConnection')
else
options.merge!('command' => 'createVpnConnection',
's2svpngatewayid' => args[0],
's2scustomergatewayid' => args[1])
end
request(options)
end
end
end
end
end