Official Plugins (Kuzzle v2.x)
S3 v2.x
2

getFilesKeys #

List the files keys uploaded to an S3 Bucket.


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/_plugin/s3/files/
Method: GET

Other protocols #

Copied to clipboard!
{
  "controller": "s3/file",
  "action": "getFilesKeys",

}

Arguments #

None


Response #

Returns an array of file key objects object with the same info as the one returned by the listObjectsV2 aws js call but the Key value changed to show the absolute path to the file.

Copied to clipboard!
 {
  "status": 200,
  "error": null,
  "action": "getFilesKeys",
  "controller": "s3/file",
  "requestId": "<unique request identifier>",
  "result": {
    "filesKeys": [
        {
          "Key": 'https://s3.eu-west-3.amazonaws.com/half-life/xen/0-headcrab.png',
          "LastModified": '2019-12-13T23:18:10.593Z',
          "ETag": '"911c0908dfc8fb66068bd8bb3fd6a142-1"',
          "Size": 9163,
          "StorageClass": 'STANDARD',
          "Owner": {
            "DisplayName": '',
            "ID": ''
          }
        },
        {
          "Key": 'https://s3.eu-west-3.amazonaws.com/half-life/xen/0-Nihilanth.png',
          "LastModified": '2019-12-17T14:06:02.532Z',
          "ETag": '"911c0908dfc8fb66068bd8bb3fd6a142-1"',
          "Size": 20913,
          "StorageClass": 'STANDARD',
          "Owner": {
            "DisplayName": '',
            "ID": ''
          }
        }
      ]
  }
}

Possible errors #