Show account metadata

head

/v1/{account}

Shows metadata for an account.

Request

Path Parameters
account
Type: string
Required: true
The unique name for the account. An account is also known as the project or tenant.
Header Parameters
X-Auth-Token
Type: string
Required: true
Authentication token.
X-Newest
Type: boolean
If set to true, Object Storage queries all replicas to return the most recent one. If you omit this header, Object Storage responds faster after it finds one valid replica. Because setting this header to true is more expensive for the back end, use it only when it is absolutely needed.

Response

Supported Media Types
  • application/json
204 Response
Success
Headers
Content-Length
Type: integer
Minimum Value: 0
Maximum Value: 0
This value is zero (0).
X-Account-Bytes-Used
Type: integer
Minimum Value: 0
The total number of bytes that are stored in Object Storage for the account.
X-Account-Container-Count
Type: integer
Minimum Value: 0
The number of containers.
X-Account-Meta-Temp-URL-Key
Type: string
(Optional) The secret key value for temporary URLs. If not set, this header is not returned in the response.'
X-Account-Meta-Temp-URL-Key-2
Type: string
(Optional) A second secret key value for temporary URLs. If not set, this header is not returned in the response.
X-Account-Meta-{name}
Type: string
(Optional) The custom account metadata item, where {name} is the name of the metadata item.

One X-Account-Meta-{name} response header appears for each metadata item (for each {name}).

X-Account-Object-Count
Type: integer
Minimum Value: 0
The number of objects in the account.
X-Timestamp
Type: integer (timestamp)
Minimum Value: 0
The date and time in UNIX Epoch time stamp format when the account, container, or object was initially created as a current version.

For example, 1440619048 is equivalent to Mon, Wed, 26 Aug 2015 19:57:28 GMT.

X-Trans-Id
Type: string (uuid)
A unique transaction identifier for this request. Your service provider might need this value if you report a problem.
401 Response
Request does not include an authentication token, or authentication token specified in the request is not valid. It may have expired. Authentication tokens expire after 30 minutes.
Headers
Content-Length
Type: integer
Minimum Value: 0
The length of the error text in the response body.
Content-Type
Type: string
The MIME type of the error text in the response body.

Examples

cURL Command

The following example shows how to retrieve information about your account in Oracle Cloud Infrastructure Object Storage Classic by submitting a HEAD request on the REST resource using cURL. For more information about cURL, see Use cURL.

curl -v -X HEAD \
     -H "X-Auth-Token: AUTH_tkb4fdf39c92e9f62cca9b7c196f8b6e6b" \
     https://foo.storage.oraclecloud.com/v1/myservice-bar

Sample Response

The following is a sample response of this command:

HTTP/1.1 204 No Content
Content-Length: 0
Date: Fri, 06 Mar 2015 11:48:19 GMT
X-Account-Container-Count: 3
X-Account-Meta-Owner: IT
Accept-Ranges: bytes
X-Account-Object-Count: 843
X-Account-Bytes-Used: 10304761355
X-Timestamp: 1412823447.62495
X-Account-Meta-Quota-Bytes: 107374182400
Content-Type: text/plain; charset=utf-8
X-Trans-Id: tx23a1084b8c674fdeae8d4-0054f982ac