NOM
gdcloud iam service-accounts add-iam-policy-binding : accorde un rôle/ProjectRole/ClusterRole/OrganizationRole à un compte de service.
SYNOPSIS
gdcloud iam service-accounts add-iam-policy-binding [flags]
DESCRIPTION
Attribuez un rôle, un ProjectRole, un ClusterRole ou un OrganizationRole au compte de service d'un projet. Le nom de la liaison sera généré automatiquement. Vous n'avez donc pas besoin d'en fournir un.
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.
FLAGS OBLIGATOIRES
--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.
FLAGS FACULTATIFS
--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
FLAGS GDCLOUD GÉNÉRAUX
Ces flags sont disponibles pour toutes les commandes : --configuration, --format, --help, --project, --quiet.
Pour en savoir plus, consultez la page de présentation de la documentation de référence de la gdcloud CLI.