List Storage Properties for 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

List Cloud storage properties for a content node (e.g. file) version in the repository.

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

See also:

The following GET request is used:

http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/{nodeId}/versions/{versionId}/storage-info/{content-property-qname}

Here is how to make the call:

$ curl -X GET -H 'Accept: application/json' -H 'Authorization: Basic VElDS0VUXzA4ZWI3ZTJlMmMxNzk2NGNhNTFmMGYzMzE4NmNjMmZjOWQ1NmQ1OTM=' 'http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/2b1111e5-c79e-445e-909a-46c989bc3531/versions/1.0/storage-info/cm%3Acontent' | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1686  100  1686    0     0   4052      0 --:--:-- --:--:-- --:--:--  4052

{
  "entry": {
    "storageProperties": {
      "x-alf-archived": "false"
    },
    "id": "cm:content"
  }
}

The above response is when you are running with the Standard Storage class.

Intelligent tiering storage class:

{
  "entry": {
    "storageProperties": {
      "x-alf-archived": "false",
      "x-amz-storage-class": "INTELLIGENT_TIERING"
    },
    "id": "cm:content"
  }
}

Glacier archive storage class (no restore request ongoing or submitted):

{
  "entry": {
    "storageProperties": {
      "x-alf-archived": "true",
      "x-amz-storage-class": "GLACIER"
    },
    "id": "cm:content"
  }
}

Glacier archive storage class (restore request ongoing, not completed):

{
  "entry": {
    "storageProperties": {
      "x-alf-archive-restore-in-progress": "true",
      "x-amz-restore": "ongoing-request="true"",
      "x-alf-archived": "true",
      "x-amz-storage-class": "GLACIER"
    },
    "id": "cm:content"
  }
}

Glacier archive storage class (restore request completed):

{
  "entry": {
    "storageProperties": {
      "x-alf-archive-restore-in-progress": "false",
      "x-amz-restore": "ongoing-request="false", expiry-date="Fri Nov 26 01:00:00 CET 2021"",
      "x-alf-archive-restore-expiry": "2021-11-26T00:00:00.000Z",
      "x-alf-archived": "false",
      "x-amz-storage-class": "GLACIER"
    },
    "id": "cm:content"
  }
}