Class: Conjur::Core::API

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

Constant Summary

Constants inherited from API

API::GLOBAL_PRIVILEGE_RESOURCE, API::VERSION

Instance Attribute Summary

Attributes inherited from API

#api_key, #audit_resources, #audit_roles, #privilege, #remote_ip

Class Method Summary collapse

Methods inherited from API

#add_public_key, appliance_health, appliance_info, #audit, #audit_resource, #audit_role, #audit_send, authenticate, #bootstrap, #create_deputy, #create_group, #create_host, #create_host_factory, #create_layer, #create_resource, #create_role, #create_user, #create_variable, #credentials, #current_role, decode_audit_ids, #delete_public_key, #deputy, encode_audit_ids, #find_groups, #global_privilege_permitted?, #group, #groups, #host, #host_factory, host_factory_asset_host, #host_factory_create_host, host_factory_create_host, #initialize, #layer, #layers, #ldap_sync_now, login, login_cas, new_from_key, new_from_token, #public_key, #public_key_names, #public_keys, #resource, #resources, #revoke_host_factory_token, #role, #role_graph, rotate_api_key, service_names, service_version, #show_host_factory_token, #token, update_password, #user, #username, #variable, #variable_expirations, #variable_values, #with_audit_resources, #with_audit_roles, #with_privilege

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