Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

BitwardenSecretManagerResource.GetSecretById

Method
📦 CommunityToolkit.Aspire.Hosting.Bitwarden.SecretManager v13.6.1
type BitwardenSecretManagerResource interface {
// ... omitted for brevity
GetSecretById(
name string,
secretId string,
) 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 string,
) BitwardenSecretResource
namestringThe Aspire resource name.
secretIdstringThe Bitwarden secret identifier.
BitwardenSecretResource

A resource builder for the secret reference.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: