gdcloud iam service-accounts keys create

名前

gdcloud iam service-accounts keys create - サービス アカウントの秘密鍵を含むアプリケーションのデフォルト認証情報の JSON ファイルを作成します。

概要

gdcloud iam service-accounts keys create FILE_NAME [flags]

説明

プロジェクトのサービス アカウントの公開鍵と秘密鍵のペアを作成し、秘密鍵を JSON ファイルに格納します。このファイルを使用して、AIS から STS トークンを取得できます。

EXAMPLES


  To create an application default credentials JSON file "/tmp/my-key.json" for service account "psa-test" in project "iam-test" using cacert file "/tmp/ca.crt", run:

    gdcloud iam service-accounts keys create /tmp/my-key.json --iam-account=psa-test --project=iam-test --ca-cert-path=/tmp/ca.crt

必須フラグ

      --iam-account string   Project's service account to create the key for. The flag is required to run the command.

オプションのフラグ

      --ca-cert-path string   CA cert path to verify the authentication endpoint. If omitted, then the system cert chain will be used.

GDCLOUD ワイドフラグ

これらのフラグは、すべてのコマンドで使用できます: --configuration--format--help--project--quiet

詳細については、gdcloud CLI リファレンスの概要ページをご覧ください。