Class: Conjur::Core::API
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
-
.conjur_account ⇒ Object
Returns the account as determined by the conjur server.
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
Methods included from Escape
#fully_escape, #path_escape, #query_escape
Constructor Details
This class inherits a constructor from Conjur::API
Class Method Details
.conjur_account ⇒ Object
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 conjur_account info['account'] or raise "No account field in #{info.inspect}" end |