Get the secret ID.
The secret ID, or undefined if not yet fetched from API
Get the secret name.
The secret name (globally unique identifier)
Get the complete secret data from the API. This retrieves the full SecretView including id, name, create_time_ms, and update_time_ms.
Note: The secret value is never returned for security reasons.
Optionaloptions: RequestOptions<unknown>Request options
The secret data (value is not included)
Update this secret's value.
Parameters for updating the secret
Optionaloptions: RequestOptions<unknown>Request options
The updated Secret instance
Object-oriented interface for working with Secrets.
Remarks
Overview
The
Secretclass provides a high-level, object-oriented API for managing secrets. Secrets are encrypted key-value pairs that can be securely stored and used in Devboxes as environment variables. Secrets are identified by their globally unique name.Quickstart