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

NOME

gdcloud iam service-accounts add-iam-policy-binding - Grant a Role/ProjectRole/ClusterRole/OrganizationRole to a account di servizio.

SINOSSI

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

DESCRIZIONE

Concedi un ruolo, un ProjectRole, un ClusterRole o un OrganizationRole all'account di servizio di un progetto. Il nome del binding verrà generato automaticamente, quindi non devi fornirne uno.

ESEMPI


  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

FLAG OBBLIGATORI

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

FLAG FACOLTATIVI

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

GDCLOUD WIDE FLAGS

Questi flag sono disponibili per tutti i comandi: --configuration, --format, --help, --project, --quiet.

Per saperne di più, consulta la pagina Panoramica del riferimento di gcloud CLI.