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

NOM

gdcloud iam service-accounts add-iam-policy-binding : attribue un rôle/un rôle de projet/un rôle de cluster/un rôle d'organisation à 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 --project=iam-test

DRAPEAUX REQUIS

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

INDICATEURS FACULTATIFS

      --role-namespace string   Namespace of Role to bind with the service account. This is only applicable for multizone enabled environments.

OPTIONS GCLOUD GÉNÉRALES

Ces options 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 gcloud CLI.