NOMBRE
gdcloud iam service-accounts add-iam-policy-binding: Otorga un rol (Role/ProjectRole/ClusterRole/OrganizationRole) a una cuenta de servicio.
SYNOPSIS
gdcloud iam service-accounts add-iam-policy-binding [flags]
DESCRIPCIÓN
Otorga un rol (Role, ProjectRole, ClusterRole o OrganizationRole) a la cuenta de servicio de un proyecto. El nombre de la vinculación se generará automáticamente, por lo que no es necesario que proporciones uno.
EXAMPLES
To grant the project role of name "pr-test" for project's service account "psa-test" in project "iam-test", run:
gdcloud iam service-accounts add-iam-policy-binding --role=ProjectRole/pr-test --iam-account=psa-test --role-namespace=iam-test
or
gdcloud iam service-accounts add-iam-policy-binding --role=ProjectRole/pr-test --iam-account=psa-test --project=iam-test
"--project" and "--role-namespace" flags are mutually exclusive.
MARCAS OBLIGATORIAS
--iam-account string Project's service account to bind with the role. The flag is required to run the command.
--role string Role to bind with the service account in the format of "RoleType/NAME" where RoleType is one of the Kubernetes type in Role, ProjectRole, ClusterRole or OrganizationRole, and NAME is the name of the role. The flag is required to run the command.
MARCAS OPCIONALES
--role-namespace string Namespace of Role to bind with the service account. This is only applicable for multizone enabled environments. This is mutually exclusive with the --project flag
MARCAS DE GCLOUD A NIVEL GENERAL
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.