Opencast

AWS S3 Archive REST Documentation

/assets/aws/s3
This service handles AWS S3 archived assets

General Notes

Table of Contents

Read methods

Method / Path: GET /{mediaPackageId}/assets/storageClass
Description: Get the S3 Storage Class for each asset in the Media Package
Path params: mediaPackageId: The media package indentifier.
Optional (query) params: NONE
Response formats: text/plain
Status codes: 200: OK, mediapackage found in S3
404: Not Found, mediapackage not found or has no assets in S3
Notes:
  • Return value description: List each assets's Object Key and S3 Storage Class
Testing:
Sample: /{mediaPackageId}/assets/storageClass
Testing form (click to reveal)
Method / Path: GET /glacier/{mediaPackageId}/assets
Description: Get the mediapackage asset's restored status
Path params: mediaPackageId: The media package indentifier.
Optional (query) params: NONE
Response formats: text/plain
Status codes: 200: OK, mediapackage found in S3 and assets in Glacier
204: No Content, mediapackage found in S3 but no assets in Glacier
404: Not Found, mediapackage not found or has no assets in S3
Notes:
  • Return value description: List each glacier asset's restoration status and expiration date
Testing:
Sample: /glacier/{mediaPackageId}/assets
Testing form (click to reveal)

Write methods

Method / Path: PUT /{mediaPackageId}/assets
Description: Move the Media Package assets to the specified S3 Storage Class if possible
Path params: mediaPackageId: The media package indentifier.
Required (form) params: storageClass: The S3 storage class, valid terms STANDARD, STANDARD_IA, INTELLIGENT_TIERING, ONEZONE_IA,GLACIER_IR, GLACIER, and DEEP_ARCHIVE. See https://aws.amazon.com/s3/storage-classes/
Optional (form) params: NONE
Response formats: text/plain
Status codes: 200: OK, mediapackage found in S3
404: Not Found, mediapackage not found or has no assets in S3
Notes:
  • Return value description: List each asset's Object Key and new S3 Storage Class
Testing:
Sample: /{mediaPackageId}/assets
Testing form (click to reveal)
Method / Path: PUT /glacier/{mediaPackageId}/assets
Description: Initiate the restore of any assets in Glacier storage class
Path params: mediaPackageId: The media package indentifier.
Optional (form) params: restorePeriod(Default value=2): Number of days to restore the assets for, default see service configuration
Response formats: text/plain
Status codes: 204: No Content, restore of assets started
400: Bad Request, invalid restore period, must be greater than zero
404: Not Found, mediapackage not found or has no assets in S3
Notes:
  • Return value description: Restore of assets initiated
Testing:
Sample: /glacier/{mediaPackageId}/assets
Testing form (click to reveal)