gdcloud iam service-accounts keys create

NAME

gdcloud iam service-accounts keys create: Erstellt eine JSON-Datei mit Standardanmeldedaten für Anwendungen, die einen privaten Schlüssel für ein Dienstkonto enthält.

ZUSAMMENFASSUNG

gdcloud iam service-accounts keys create FILE_NAME [flags]

BESCHREIBUNG

Erstellen Sie ein Paar aus öffentlichen und privaten Schlüsseln für das Dienstkonto eines Projekts und speichern Sie den privaten Schlüssel in einer JSON-Datei. Die Datei kann verwendet werden, um ein STS-Token von AIS zu erhalten.

BEISPIELE


  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

ERFORDERLICHE FLAGS

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

OPTIONALE FLAGS

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

GDCLOUD-WEITE FLAGS

Diese Flags sind für alle Befehle verfügbar: --configuration, --format, --help, --project, --quiet.

Weitere Informationen finden Sie auf der Seite Übersicht über die Referenz zur gcloud CLI.