delete

説明

シークレットの特定のバージョンを削除します。この操作は永久的にバージョンを削除し、元に戻すことはできません。

概要

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

  Delete a secret version

Options:
  -s, --secret_id, --secret-id TEXT
                                  Secret ID  [required]
  -v, --version_id, --version-id TEXT
                                  Version ID  [required]
  --organization_id, --organization-id TEXT
                                  Organization ID. If not specified, the current
                                  organization ID is used.
  -y, --yes                       Skip confirmation prompt
  --help                          Show this message and exit.

オプション

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

削除したいバージョンを含むシークレットの ID を指定します。このオプションは必須です。

-v, --version_id, --version-id

削除したい特定のバージョンの ID を指定します。このオプションは必須です。

--organization_id, --organization-id

組織 ID を指定します。指定しない場合は、設定から現在の組織 ID が使用されます。

-y, --yes

確認プロンプトをスキップし、すぐに削除を実行します。注意して使用してください。

確認プロンプト付きでシークレットバージョンを削除

コマンド:

$ abeja secret-version delete --secret-id secret-abcdef123456 --version-id version-123456789012

出力:

以下のシークレットバージョンを削除しますか?
  - ID: version-123456789012
  - シークレットID: secret-abcdef123456
  - バージョン: 2
  - ステータス: active
  - 作成日時: 2023-05-12T10:30:00.000000Z
[Y/n]: Y
シークレットバージョンを削除しました
{
  "message": "Secret version deleted"
}

確認プロンプトなしでシークレットバージョンを削除

コマンド:

$ abeja secret-version delete --secret-id secret-abcdef123456 --version-id version-098765432109 --yes

出力:

シークレットバージョンを削除しました
{
  "message": "Secret version deleted"
}