All Products
Search
Document Center

Object Storage Service:Which operations update the last access time of an object?

Last Updated:Feb 24, 2023

LastAccessTime (last access time) is an important attribute of Object Storage Service (OSS) objects. The attribute is used in scenarios, such as billing and lifecycle rules. After access tracking is enabled for a bucket, specific operations on objects may update the last access time of the objects.

The following table lists the operations that update the last access time of objects.

Action

Operation

Modify the access control list (ACL) of an object

CopyObject

PutObjectACL

Modify the user metadata of an object

CopyObject

Modify the storage class of an object

CopyObject

Modify the encryption algorithm of an object

CopyObject

Overwrite an existing object

PutObject: upload an object whose name is the same as the existing object

CopyObject: copy an object whose name is the same as the existing object

Query an object

GetObject

Important

When you call the GetObject operation to access an object to which a symbolic link points, the last access time of the object is updated.

For more information about how to enable access tracking for a bucket, see Lifecycle rules based on the last access time.