GET a data object
Retrieves a data object from storage.
With the GET storage/{id} method, you can retrieve a data object by data ID from the system.
Method | Resource | URI | Description |
---|---|---|---|
GET |
storage |
/api/v1/b2b/storage/{BucketName}/{id} |
Retrieves a data object from the server. For storage buckets with external HTTP. |
Parameter | Required or Optional | Description | Validation | Valid values |
---|---|---|---|---|
BucketName |
Required |
A bucket that you create when you provision storage. |
Existence of the bucket. |
Any bucket that is provisioned by using the |
id |
Required |
The unique identifier from the response header of the POST. |
Identifier exists. |
Any identifier that exists |
GET storage HTTP header response parameters
Parameter | Description | ||
---|---|---|---|
Content-Type |
Optional. The Content-Type header contains the following elements that are separated by a semicolon
Content-type;Charset;Content-Type Parameters
. An example of these header elements is
text/html;charset=UTF-8;micalg=shal
Note: If Content-Type is not present, the default value is
"application/octet-stream", which is stored in the metadata
file.
|
||
Body |
Optional. Body content for the data object is required if the blob contains data. |
||
Filename |
Optional. The Filename is stored in metadata and returned in a GET response. The
maximum number of characters is 255 and duplicate file names are
allowed.
Note: Blobs cannot be retrieved by the file
name.
|
||
Content-MD5 |
Optional. The hash that is calculated from the payload by using the MD5 algorithm, as specified in IETF RFC 1864. For example: Content-MD5:
5MTASjcWUgmtLbAi8AZ0jQ== |
||
Content-Length |
Required. The size of the blob is stored in metadata and compared to length of blob during retrieval. The size of the blob is not required if the Transfer-Encoding is chunked. |
||
Content-Disposition |
Optional. Contains the Filename and the value is stored in the metadata. For example: inline;filename="file1" . |
||
Transfer-Encoding |
Required. Indicates that Chunked Transfer Encoding (CTE) feature is enabled.
|
||
X-IBM-MEG-Domain |
Optional. The domain that is associated with the blob. For example: |
GET storage example
The following example shows a successful request.
HTTP storage request
GET /api/v1/b2b/storage/{BucketName}/{id}
HTTP storage response
HTTP/1.1 200 OK