Method | URI | Description |
---|---|---|
HEAD | /v1/{account}/{container}/{object}{?signature,expires} | Shows object metadata. |
If the Content-Length
response header
is non-zero, the example cURL command stalls after it
prints the response headers because it is waiting for
a response body. However, the Object Storage system
does not return a response body for the HEAD
operation.
Example requests and responses:
Show object metadata:
curl -i $publicURL/marktwain/goodbye -X HEAD -H "X-Auth-Token: $token"
HTTP/1.1 200 OK Content-Length: 14 Accept-Ranges: bytes Last-Modified: Thu, 16 Jan 2014 21:12:31 GMT Etag: 451e372e48e0f6b1114fa0724aa79fa1 X-Timestamp: 1389906751.73463 X-Object-Meta-Book: GoodbyeColumbus Content-Type: application/octet-stream X-Trans-Id: tx37ea34dcd1ed48ca9bc7d-0052d84b6f Date: Thu, 16 Jan 2014 21:13:19 GMT
For a complete description of HTTP 1.1 header definitions, see Header Field Definitions.
If the request succeeds, the operation returns the 204 status code.
Normal response codes: 204
This table shows the header parameters for the show object metadata request:
Name | Type | Description |
---|---|---|
| String (Required) | Authentication token. |
| Boolean (Optional) | If set to |
This table shows the URI parameters for the show object metadata request:
Name | Type | Description |
---|---|---|
| String | The unique name for the account. An account is also known as the project or tenant. |
| String | The unique name for the container. |
| String | The unique name for the object. |
This table shows the query parameters for the show object metadata request:
Name | Type | Description |
---|---|---|
| String (Optional) | Used with temporary URLs to sign the request. For more information about temporary URLs, see OpenStack Object Storage API v1 Reference . |
| String (Optional) | Used with temporary URLs to specify the expiry time of the signature. For more information about temporary URLs, see OpenStack Object Storage API v1 Reference . |
This table shows the header parameters for the show object metadata response:
Name | Type | Description |
---|---|---|
| String (Required) | The date and time that the object was created or the last time that the metadata was changed. |
| String (Required) | The length of the object content in the response body, in bytes. |
| String (Required) |
HEAD operations do not return content. However,
in this operation the value in the
|
| String (Required) | The MIME type of the object. |
| String (Required) | For objects smaller than 5 GB, this value is the MD5 checksum of the object content. The value is not quoted. For manifest objects, this value is the MD5 checksum of the concatenated string of MD5 checksums and ETags for each of the segments in the manifest, and not the MD5 checksum of the content that was downloaded. Also the value is enclosed in double-quote characters. You are strongly recommended to compute the MD5 checksum of the response body as it is received and compare this value with the one in the ETag header. If they differ, the content was corrupted, so retry the operation. |
| String (Optional) | If set, the value of the
If not set, this header is not returned by this operation. |
| String (Optional) | If set, specifies the override behavior for the browser. For example, this header might specify that the browser use a download program to save this file rather than show the file, which is the default. If not set, this header is not returned by this operation. |
| String (Optional) | If set, the time when the object will be deleted by the system in the format of a UNIX Epoch timestamp. If not set, this header is not returned by this operation. |
| String (Optional) | If set, to this is a dynamic large object manifest object.
The value is the container and object name prefix of the segment objects
in the form |
| String (Required) | The custom object metadata item, where
One |
| Bool (Required) | Set to |
| 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. |