שם
gdcloud projects add-iam-policy-binding – הקצאת תפקיד לחבר בפרויקט.
SYNOPSIS
gdcloud projects add-iam-policy-binding PROJECT_ID [flags]
תיאור
הקצאת תפקיד למשתמש בפרויקט. החבר יכול להיות משתמש אנושי או חשבון שירות. השם של הקישור נוצר אוטומטית.
דוגמאות
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
דגלים נדרשים
--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.
GDCLOUD WIDE FLAGS
הדגלים האלה זמינים לכל הפקודות: --configuration, --format, --help, --project, --quiet.
מידע נוסף זמין בדף סקירה כללית של מדריך העזר ל-CLI של gcloud.