- NAME
-
- gcloud beta compute backend-buckets test-iam-permissions - test IAM permissions for a Compute Engine backend bucket
- SYNOPSIS
-
-
gcloud beta compute backend-buckets test-iam-permissionsBACKEND_BUCKET--permissions=[PERMISSION,…] [--global|--region=REGION] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(BETA)gcloud beta compute backend-buckets test-iam-permissionstests the IAM permissions that a caller has on a Compute Engine backend bucket.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
- EXAMPLES
-
To test if the caller has
compute.backendBuckets.getandcompute.backendBuckets.updatepermissions on a global backend bucketmy-backend-bucket, run:gcloud beta compute backend-buckets test-iam-permissions my-backend-bucket --permissions=compute.backendBuckets.get,compute.backendBuckets.updateTo test permissions on a regional backend bucket
my-backend-bucketin regionus-central1, run:gcloud beta compute backend-buckets test-iam-permissions my-backend-bucket --region=us-central1 --permissions=compute.regionBackendBuckets.get,compute.regionBackendBuckets.update - POSITIONAL ARGUMENTS
-
BACKEND_BUCKET-
ID of the backend bucket or fully qualified identifier for the backend bucket.
To set the backend_bucket attribute: + provide the argument backend_bucket on the command line.
- REQUIRED FLAGS
-
--permissions=[PERMISSION,…]- The set of permissions to check for the resource.
- OPTIONAL FLAGS
-
-
At most one of these can be specified:
--global- If set, the backend bucket is global.
--region=REGION-
Region of the backend bucket to test IAM permissions for. Overrides the default
compute/regionproperty value for this command invocation.
-
At most one of these can be specified:
- 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 helpfor details. - API REFERENCE
- This command uses the compute API. The full documentation for this API can be found at: https://cloud.google.com/compute/
- NOTES
-
This command is currently in beta and might change without notice. These
variants are also available:
gcloud compute backend-buckets test-iam-permissionsgcloud alpha compute backend-buckets test-iam-permissionsgcloud preview compute backend-buckets test-iam-permissions
gcloud beta compute backend-buckets test-iam-permissions
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-07-14 UTC.