Skip to main content
MysteryBox has been renamed to SecretStash. In CLI commands, SDK imports and role IDs, use secretstash instead of mysterybox.
You can get information about secrets, their versions and payloads: For more information, see About SecretStash.

Prerequisites

How to get a list of secrets

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

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, run nebius secretstash 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

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, run nebius secretstash secret list.
  • --version-id (optional): ID of the version. To get the ID, run nebius secretstash secret-version list —parent-id <secret_ID>. If you do not specify --version-id, the command returns the payload of the primary version.