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

이름

gdcloud iam service-accounts add-iam-policy-binding - 서비스 계정에 역할/ProjectRole/ClusterRole/OrganizationRole을 부여합니다.

개요

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

설명

프로젝트의 서비스 계정에 역할, ProjectRole, ClusterRole 또는 OrganizationRole을 부여합니다. 바인딩 이름은 자동으로 생성되므로 이름을 제공할 필요가 없습니다.

EXAMPLES


  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

필수 플래그

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

선택적 플래그

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

GDCLOUD 전체 플래그

이러한 플래그는 모든 명령어에서 사용할 수 있습니다(--configuration, --format, --help, --project, --quiet).

자세한 내용은 gdcloud CLI 참조 개요 페이지를 참고하세요.