NAME
gdcloud iam service-accounts add-iam-policy-binding – Weist einem Dienstkonto eine Rolle/ProjectRole/ClusterRole/OrganizationRole zu.
ZUSAMMENFASSUNG
gdcloud iam service-accounts add-iam-policy-binding [flags]
BESCHREIBUNG
Weisen Sie dem Dienstkonto eines Projekts eine Rolle, ProjectRole, ClusterRole oder OrganizationRole zu. Der Name der Bindung wird automatisch generiert. Sie müssen also keinen Namen angeben.
BEISPIELE
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
ERFORDERLICHE FLAGS
--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.
OPTIONALE FLAGS
--role-namespace string Namespace of Role to bind with the service account. This is only applicable for multizone enabled environments.
GDCLOUD-WEITE FLAGS
Diese Flags sind für alle Befehle verfügbar: --configuration, --format, --help, --project, --quiet.
Weitere Informationen finden Sie auf der Seite Übersicht über die Referenz zur gcloud CLI.