Archive a File Version - Alfresco Content Services - 23.4 - 23.4 - Ready - Alfresco - external

Alfresco Content Services

Platform
Alfresco
Product
Alfresco Content Services
Release
23.4
License

Archive a content node (e.g. file) version in the Cloud.

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

See also:

The following POST request is used, here the nodeId refers to a content node in the Alfresco repository and the versionId refers to the version identifier of that file that we want to archive in the Cloud: http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/{nodeId}/versions/{versionId}/storage-info/{content-property-qname}/archive

The POST body for this call looks like this:

Note:

This is currently not supported by any Alfresco Cloud Connector.

{
  "archiveParams": {
                "x-amz-storage-class": "GLACIER"
              }
}

The call looks like this:

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