Updated on 2025-08-25 GMT+08:00

OBS Buckets Have Enabled Versioning

Rule Details

Table 1 Rule details

Parameter

Description

Rule Name

obs-bucket-versioning-enabled

Identifier

obs-bucket-versioning-enabled

Description

If an OBS bucket does not have versioning enabled, this bucket is non-compliant.

Tag

obs

Trigger Type

Configuration change

Filter Type

obs.buckets

Rule Parameters

None

Application Scenarios

When versioning is enabled for a bucket, OBS can keep multiple versions of an object in the bucket. Versioning enables you to quickly retrieve or restore data to a certain version in case of any accidents and application failures. For details, see Versioning.

Solution

You can configure versioning for OBS buckets using the OBS console, APIs, or SDKs. For details, see Versioning.

Rule Logic

  • If an OBS bucket has versioning enabled, this bucket is compliant.
  • If an OBS bucket does not have versioning enabled, this bucket is non-compliant.