UNPKG

@eqxjs/azure-manage-identity

Version:

For get Azure keyvault secret

13 lines (12 loc) 737 B
import { GetSecretOptions, SecretClientOptions } from '@azure/keyvault-secrets'; /** * Retrieves a secret from Azure Key Vault. * * @param keyvaultURL - The URL of the Azure Key Vault instance * @param secretName - The name of the secret to retrieve * @param secretOpt - Optional parameters for the get-secret operation * @param clientOptions - Optional configuration for the {@link SecretClient} * @returns A promise that resolves to the {@link KeyVaultSecret} object * @throws {Error} When the secret cannot be retrieved */ export declare function getSecret(keyvaultURL: string, secretName: string, secretOpt?: GetSecretOptions, clientOptions?: SecretClientOptions): Promise<import("@azure/keyvault-secrets").KeyVaultSecret>;