• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. API Reference (Swift)
  4. Operations on Containers
  5. Show Container Details and List Objects
  6. Response

Response

Response Headers

Header

Type

Description

Accept-Ranges

String

(Required)

Type of ranges that the object accepts.

X-Container-Bytes-Used

Int

(Required)

Total number of bytes that are stored in OBS for the container.

X-Container-Object-Count

Int

(Required)

Number of objects in the container.

X-Container-Meta-name

String

(Optional)

Custom container metadata item, where {name} is the name of the metadata item.

Content-Length

String

(Required)

If the operation succeeds, the value is the length of the object list information.

If the operation fails, this value is the length of the error text in the response body.

Content-Type

String

(Required)

MIME type of the text in the response body.

Date

Datetime

(Required)

Transaction date and time.

X-Trans-Id

Uuid

(Required)

Unique transaction identifier.

X-Timestamp

Datetime

(Required)

Indicates the time when the container was created.

The format is a UNIX Epoch timestamp.

Response Body Parameters

If the response format is json or xml, object details are shown. Table 1 describes the response body parameters:

Table 1 Response body parameters

Parameter

Type

Description

name

String

Name of the object.

hash

String

MD5 checksum value of the object content.

bytes

Int

Total number of bytes that are stored in OBS for the object.

content_type

String

Content type of the object.

last_modified

Datetime

Date and time when the object was last modified.