SnapshotRecycleBinPolicy

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 (Rule)
    },
    ...
  },
  "systemRules": {
    string: {
      object (Rule)
    },
    ...
  }
}
Fields
rules

map (key: string, value: object (Rule))

The rules for the snapshot recycle bin policy. The key is either 'default' or namespacedName of the TagValue which can be in the format: {organizationId}/{tag_key_short_name}/{tag_value_short_name} or {projectId}/{tag_key_short_name}/{tag_value_short_name} or {projectNumber}/{tag_key_short_name}/{tag_value_short_name}. The default rule is applied if snapshots do not have any of these tags. The value is the rule for the key.

systemRules

map (key: string, value: object (Rule))

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 (RuleConfig)
  }
}
Fields
standardSnapshots

object (RuleConfig)

The rule config for standard snapshots.

RuleConfig

The rule config for snapshots in the recycle bin.

JSON representation
{
  "retentionDurationDays": string
}
Fields
retentionDurationDays

string (int64 format)

The retention duration for snapshots in the recycle bin after which the snapshots are automatically deleted from recycle bin.