gdcloud iam service-accounts keys create

NOMBRE

gdcloud iam service-accounts keys create: crea un archivo JSON de credenciales predeterminadas de la aplicación que contiene una clave privada de una cuenta de servicio.

SYNOPSIS

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 obtener un token STS de AIS.

EJEMPLOS


  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

BANDERAS 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.

GDCLOUD WIDE FLAGS

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 Información general sobre la referencia de la CLI de gdcloud.