• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. API Reference (Python SDK)
  4. Data Types
  5. Object Transition Policy

Object Transition Policy

Namespace

Class

Module

Transition

com.obs.models.transition

Parameter Description

Field

Type

Optional or Mandatory

Description

storageClass

str

Mandatory when used as a request parameter

Storage class of the object after transition. Possible values are:

  • STANDARD
  • STANDARD_IA
  • GLACIER

date

str

or

DateTime

Mandatory when the parameter is used as a request parameter and days is None

Date when an object will be transited. If the type is str, the value must conform to the ISO8601 standards and must be at 00:00 (UTC time).

days

int

Mandatory when the parameter is used as a request parameter and date is None

Number of days after which an object will be transited since its creation. The value must be a positive integer.

NOTE:

date and days are mutually exclusive.