NOME
gdcloud iam service-accounts add-iam-policy-binding - Conceda uma função/função do projeto/função do cluster/função da organização a uma conta de serviço.
SYNOPSIS
gdcloud iam service-accounts add-iam-policy-binding [flags]
DESCRIÇÃO
Conceda uma função, uma função do projeto, uma função do cluster ou uma função da organização à conta de serviço de um projeto. O nome da associação é gerado automaticamente, pelo que não tem de fornecer um nome.
EXEMPLOS
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
SINALIZADORES OBRIGATÓRIOS
--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.
SINALIZADORES OPCIONAIS
--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ão disponíveis para todos os comandos: --configuration
, --format
, --help
, --project
e --quiet
.
Para mais informações, consulte a página Vista geral da referência da CLI gdcloud.