get

説明

特定のシークレットの詳細情報を ID で取得します。

概要

$ abeja secret get [--help]
Usage: abeja secret get [OPTIONS]

  Get a specific secret

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

オプション

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

取得したいシークレットの ID を指定します。このオプションは必須です。

--organization_id, --organization-id

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

ID で特定のシークレットを取得

コマンド:

$ abeja secret get --secret-id secret-abcdef123456

出力:

{
  "id": "secret-abcdef123456",
  "name": "database-password",
  "description": "プロダクションデータベースのパスワード",
  "created_at": "2023-05-01T10:30:00.000000Z",
  "updated_at": "2023-05-01T10:30:00.000000Z",
  "expired_at": "2025-05-01T10:30:00.000000Z",
  "versions": [
    {
      "version": 1,
      "value": "my-secure-password",
      "created_at": "2023-05-01T10:30:00.000000Z"
    }
  ]
}