1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-13 16:37:00 +00:00
gcloud-help/gcloud/storage/buckets/get-iam-policy
2023-01-19 00:56:33 +00:00

37 lines
1.1 KiB
Text

NAME
gcloud storage buckets get-iam-policy - get the IAM policy for a bucket
SYNOPSIS
gcloud storage buckets get-iam-policy URL [GCLOUD_WIDE_FLAG ...]
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).
EXAMPLES
To get the IAM policy for BUCKET:
$ gcloud storage buckets get-iam-policy gs://BUCKET
To output the IAM policy for BUCKET to a file:
$ gcloud storage buckets get-iam-policy gs://BUCKET > policy.txt
POSITIONAL ARGUMENTS
URL
Request IAM policy for this bucket.
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 $ gcloud help for details.
NOTES
This variant is also available:
$ gcloud alpha storage buckets get-iam-policy