Mondoo Docs

The condition(s) under which the action will be taken

gcp.project.storageService.bucket.lifecycleRuleCondition MQL resource for querying Google Cloud infrastructure with cnquery and cnspec.

Google CloudPrivate Resource

The condition(s) under which the action will be taken

Min version: 9.0.0Defaults: age numNewerVersions

Relationships

Mini Map
Google Cloud
4 resources · 7 relationshipsClick to select, expand fields to see properties.

Fields (12)

FieldTypeDescription
agerequired
intAge of an object (in days). This condition is satisfied when an object
createdBeforerequired
stringCreatedBefore: A date in RFC 3339 format with only the date part (for
customTimeBeforerequired
stringCustomTimeBefore: A date in RFC 3339 format with only the date part (for
daysSinceCustomTimerequired
intDaysSinceCustomTime: Number of days elapsed since the user-specified
daysSinceNoncurrentTimerequired
intDaysSinceNoncurrentTime: Number of days elapsed since the noncurrent
isLiverequired
intIsLive: Relevant only for versioned objects. If the value is true, this
matchesPatternrequired
stringMatchesPattern: A regular expression that satisfies the RE2 syntax. This
matchesPrefixrequired
[]stringMatchesPrefix: List of object name prefixes. This condition will be
matchesStorageClassrequired
[]stringMatchesStorageClass: Objects having any of the storage classes specified by
matchesSuffixrequired
[]stringMatchesSuffix: List of object name suffixes. This condition will be
noncurrentTimeBeforerequired
stringNoncurrentTimeBefore: A date in RFC 3339 format with only the date part (for
numNewerVersionsrequired
intNumNewerVersions: Relevant only for versioned objects. If the value is N,

Field Details

ageint

reaches the specified age

createdBeforestring

instance, "2013-01-15"). This condition is satisfied when an object is created before midnight of the specified date in UTC

customTimeBeforestring

instance, "2013-01-15"). This condition is satisfied when the custom time on an object is before this date in UTC

daysSinceCustomTimeint

timestamp set on an object. The condition is satisfied if the days elapsed is at least this number. If no custom timestamp is specified on an object, the condition does not apply

daysSinceNoncurrentTimeint

timestamp of an object. The condition is satisfied if the days elapsed is at least this number. This condition is relevant only for versioned objects. The value of the field must be a nonnegative integer. If it's zero, the object version will become eligible for Lifecycle action as soon as it becomes noncurrent

isLiveint

condition matches live objects; if the value is false, it matches archived objects

matchesPatternstring

condition is satisfied when the name of the object matches the RE2 pattern

matchesPrefix[]string

satisfied when at least one of the prefixes exactly matches the beginning of the object name

matchesStorageClass[]string

this condition will be matched

matchesSuffix[]string

satisfied when at least one of the suffixes exactly matches the end of the object name

noncurrentTimeBeforestring

instance, "2013-01-15"). This condition is satisfied when the noncurrent time on an object is before this date in UTC. This condition is relevant only for versioned objects

numNewerVersionsint

this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object