Show / Hide Table of Contents

Class UpdateObjectStorageTierDetails

To change the storage tier of an object, we specify the object name and the desired storage tier in the body. Objects can be moved between Standard and InfrequentAccess tiers and from Standard or InfrequentAccess tier to Archive tier. If a version id is specified, only the specified version of the object is moved to a different storage tier, else the current version is used.

Inheritance
object
UpdateObjectStorageTierDetails
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.ObjectstorageService.Models
Assembly: OCI.DotNetSDK.Objectstorage.dll
Syntax
public class UpdateObjectStorageTierDetails

Properties

ObjectName

Declaration
[Required(ErrorMessage = "ObjectName is required.")]
[JsonProperty(PropertyName = "objectName")]
public string ObjectName { get; set; }
Property Value
Type Description
string

An object for which the storage tier needs to be changed.

Remarks

Required

StorageTier

Declaration
[Required(ErrorMessage = "StorageTier is required.")]
[JsonProperty(PropertyName = "storageTier")]
[JsonConverter(typeof(StringEnumConverter))]
public StorageTier? StorageTier { get; set; }
Property Value
Type Description
StorageTier?

The storage tier that the object should be moved to.

Remarks

Required

VersionId

Declaration
[JsonProperty(PropertyName = "versionId")]
public string VersionId { get; set; }
Property Value
Type Description
string

The versionId of the object. Current object version is used by default.

In this article
Back to top