Restore File Version From Archive - Alfresco Content Services - 23.4 - 23.4 - Ready - Alfresco - external

Alfresco Content Services

Platform
Alfresco
Product
Alfresco Content Services
Release
23.4
License

Restore an archived content node (e.g. file) version from the Cloud.

API Explorer URL: http://localhost:8080/api-explorer/#/storage-info/requestRestoreVersionContentFromArchive

The following POST request is used, here the nodeId refers to a content node in the Cloud provider storage (i.e. AWS S3 or Azure Blob) and the versionId is the version of it that we want to restore: http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/{nodeId}/versions/{versionId}/storage-info/{content-property-qname}/archive-restore

The POST body for this call has one parameter that specifies the restore priority:

  • High restore priority translates to ‘Expedited’ Glacier restore tier in AWS S3 and ‘High’ rehydrate priority in Azure Blob.
  • Standard restore priority translates to ‘Standard’ Glacier restore tier in AWS S3 and ‘Standard’ rehydrate priority in Azure Blob.

High restore priority request body example:

{
"restorePriority": "High"
}

Standard restore priority request body example:

{
"restorePriority": "Standard"
}

The call looks like this:

$ curl -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Authorization: Basic VElDS0VUXzA4ZWI3ZTJlMmMxNzk2NGNhNTFmMGYzMzE4NmNjMmZjOWQ1NmQ1OTM=' -d '{  "restorePriority": "Standard"}' 'http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/2b1111e5-c79e-445e-909a-46c989bc3531/versions/1.0/storage-info/cm%3Acontent/archive-restore' | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed