File: //snap/google-cloud-cli/current/lib/surface/dataplex/data_taxonomies/attributes/get_iam_policy.yaml
- release_tracks: [ALPHA]
help_text:
brief: |
Retrieve a Dataplex Data Attribute IAM policy.
description: |
Displays the IAM policy associated with a Dataplex Data Attribute resource.
If formatted as JSON, the output can be edited and used as
a policy file for *set-iam-policy*. The output includes an "etag"
field identifying the version emitted and allowing detection of
concurrent policy updates.
examples: |
To get the IAM policy of a Dataplex Data Attribute `test-attribute` in project `test-project` under location `us-central1 in Data Taxonomy 'test-taxonomy'`
$ {command} test-taxonomy --project=test-project --location=us-central1 --data_taxonomy=test-datataxonomy
request:
collection: dataplex.projects.locations.dataTaxonomies.attributes
arguments:
resource:
help_text: |
Arguments and flags that define the Dataplex Data Attribute IAM policy you want to retrieve.
spec: !REF googlecloudsdk.command_lib.dataplex.resources:data_attribute