שם
gdcloud iam service-accounts add-iam-policy-binding - Grant a Role/ProjectRole/ClusterRole/OrganizationRole to a service account.
SYNOPSIS
gdcloud iam service-accounts add-iam-policy-binding [flags]
תיאור
מקצים תפקיד, ProjectRole, ClusterRole או OrganizationRole לחשבון השירות של הפרויקט. השם של הקישור ייווצר באופן אוטומטי, כך שלא צריך לציין שם.
דוגמאות
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 WIDE FLAGS
הדגלים האלה זמינים לכל הפקודות: --configuration, --format, --help, --project, --quiet.
מידע נוסף זמין בדף סקירה כללית של מדריך העזר ל-CLI של gcloud.