Skip to content
DocsTry Aspire
DocsTry

BitwardenSecretManagerResource.getSecretById

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

Signature

methodgetSecretByIdbuilder
Gets or creates a Bitwarden secret reference by secret identifier. Use this when multiple secrets share the same name and the identifier is the only unambiguous key. The secret must already exist in Bitwarden; use `AddSecret` if Aspire should own and write the secret value.
getSecretById(
name: string,
secretId: guid): BitwardenSecretResource
namestring
secretIdguid
BitwardenSecretResource

Defined on

This method is defined on the following type: