BitwardenSecretManagerResource.GetSecretById
Method
type BitwardenSecretManagerResource interface { // ... omitted for brevity GetSecretById( name string, secretId string, ) BitwardenSecretResource}Signature
method
GetSecretById builderGets 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,) BitwardenSecretResourceParameters
namestringThe Aspire resource name.secretId stringThe Bitwarden secret identifier.Returns
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: