Class: PEClient::Resource::RBACV2::LDAP

Inherits:
Base
  • Object
show all
Defined in:
lib/pe_client/resources/rbac.v2/ldap.rb

Overview

Use the v2 ldap endpoints to get information about your LDAP directory service connections.

Constant Summary collapse

BASE_PATH =

The base path for RBAC API v2 LDAP endpoints.

"#{RBACV2::BASE_PATH}/ldap".freeze

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from PEClient::Resource::Base

Instance Method Details

#dsArray<Hash>

Deprecated.

Use #get instead.

Get information about your directory service.

Returns:

  • (Array<Hash>)


47
48
49
50
# File 'lib/pe_client/resources/rbac.v2/ldap.rb', line 47

def ds
  PEClient.deprecated "ds", "get"
  @client.get "#{RBACV2::BASE_PATH}/ds"
end

#get(uuid: nil) ⇒ Array<Hash>, Hash

Get details of configured LDAP connections.

Parameters:

  • uuid (String) (defaults to: nil)

    LDAP connection ID.

Returns:

  • (Array<Hash>, Hash)


34
35
36
37
38
39
40
# File 'lib/pe_client/resources/rbac.v2/ldap.rb', line 34

def get(uuid: nil)
  if uuid
    @client.get "#{BASE_PATH}/#{uuid}"
  else
    @client.get BASE_PATH
  end
end