NOME
gdcloud iam service-accounts add-iam-policy-binding - Grant a Role/ProjectRole/ClusterRole/OrganizationRole to a account di servizio.
SYNOPSIS
gdcloud iam service-accounts add-iam-policy-binding [flags]
DESCRIZIONE
Concedi un ruolo, un ProjectRole, un ClusterRole o un OrganizationRole a un account di servizio del 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 --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.
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. This is mutually exclusive with the --project flag
FLAG A LIVELLO DI GDCLOUD
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.