Class: Conjur::API
- Inherits:
-
Object
- Object
- Conjur::API
- Defined in:
- lib/conjur/key-pair-api.rb,
lib/conjur/api/key_pairs.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.key_pair_asset_host ⇒ Object
3 4 5 |
# File 'lib/conjur/key-pair-api.rb', line 3 def key_pair_asset_host ENV["CONJUR_KEY_PAIR_ASSET_URL"] || Conjur::Core::API.host end |
Instance Method Details
#create_key_pair(options = {}) ⇒ Object
5 6 7 |
# File 'lib/conjur/api/key_pairs.rb', line 5 def create_key_pair( = {}) standard_create Conjur::API.key_pair_asset_host, :key_pair, nil, end |
#key_pair(id) ⇒ Object
9 10 11 |
# File 'lib/conjur/api/key_pairs.rb', line 9 def key_pair id standard_show Conjur::API.key_pair_asset_host, :key_pair, id end |