File: //snap/google-cloud-cli/current/help/man/man1/gcloud_storage_buckets_get-iam-policy.1
.TH "GCLOUD_STORAGE_BUCKETS_GET\-IAM\-POLICY" 1
.SH "NAME"
.HP
gcloud storage buckets get\-iam\-policy \- get the IAM policy for a bucket
.SH "SYNOPSIS"
.HP
\f5gcloud storage buckets get\-iam\-policy\fR \fIURL\fR [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
Get the IAM policy for a bucket. For more information, see Cloud Identity and
Access Management (https://cloud.google.com/storage/docs/access\-control/iam).
.SH "EXAMPLES"
To get the IAM policy for BUCKET:
.RS 2m
$ gcloud storage buckets get\-iam\-policy gs://BUCKET
.RE
To output the IAM policy for BUCKET to a file:
.RS 2m
$ gcloud storage buckets get\-iam\-policy gs://BUCKET > policy.txt
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fIURL\fR
Request IAM policy for this bucket.
.RE
.sp
.SH "GCLOUD WIDE FLAGS"
These flags are available to all commands: \-\-access\-token\-file, \-\-account,
\-\-billing\-project, \-\-configuration, \-\-flags\-file, \-\-flatten,
\-\-format, \-\-help, \-\-impersonate\-service\-account, \-\-log\-http,
\-\-project, \-\-quiet, \-\-trace\-token, \-\-user\-output\-enabled,
\-\-verbosity.
Run \fB$ gcloud help\fR for details.
.SH "NOTES"
This variant is also available:
.RS 2m
$ gcloud alpha storage buckets get\-iam\-policy
.RE