@eqxjs/azure-manage-identity
Version:
For get Azure keyvault secret
14 lines (13 loc) • 811 B
TypeScript
import { SecretClientOptions, SetSecretOptions } from '@azure/keyvault-secrets';
/**
* Creates or updates a secret in Azure Key Vault.
*
* @param keyvaultURL - The URL of the Azure Key Vault instance
* @param secretName - The name of the secret to set
* @param secretValue - The value to store in the secret
* @param secretOpt - Optional parameters for the set-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 set
*/
export declare function setSecret(keyvaultURL: string, secretName: string, secretValue: string, secretOpt?: SetSecretOptions, clientOptions?: SecretClientOptions): Promise<import("@azure/keyvault-secrets").KeyVaultSecret>;