gdcloud iam service-accounts keys create

NAME

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

SYNOPSIS

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 リファレンスの概要ページをご覧ください。