/azure-key-vault

Ruby wrapper for Azure Key Vault REST API

Primary LanguageRuby

No longer maintained.

azure-key-vault

Ruby wrapper for Azure Key Vault REST API

Examples

Get an access token

bearer_token = KeyVault::Auth.new(<tenant id>, <client id>, <client secret>).get_bearer_token

Get an existing key vault

vault = KeyVault::Client.new(<vault name>, <api version>, bearer_token)

Get the most recent version of a secret

vault.get_secret(<secret name>)

Get a specific version of a secret

vault.get_secret(<secret name>, <secret version>)