1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/rackspace/requests/load_balancers/set_ssl_termination.rb
2012-05-05 10:19:11 -07:00

22 lines
No EOL
646 B
Ruby

module Fog
module Rackspace
class LoadBalancers
class Real
def set_ssl_termination(load_balancer_id, securePort, privatekey, certificate, enabled, secureTrafficOnly)
data = {
securePort: securePort,
privatekey: privatekey,
certificate: certificate,
#intermediatecertificate: intermediatecertificate
}
request(
:body => MultiJson.encode(data),
:expects => [202,404],
:path => "loadbalancers/#{load_balancer_id}/ssltermination",
:method => 'PUT'
)
end
end
end
end
end