release_tracks: [GA, BETA, ALPHA]
help_text:
  brief: Get an IAM policy on a Cloud Bigtable table.
  description: |
    Get an IAM policy on a Cloud Bigtable table.

  examples: |
    To get the IAM policy on the table `my-table` in instance `my-instance`, run:

      $ {command} my-table --instance=`my-instance`

    See https://cloud.google.com/iam/docs/managing-policies for more information.

request:
  collection: bigtableadmin.projects.instances.tables

arguments:
  resource:
    help_text: Cloud Bigtable table to get the IAM policy for.
    spec: !REF googlecloudsdk.command_lib.bigtable.resources:table

iam:
  policy_version: 3
  get_iam_policy_version_path: getIamPolicyRequest.options.requestedPolicyVersion
