NOME
gdcloud projects add-iam-policy-binding: concede uma função a um membro em um projeto.
SINOPSE
gdcloud projects add-iam-policy-binding PROJECT_ID [flags]
DESCRIÇÃO
Conceda um papel a um membro em um projeto. O membro pode ser um usuário humano ou uma conta de serviço. O nome da vinculação é gerado automaticamente.
EXEMPLOS
To grant the role "pr-test-role" for user "test-user@example.com" with IdP prefix "fop" in project "iam-test", run:
gdcloud projects add-iam-policy-binding iam-test --role=pr-test-role --member=user:fop-test-user@example.com
To grant the role "pr-test-role" for service account "test-sa" of project "test-sa-project" in the project "iam-test", run:
gdcloud projects add-iam-policy-binding iam-test --role=pr-test-role --member=serviceAccount:test-sa-project:test-sa
SINALIZADORES OBRIGATÓRIOS
--member string Member to add the binding for, defined by either user:EMAIL or serviceAccount:SERVICE_ACCOUNT_PROJECT:SERVICE_ACCOUNT_NAME. The email should contain the IdP prefix for the user.
--role string Role name to assign to the member.
SINALIZAÇÕES GERAIS DO GDCLOUD
Estas flags estão disponíveis para todos os comandos: --configuration, --format, --help, --project, --quiet.
Para mais informações, consulte a página Visão geral da referência da CLI gdcloud.