Represents the singleton resource Snapshot Recycle Bin Policy that configures the retention duration for snapshots in the recycle bin.
You can configure the retention duration for snapshots in the recycle bin at the project or organization level. If you configure the policy at the organization level, all projects in that organization will share the same policy. If you configure the policy at the project level it will be merged with org level policy (if any) and the snapshots in that project will use that policy.
| JSON representation |
|---|
{ "rules": { string: { object ( |
| Fields | |
|---|---|
rules |
The rules for the snapshot recycle bin policy. The key is either 'default' or namespacedName of the TagValue which can be in the format: |
systemRules |
Output only. The system rules for snapshot recycle bin policy. Defines the default rule that applies if no customer-defined rule matches. |
Rule
A rule that defines the retention policy for snapshots in the recycle bin.
| JSON representation |
|---|
{
"standardSnapshots": {
object ( |
| Fields | |
|---|---|
standardSnapshots |
The rule config for standard snapshots. |
RuleConfig
The rule config for snapshots in the recycle bin.
| JSON representation |
|---|
{ "retentionDurationDays": string } |
| Fields | |
|---|---|
retentionDurationDays |
The retention duration for snapshots in the recycle bin after which the snapshots are automatically deleted from recycle bin. |