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

NAMA

gdcloud iam service-accounts add-iam-policy-binding - Memberikan Role/ProjectRole/ClusterRole/OrganizationRole ke akun layanan.

SYNOPSIS

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

DESKRIPSI

Memberi Akun Layanan project peran Role, ProjectRole, ClusterRole, atau OrganizationRole. Nama binding akan dibuat secara otomatis sehingga Anda tidak perlu memberikan nama.

CONTOH


  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 --role-namespace=iam-test

    or

    gdcloud iam service-accounts add-iam-policy-binding --role=ProjectRole/pr-test --iam-account=psa-test --project=iam-test

    "--project" and "--role-namespace" flags are mutually exclusive.

FLAG WAJIB

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

FLAG OPSIONAL

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

FLAG GDCLOUD WIDE

Flag ini tersedia untuk semua perintah: --configuration, --format, --help, --project, --quiet.

Untuk mengetahui informasi selengkapnya, lihat halaman ringkasan referensi gcloud CLI.