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

NOME

gdcloud iam service-accounts add-iam-policy-binding: concede uma função/ProjectRole/ClusterRole/OrganizationRole a uma conta de serviço.

SINOPSE

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

DESCRIÇÃO

Conceda um papel, ProjectRole, ClusterRole ou OrganizationRole a uma conta de serviço de um projeto. O nome da vinculação será gerado automaticamente, então não é necessário 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.

FLAGS OPCIONAIS

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

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.