Class: Conjur::Core::API

Inherits:
API
  • Object
show all
Defined in:
lib/conjur/core-api.rb

Constant Summary

Constants inherited from API

API::VERSION

Instance Attribute Summary

Attributes inherited from API

#api_key

Class Method Summary collapse

Methods inherited from API

#add_public_key, #audit, #audit_resource, #audit_role, authenticate, #create_deputy, #create_group, #create_host, #create_layer, #create_resource, #create_role, #create_user, #create_variable, #credentials, #current_role, #delete_public_key, #deputy, #find_groups, #group, #groups, #host, #initialize, #layer, #layers, login, login_cas, new_from_key, new_from_token, #public_key, #public_key_names, #public_keys, #resource, #resources, #role, #role_graph, #token, update_password, #user, #username, #variable, #variable_values

Methods included from LogSource

#log

Methods included from Escape

#fully_escape, #path_escape, #query_escape

Constructor Details

This class inherits a constructor from Conjur::API

Class Method Details

.conjur_accountObject

Returns the account as determined by the conjur server.

You should generally provide the account with Conjur::Configuration#account, but this method can determine it by asking the server.

You do not need any credentials to call this method.



52
53
54
# File 'lib/conjur/core-api.rb', line 52

def 
  info['account'] or raise "No account field in #{info.inspect}"
end