create

Description

Create a new version of an existing secret with a new value.

Synopsis

$ abeja secret-version create [--help]
Usage: abeja secret-version create [OPTIONS]

  Create a new secret version

Options:
  -s, --secret_id, --secret-id TEXT
                                  Secret ID  [required]
  -v, --value TEXT                Secret value  [required]
  --organization_id, --organization-id TEXT
                                  Organization ID. If not specified, the current
                                  organization ID is used.
  --help                          Show this message and exit.

Options

-s, --secret_id, --secret-id

Specify the ID of the secret for which you want to create a new version. This option is required.

-v, --value

Specify the new value for the secret version. This is the sensitive data you want to store securely. This option is required.

--organization_id, --organization-id

Specify the organization ID. If not specified, the current organization ID from the configuration is used.

Example

Create a new secret version

Command:

$ abeja secret-version create --secret-id secret-abcdef123456 --value "new-secure-password-123"

Output:

{
  "id": "version-234567890123",
  "secret_id": "secret-abcdef123456",
  "version": 3,
  "status": "active",
  "value": "new-secure-password-123",
  "created_at": "2023-05-15T14:20:00.000000Z"
}