- INFORMATION
-
gcloud alpha compute snapshots get-effective-recycle-bin-ruleis not available in universe domainuniverse. - NAME
-
- gcloud alpha compute snapshots get-effective-recycle-bin-rule - returns the effective recycle bin rule for a Compute Engine snapshot
- SYNOPSIS
-
-
gcloud alpha compute snapshots get-effective-recycle-bin-ruleSNAPSHOT_NAME[GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(ALPHA)gcloud alpha compute snapshots get-effective-recycle-bin-ruledisplays the effective recycle bin rule for a Compute Engine snapshot in a project.Given an existing snapshot is queried, successful output of this command looks like the following:
retentionDurationDays: '7'
- EXAMPLES
-
To get the effective recycle bin rule for a snapshot, run:
gcloud alpha compute snapshots get-effective-recycle-bin-rule SNAPSHOT_NAME - POSITIONAL ARGUMENTS
-
SNAPSHOT_NAME- Name of the snapshot to get the effective recycle bin rule for.
- 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 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 snapshots get-effective-recycle-bin-rule
gcloud alpha compute snapshots get-effective-recycle-bin-rule
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-01 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-09-01 UTC."],[],[]]