Rediger

Del via


Properties, operators, and operations in storage task conditions

This article describes the properties, operators, and operations that you can use to compose each storage task condition. To learn how to define conditions and operations, see Define storage task conditions and operations.

Important

Azure Storage Actions is currently in PREVIEW and is available these regions. See the Supplemental Terms of Use for Microsoft Azure Previews for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.

Supported properties in a clause

The following table shows the properties that you can use to compose each clause of a condition. A clause can contain string, boolean, numeric, as well as date and time properties.

String Date and time3 Numeric Boolean
AccessTier1 AccessTierChangeTime Content-Length Deleted
Metadata.Value Creation-Time TagCount IsCurrentVersion
Name DeletedTime
BlobType2 LastAccessTime
Container.Metadata.Value[Name] Last-Modified
Container.Name
Container.Metadata.Value[Name]
Container.Name
Tags.Value[Name]
VersionId

1 Allowed values are Hot, Cool, or Archive.

2 Allowed values are BlockBlob, PageBlob, or AppendBlob

3 Can be set to a specific time or to a metadata value dynamically obtained from objects. See Reference a value from object metadata.

Supported operators in a clause

The following table shows the operators that you can use in a clause to evaluate the value of each type of property.

String Date and time Numeric Boolean
contains equals equals equals
empty greater greater not
equals greaterOrEquals greaterOrEquals
endWith less less
length lessOrEquals lessOrEquals
startsWith addToTime
Matches

Supported operations

The following table shows the supported operations, parameters, and parameter values:

Operation Parameters Values
Set blob tier Tier Hot | Cold | Archive
Set blob expiry None Absolute | Never expire | Relative to creation time | Relative to current time
Delete blob None None
Undelete blob None None
Set blob tags TagSet A fixed collection of up to 10 key-value pairs
Set blob immutability policy DateTime, string DateTime of when policy ends, Locked | Unlocked
Set blob legal hold Bool True | False

See also