NOME
gdcloud iam service-accounts keys create: crea un file JSON delle credenziali predefinite dell'applicazione contenente una chiave privata per un account di servizio.
SINOSSI
gdcloud iam service-accounts keys create FILE_NAME [flags]
DESCRIZIONE
Crea una coppia di chiavi pubblica/privata per l'account di servizio di un progetto e inserisci la chiave privata in un file JSON. Il file può essere utilizzato per lo scambio con un token STS da AIS.
ESEMPI
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
FLAG OBBLIGATORI
--iam-account string Project's service account to create the key for. The flag is required to run the command.
FLAG FACOLTATIVI
--ca-cert-path string CA cert path to verify the authentication endpoint. If omitted, then the system cert chain will be used.
GDCLOUD WIDE FLAGS
Questi flag sono disponibili per tutti i comandi: --configuration
, --format
, --help
, --project
, --quiet
.
Per saperne di più, consulta la pagina Panoramica del riferimento di gcloud CLI.