HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //lib/google-cloud-sdk/lib/surface/metastore/federations/add_iam_policy_binding.yaml
release_tracks: [ALPHA, BETA, GA]
help_text:
  brief: Add an IAM policy binding to a federation.
  description: |
    Add an IAM policy binding to a federation.

  examples: |
    To add an IAM policy binding for the role of `roles/metastore.admin` for the user
    `test-user@gmail.com`, run:

      $ {command} my-federation --member='user:test-user@gmail.com' --role='roles/metastore.admin'

    See https://cloud.google.com/dataproc-metastore/docs/iam-and-access-control for details of
    policy role and member types.

request:
  collection: metastore.projects.locations.federations
  ALPHA:
    api_version: v1alpha
  BETA:
    api_version: v1beta
  GA:
    api_version: v1

iam:
  enable_condition: false
  policy_version: 0

arguments:
  resource:
    help_text: Federation for which to add the IAM policy to.
    spec: !REF googlecloudsdk.command_lib.metastore.resources:federation