Import StorageRedis

List import storages

GET

You can connect your Redis database to Label Studio as a source storage or target storage. Use this API request to get a list of all Redis import (source) storage connections for a specific project.

The project ID can be found in the URL when viewing the project in Label Studio, or you can retrieve all project IDs using List all projects.

For more information about working with external storage, see Sync data from external storage.

Query parameters

projectintegerOptional
Project ID

Response

This endpoint returns a list of objects
project
integer
A unique integer value identifying this project.
id
integerOptional
type
stringOptionalDefaults to redis
synchronizable
booleanOptional
path
stringOptional
Storage prefix (optional)
host
stringOptional
Server Host IP (optional)
port
stringOptional
Server Port (optional)
password
stringOptional
Server Password (optional)
regex_filter
stringOptional
Cloud storage regex for filtering objects
use_blob_urls
booleanOptional
Interpret objects as BLOBs and generate URLs
last_sync
datetimeOptional
Last sync finished time
last_sync_count
integerOptional
Count of tasks synced last time
last_sync_job
stringOptional
Last sync job ID
status
enumOptional
Allowed values: initializedqueuedin_progressfailedcompleted
traceback
stringOptional
Traceback report for the last failed sync
meta
map from strings to anyOptional
Meta and debug information about storage processes
title
stringOptional
Cloud storage title
description
stringOptional
Cloud storage description
created_at
datetimeOptional
Creation time
db
integerOptional
Server Database
GET
1curl http://localhost:8080/api/storages/redis/ \
2 -H "Authorization: Token <api_key>"
200Retrieved
1[
2 {
3 "project": 1,
4 "id": 1,
5 "type": "type",
6 "synchronizable": true,
7 "path": "path",
8 "host": "host",
9 "port": "port",
10 "password": "password",
11 "regex_filter": "regex_filter",
12 "use_blob_urls": true,
13 "last_sync": "2024-01-15T09:30:00Z",
14 "last_sync_count": 1,
15 "last_sync_job": "last_sync_job",
16 "status": "initialized",
17 "traceback": "traceback",
18 "meta": {
19 "meta": {
20 "key": "value"
21 }
22 },
23 "title": "title",
24 "description": "description",
25 "created_at": "2024-01-15T09:30:00Z",
26 "db": 1
27 }
28]