NOMBRE
gdcloud iam service-accounts keys create: Crea un archivo JSON de credenciales predeterminadas de la aplicación que contiene una clave privada para una cuenta de servicio.
SINOPSIS
gdcloud iam service-accounts keys create FILE_NAME [flags]
DESCRIPCIÓN
Crea un par de claves públicas y privadas para la cuenta de servicio de un proyecto y coloca la clave privada en un archivo JSON. El archivo se puede usar para intercambiar un token de STS de AIS.
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
MARCAS OBLIGATORIAS
--iam-account string Project's service account to create the key for. The flag is required to run the command.
MARCAS OPCIONALES
--ca-cert-path string CA cert path to verify the authentication endpoint. If omitted, then the system cert chain will be used.
MARCAS GENERALES DE GCLOUD
Estas marcas están disponibles para todos los comandos: --configuration
, --format
, --help
, --project
y --quiet
.
Para obtener más información, consulta la página de descripción general de la referencia de la CLI de gcloud.