MysteryBox is now called SecretStash. The Nebius AI Cloud CLI, API and Terraform provider still use the
mysterybox service identifier. Keep using mysterybox in scripts and manifests.- If you want to get general information about secrets (for example, a secret ID), get a list of secrets.
- If you want to find out what versions a secret has, get a list of its versions.
- If you want to get sensitive information stored in a version of a secret, get the version payload.
Prerequisites
- CLI
- Go SDK
- Python SDK
- JavaScript SDK
Install and configure the Nebius AI Cloud CLI.
How to get a list of secrets
- CLI
- Go SDK
- Python SDK
- JavaScript SDK
Run the following command:To include secrets that have been deleted in the last 30 days and can still be restored, add
--show-scheduled-for-deletion:How to get a list of versions
- CLI
- Go SDK
- Python SDK
- JavaScript SDK
To get versions of a given secret, run the following command:The command contains the following parameters:
--parent-id: ID of the secret. To get the ID, runnebius mysterybox secret list.--show-scheduled-for-deletion(optional): In addition to existing versions, lists versions that have been deleted in the last 30 days and can still be restored.
How to get a payload
Before you begin, make sure you are in a group that has at least themysterybox.payload-viewer role. You can check this in the Administration → IAM section of the web console.
- CLI
- Go SDK
- Python SDK
- JavaScript SDK
To get the payload of a given version, run the following command:In the command, set the following parameters:
-
--secret-id: ID of the secret. To get the ID, runnebius mysterybox secret list. -
--version-id(optional): ID of the version. To get the ID, runnebius mysterybox secret-version list —parent-id <secret_ID>. If you do not specify--version-id, the command returns the payload of the primary version.