Updated on 2024-11-26 GMT+08:00

Configuring and Viewing Object Metadata

Scenarios

Object metadata is a set of name-value pairs that describe an object and is used for object management. OBS has two types of metadata: system-defined object metadata and user-defined object metadata.

You can configure metadata for an object when uploading it or after the object is uploaded.

Metadata Introduction

Constraints

  • In a versioning-enabled bucket, you can only configure metadata for the current version of an object, but not for noncurrent versions.
  • Metadata cannot be configured for Archive or Deep Archive objects.
  • The user-defined metadata is limited to 8 KB in size.

Configuring Object Metadata

You can use OBS Console, APIs, SDKs, or obsutil to configure object metadata.

Viewing Object Metadata

You can use OBS Console, APIs, SDKs, or obsutil to view object metadata.

Object Metadata Content-Type