File Storage API
File storage endpoints provide functionality to store files and binary data through configured file storage backend connections.
| Method | Endpoint |
|---|---|
|
|
Description Retrieves metadata of a file in the file storage. |
|
Path Parameter
|
|
Returns Returns the metadata of the requested file in JSON format. HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user, API Key or access token is required. |
|
|
|
Description Retrieves a list of file metadata in the file storage. |
|
Query Parameter
|
|
Returns Returns a JSON array containing metadata for files stored in the object store bucket. HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user, API Key or access token is required. |
|
|
|
Description Downloads the requested file from the file storage. This is done by redirecting to a presigned download URL or streaming the cloud file content (depending on the option 'fileStorageDownloadThroughBpc'). |
|
Path Parameter
|
|
Query Parameter
|
|
Returns The requested file as a download. HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user, API Key or access token is required. |
|
|
|
Description Get a download URL for the requested file from the file storage. The return body is a presigned download URL to the file or the url of the download endpoint (depending on the option 'fileStorageDownloadThroughBpc'). |
|
Path Parameter
|
|
Query Parameter
|
|
Returns A temporary valid download url for the requested file. HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user, API Key or access token is required. |
|
|
|
Description Create a file in the file storage. The file and necessary metadata are passed via multipart form data. Required are the following form fields:
The parameter Additionally, a form field The read and write restrictions use the following format:
The evaluation is done as follows:
Note, the uploader needs to fulfill both read and write restrictions. |
|
Consumes
|
|
Returns The created file metadata, including a success flag. HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Add a file in the file storage by passing a reference to a file in the cloud storage. The file key and necessary metadata are passed in the request body as JSON. The following fields are required:
The following fields are optional and if not present, the information is taken from the file metadata at the cloud storage provider.
Additionally, a field The read and write restrictions use the following format:
The evaluation is done as follows:
Note, the uploader needs to fulfill both read and write restrictions. |
|
Consumes
|
|
Query Parameter
|
|
Returns The created file metadata, including a success flag. HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Replaces an existing file in the file storage. The file is passed via multipart form data. |
|
Consumes
|
|
Path Parameter
|
|
Returns The updated file metadata. HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user, API Key or access token is required. |
|
|
|
Description Updates the metadata of a file in the file storage. Updates can be applied to 'File Name', 'Read Restrictions' and 'Write Restrictions'. Fields in the PUT-DTO that are left out will not be updated. |
|
Consumes
|
|
Path Parameter
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user, API Key or access token is required. |
|
|
|
Description Deletes a file in the file storage. |
|
Path Parameter
|
|
Query Parameter
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user, API Key or access token is required. |
|
|
|
Description Triggers an indexing process from cloud storage to the OpenSearch index. Missing metadata entries in the File-Storage OpenSearch index will be created for files in the cloud storage. Only files that are not already present in the index will be indexed. The backend connection ID is required. If a bucket is specified, only that bucket will be synchronized. Otherwise, all buckets of the backend connection will be synchronized. |
|
Consumes
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|