@eqxjs/azure-manage-identity
Version:
For get Azure keyvault secret
13 lines (12 loc) • 785 B
TypeScript
import { BeginDeleteSecretOptions, SecretClientOptions } from '@azure/keyvault-secrets';
/**
* Removes a secret from Azure Key Vault and waits until the deletion is complete.
*
* @param keyvaultURL - The URL of the Azure Key Vault instance
* @param secretName - The name of the secret to remove
* @param secretOpt - Optional parameters for the delete operation
* @param clientOptions - Optional configuration for the {@link SecretClient}
* @returns A promise that resolves to the {@link DeletedSecret} object
* @throws {Error} When the secret cannot be deleted
*/
export declare function removeSecret(keyvaultURL: string, secretName: string, secretOpt?: BeginDeleteSecretOptions, clientOptions?: SecretClientOptions): Promise<import("@azure/keyvault-secrets").DeletedSecret>;