Method | URI | Description |
---|---|---|
HEAD | /v1/{account} | Shows metadata for a specified account. |
Metadata for the account includes:
Number of containers
Number of objects
Total number of bytes that are stored in Object Storage for the account
Because the storage system can store large amounts of data, take care when you represent the total bytes response as an integer; when possible, convert it to a 64-bit unsigned integer if your platform supports that primitive type.
This operation does not accept a request body.
Do not include metadata headers in this request.
Show account metadata request:
curl -i $publicURL -X
HEAD -H "X-Auth-Token: $token"
HTTP/1.1 204 No Content Content-Length: 0 X-Account-Object-Count: 1 X-Account-Meta-Book: MobyDick X-Timestamp: 1389453423.35964 X-Account-Bytes-Used: 14 X-Account-Container-Count: 2 Content-Type: text/plain; charset=utf-8 Accept-Ranges: bytes X-Trans-Id: txafb3504870144b8ca40f7-0052d955d4 Date: Fri, 17 Jan 2014 16:09:56 GMT
For a complete description of HTTP 1.1 header definitions, see Header Field Definitions.
If the account or authentication token is not valid, the operation returns the 401 Unauthorized error code.
Normal response codes: 204
Error response codes: unauthorized (401)
This table shows the header parameters for the show account metadata request:
Name | Type | Description |
---|---|---|
| String (Required) | Authentication token. |
| Boolean (Optional) | If set to |
This table shows the URI parameters for the show account metadata request:
Name | Type | Description |
---|---|---|
| String | The unique name for the account. An account is also known as the project or tenant. |
This table shows the header parameters for the show account metadata response:
Name | Type | Description |
---|---|---|
| Int (Required) | The number of objects in the account. |
| Int (Required) | The number of containers. |
| Int (Required) | The total number of bytes that are stored in Object Storage for the account. |
| String (Optional) | The custom account metadata item, where
One |
| String (Optional) | The secret key value for temporary URLs. If not set, this header is not returned by this operation. |
| String (Optional) | A second secret key value for temporary URLs. If not set, this header is not returned by this operation. |
| String (Required) | If the operation succeeds, this value is zero (0). If the operation fails, this value is the length of the error text in the response body. |
| String (Required) | If the operation fails, this value is the MIME type of the error text in the response body. |
| Uuid (Required) | A unique transaction identifier for this request. Your service provider might need this value if you report a problem. |
| Datetime (Required) | The transaction date and time. |