Method | URI | Description |
---|---|---|
GET | /v1/{account}/{container}/{object}{?signature,expires,multipart-manifest} | Downloads the object content and gets the object metadata. |
This operation returns the object metadata in the response headers and the object content in the response body.
If this is a large object, the response body
contains the concatenated content of the segment
objects. To get the manifest instead of concatenated
segment objects for a static large object, use the
multipart-manifest
query
parameter.
Example requests and responses:
Show object details for the
goodbye
object in themarktwain
container:curl -i $publicURL/marktwain/goodbye -X GET -H "X-Auth-Token: $token"
HTTP/1.1 200 OK Content-Length: 14 Accept-Ranges: bytes Last-Modified: Wed, 15 Jan 2014 16:41:49 GMT Etag: 451e372e48e0f6b1114fa0724aa79fa1 X-Timestamp: 1389804109.39027 X-Object-Meta-Orig-Filename: goodbyeworld.txt Content-Type: application/octet-stream X-Trans-Id: tx8145a190241f4cf6b05f5-0052d82a34 Date: Thu, 16 Jan 2014 18:51:32 GMT Goodbye World!
Show object details for the
goodbye
object, which does not exist, in thejaneausten
container:curl -i $publicURL/janeausten/goodbye -X GET -H "X-Auth-Token: $token"
HTTP/1.1 404 Not Found Content-Length: 70 Content-Type: text/html; charset=UTF-8 X-Trans-Id: tx073f7cbb850c4c99934b9-0052d82b04 Date: Thu, 16 Jan 2014 18:55:00 GMT <html><h1>Not Found</h1><p>The resource could not be found.</p></html>
For a complete description of HTTP 1.1 header definitions, see Header Field Definitions.
Normal response codes: 200
Error response codes: NotFound (404)
This table shows the header parameters for the get object content and metadata request:
Name | Type | Description |
---|---|---|
| String (Optional) | Authentication token. If you omit this header, your request fails unless the account owner has granted you access through an access control list (ACL). |
| Boolean (Optional) | If set to |
| Dict (Optional) | The ranges of content to get. You can use the The types of range specifications are:
The following forms of the header specify the following ranges of data:
|
| Dict (Optional) | |
| Dict (Optional) | |
| Dict (Optional) | |
| Dict (Optional) |
This table shows the URI parameters for the get object content and 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 get object content and 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 . |
| String (Optional) | If you include the |
This table shows the header parameters for the get object content and metadata response:
Name | Type | Description |
---|---|---|
| String (Required) | The length of the object content in the response body, in bytes. |
| String (Required) | The type of ranges that the object accepts. |
| String (Required) | The date and time that the object was created or the last time that the metadata was changed. |
| 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 (Required) | The MIME type of the object. |
| 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 (Required) | The custom object metadata item, where
One |
| 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 |
| 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. |