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

27 lines
663 B
Ruby

module Fog
module Compute
class Cloudstack
class Real
# Add a new Ldap Configuration
#
# {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/addLdapConfiguration.html]
def add_ldap_configuration(*args)
options = {}
if args[0].is_a? Hash
options = args[0]
options.merge!('command' => 'addLdapConfiguration')
else
options.merge!('command' => 'addLdapConfiguration',
'port' => args[0],
'hostname' => args[1])
end
request(options)
end
end
end
end
end