• Object Storage Service

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

Response

Response Headers

Table 1 Response header parameters

Header

Type

Description

Accept-Ranges

String

(Required)

Type of ranges that the object accepts.

X-Account-Bytes-Used

Int

(Required)

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

X-Account-Container-Count

Int

(Required)

Number of containers in the account.

X-Account-Object-Count

Int

(Required)

Number of objects in the account.

X-Account-Meta-name

String

(Optional)

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

X-Account-Meta-Quota-Bytes

Int

(Optional)

Quota of the account.

X-Account-Meta-Temp-URL-Key

String

(Optional)

Secret key value for TempURL.

X-Account-Meta-Temp-URL-Key-2

String

(Optional)

A second secret key value for TempURL.

X-Account-Project-Domain-Id

String

(Required)

ID of the domain to which the account belongs.

Content-Length

String

(Required)

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

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

Content-Type

String

(Required)

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)

Object creation time and date, in UNIX Epoch timestamp format.

Response Body Parameters

If the response format is json or xml, container details are shown. The following table describes the response body parameters:

Table 2 Response body parameters

Parameter

Type

Description

name

String

Name of the container.

count

Int

Number of objects in the container.

bytes

Int

Total number of bytes that are stored in OBS for objects.

NOTE:

For performance purpose, among the response headers, OBS (compatible with OpenStack Swift) does not update X-Account-Bytes-Used, X-Account-Container-Count, and X-Account-Object-Count in real time.