Show account metadata

head

/v1/{account}

Shows metadata for an account.

Request

Path Parameters
  • The unique name for the account. An account is also known as the project or tenant.
Header Parameters
  • Authentication token.
  • 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.
Back to Top

Response

Supported Media Types

204 Response

Success
Headers

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
Back to Top

Examples

cURL Command

Sample Cloud account with the following details:

  • Account name: acme

  • REST Endpoint URL: https://acme.storage.oraclecloud.com/v1/Storage-acme

  • REST Endpoint (Permanent) URL: https://storage-7b16fede61e1417ab83eb52e06f0e365.storage.oraclecloud.com/v1/Storage-7b16fede61e1417ab83eb52e06f0e365

Note:

The REST Endpoint (Permanent) URL is displayed for the accounts created after November 2017.

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.

  • Using the REST Endpoint URL obtained from the REST Endpoint field in the My Services dashboard:

    curl -v -X HEAD \
         -H "X-Auth-Token: AUTH_tkb4fdf39c92e9f62cca9b7c196f8b6e6b" \
         https://acme.storage.oraclecloud.com/v1/Storage-acme

    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
    
  • Using the Service Permanent REST Endpoint URL obtained from the REST Endpoint (Permanent) field in the My Services dashboard:

    Note:

    This cURL command example applies to the accounts created after November 2017.
    curl -v -X HEAD \
         -H "X-Auth-Token: AUTH_tkb4fdf39c92e9f62cca9b7c196f8b6e6b" \
         https://storage-7b16fede61e1417ab83eb52e06f0e365.storage.oraclecloud.com/v1/Storage-7b16fede61e1417ab83eb52e06f0e365

    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
    
Back to Top