Skip to content
DocsTry Aspire
DocsTry

getSecret

Method
📦 CommunityToolkit.Aspire.Hosting.Bitwarden.SecretManager v13.5.0
interface BitwardenSecretManagerResource {
// ... omitted for brevity
getSecret(name: string): BitwardenSecretResource;
}

Signature

methodgetSecretbuilder
Gets or creates a Bitwarden secret reference whose Aspire and remote names are the same. The secret must already exist in Bitwarden; use `AddSecret` if Aspire should own and write the secret value.
getSecret(name: string): BitwardenSecretResource
namestring
BitwardenSecretResource

Applies to

This method applies to the following types: