Skip to navigation

✨ Get all GCS SA import storages

Get list of all GCS import storage connections set up with Service Account Impersonation.

Authentication

AuthorizationToken

The token (or API key) must be passed as a request header. You can find your user token on the User Account page in Label Studio. Example:

curl https://label-studio-host/api/projects -H “Authorization: Token [your-token]”

Query parameters

orderingstringOptional
Which field to use when ordering the results.
projectintegerRequired
Project ID

Response

created_atdatetimeRead-only
Creation time
idintegerRead-only
projectinteger
A unique integer value identifying this project.
typestringRead-onlyDefaults to gcs_sa
bucketstring or nullOptional
GCS bucket name
descriptionstring or nullOptional
Cloud storage description
google_project_idstring or nullOptional
Google project ID
last_syncdatetime or nullOptional
Last sync finished time
last_sync_countinteger or nullOptional0-2147483647
Count of tasks synced last time
last_sync_jobstring or nullOptional<=256 characters
Last sync job ID
metaany or nullOptional
Meta and debug information about storage processes
prefixstring or nullOptional
GCS bucket prefix
presignbooleanOptionalDefaults to true
presign_ttlintegerOptional0-32767

Presigned URLs TTL (in minutes)

recursive_scanboolean or nullOptional
Perform recursive scan over the bucket content
regex_filterstring or nullOptional
Cloud storage regex for filtering objects
statusenumOptional
  • initialized - Initialized
  • queued - Queued
  • in_progress - In progress
  • failed - Failed
  • completed - Completed
  • completed_with_errors - Completed with errors
synchronizablebooleanOptionalDefaults to true
target_service_account_emailstring or nullOptional
Service account email to impersonate for GCS access
titlestring or nullOptional<=256 characters
Cloud storage title
tracebackstring or nullOptional
Traceback report for the last failed sync
use_blob_urlsbooleanOptional
Interpret objects as BLOBs and generate URLs