| Back | Main view

Object content streaming using IMiS/Storage Connector Services REST

Product:IMiS/StorageConnector Services REST
Release:9.9.2210
Date:07/26/2023

Case: Object content streaming using IMiS/Storage Connector Services REST

Description:

This example demonstrates operations which are used for streaming object staging object content on the IMiS/ARChive Server.

Requests and responses are in JSON format.

Below is a description of operations for the streaming object content.

1. Open object stream

Operation opens object stream and stream handle is returned.

Request
GET archives/{archiveId}/objects/{objectId}/handle/open.json

Headers:
- Authorization: Bearer <session-token>

Response

Body:
{
  "handle": "<stream-handle>"
}

2. Read object partial stream

Operation reads object stream with specified bytes in range header.

Request
GET archives/{archiveId}/objects/H:{streamHandle}/stream

Headers:
- Authorization: Bearer <session-token>
- Range: bytes=[beginning of object in bytes]-[end of object in bytes (optional)]
  - example of range header value: bytes=0-10

Response

Headers:
- Content-Range: bytes [beginning of object in bytes]-[end of object in bytes]/[total length of object in bytes]
  - example of Content-Range header: bytes 0-9/93847
- Content-Type: MIME type of the object

Body:
<content-bytes>

3. Close object stream

Operation closes object stream.

Request
GET archives/{archiveId}/objects/{streamHandle}/handle/close.json

Headers:
- Authorization: Bearer <session-token>

Response

Operation returns status 200.

Related Documents:



| Back | Main view