@azure/keyvault-secrets package
Classes
SecretClient |
The SecretClient provides methods to manage KeyVaultSecret in the Azure Key Vault. The client supports creating, retrieving, updating, deleting, purging, backing up, restoring and listing KeyVaultSecrets. The client also supports listing DeletedSecret for a soft-delete enabled Azure Key Vault. |
Interfaces
Type Aliases
DeletionRecoveryLevel |
Defines values for DeletionRecoveryLevel. Known values supported by the servicePurgeable: Denotes a vault state in which deletion is an irreversible operation, without the possibility for recovery. This level corresponds to no protection being available against a Delete operation; the data is irretrievably lost upon accepting a Delete operation at the entity level or higher (vault, resource group, subscription etc.) |
Enums
KnownDeletionRecoveryLevel |
Known values of DeletionRecoveryLevel that the service accepts. |
Functions
parse |
Parses the given Key Vault Secret Id. An example is: https://.vault.azure.net/secrets// On parsing the above Id, this function returns:
|
Function Details
parseKeyVaultSecretIdentifier(string)
Parses the given Key Vault Secret Id. An example is: https://.vault.azure.net/secrets//
On parsing the above Id, this function returns:
{
sourceId: "https://<keyvault-name>.vault.azure.net/secrets/<secret-name>/<unique-version-id>",
vaultUrl: "https://<keyvault-name>.vault.azure.net",
version: "<unique-version-id>",
name: "<secret-name>"
}
function parseKeyVaultSecretIdentifier(id: string): KeyVaultSecretIdentifier
Parameters
- id
-
string
The Id of the Key Vault Secret.