gdcloud iam service-accounts add-iam-policy-binding

NOMBRE

gdcloud iam service-accounts add-iam-policy-binding: asigna un rol, un rol de proyecto, un rol de clúster o un rol de organización a una cuenta de servicio.

SYNOPSIS

gdcloud iam service-accounts add-iam-policy-binding [flags]

DESCRIPCIÓN

Concede un rol, un rol de proyecto, un rol de clúster o un rol de organización a una cuenta de servicio de un proyecto. El nombre de la vinculación se generará automáticamente, por lo que no tendrás que proporcionarlo.

EJEMPLOS


  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 --project=iam-test

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

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.