- NAME
-
- gcloud beta compute recoverable-snapshots set-iam-policy - set the IAM policy binding for a Compute Engine recoverable snapshot
- SYNOPSIS
-
-
gcloud beta compute recoverable-snapshots set-iam-policyRECOVERABLE_SNAPSHOT_NAMEPOLICY_FILE[GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(BETA)gcloud beta compute recoverable-snapshots set-iam-policysets the IAM policy for a Compute Engine recoverable snapshot as defined in a JSON or YAML file. - EXAMPLES
-
To set the IAM policy for the recoverable snapshot 'my-recoverable-snapshot'
from a file 'policy.json', run:
gcloud beta compute recoverable-snapshots set-iam-policy my-recoverable-snapshot policy.jsonSee https://cloud.google.com/iam/docs/managing-policies for details of the policy file format and contents.
- POSITIONAL ARGUMENTS
-
RECOVERABLE_SNAPSHOT_NAME- Name of the recoverable-snapshot to set the IAM policy on.
POLICY_FILE-
Path to a local JSON or YAML formatted file containing a valid policy.
The output of the
get-iam-policycommand is a valid file, as is any JSON or YAML file conforming to the structure of a Policy.
- 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. - NOTES
-
This command is currently in beta and might change without notice. This variant
is also available:
gcloud alpha compute recoverable-snapshots set-iam-policy
gcloud beta compute recoverable-snapshots set-iam-policy
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-09-15 UTC.