• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. API Reference (Python SDK)
  4. Data Types
  5. Expiration Time of an Object

Expiration Time of an Object

Namespace

Class

Module

Expiration

com.obs.models.expiration

Parameter Description

Field

Type

Optional or Mandatory

Description

date

str

or

DateTime

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

Date when an object expires. If the value type is str, the value must conform with the ISO8601 standards and must be at 00:00 (UTC time), for example, 2018-01-01T00:00:00Z.

days

int

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

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

NOTE:

date and days are mutually exclusive.