gcloud alpha compute recoverable-snapshots set-iam-policy

NAME
gcloud alpha compute recoverable-snapshots set-iam-policy - set the IAM policy binding for a Compute Engine recoverable snapshot
SYNOPSIS
gcloud alpha compute recoverable-snapshots set-iam-policy RECOVERABLE_SNAPSHOT_NAME POLICY_FILE [GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) gcloud alpha compute recoverable-snapshots set-iam-policy sets 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 alpha compute recoverable-snapshots set-iam-policy my-recoverable-snapshot policy.json

See 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-policy command 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 help for details.

NOTES
This command is currently in alpha and might change without notice. If this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist. This variant is also available:
gcloud beta compute recoverable-snapshots set-iam-policy