HEAD operations against an account are
performed to retrieve the number of containers and the total
bytes stored in OpenStack Object Storage for the account. This
information is returned in two custom headers,
X-Account-Container-Count and
X-Account-Bytes-Used. Since the storage system
is designed to store large amounts of data, care should be
taken when representing the total bytes response as an
integer; when possible, convert it to a 64-bit unsigned
integer if your platform supports that primitive
type.
Example 3.9. Account Metadata Request
HEAD /<api version>/<account> HTTP/1.1
Host: storage.swiftdrive.com
X-Auth-Token: eaaafd18-0fed-4b3a-81b4-663c99ec1cbb
The HTTP return code will be 204 (No Content) if the request succeeds. A 401 (Unauthorized) will be returned for an invalid account or access key.
Example 3.10. Account Metadata Response
HTTP/1.1 204 No Content
Date: Thu, 07 Jun 2010 18:57:07 GMT
Server: Apache
X-Account-Container-Count: 3
X-Account-Bytes-Used: 323479
