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

名前

gdcloud iam service-accounts add-iam-policy-binding - サービス アカウントに Role/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 リファレンスの概要ページをご覧ください。