Export StorageAzure

Create new storage

POST

Create a new target storage connection to Microsoft Azure Blob storage.

For information about the required fields and prerequisites, see Microsoft Azure Blob storage in the Label Studio documentation.

After you add the storage, you should validate the connection before attempting to sync your data. Your data will not be exported until you sync your connection.

Request

This endpoint expects an object.
can_delete_objects
booleanOptional
Deletion from storage enabled
title
stringOptional
Storage title
description
stringOptional
Storage description
project
integerOptional
Project ID
container
stringOptional
Azure blob container
prefix
stringOptional
Azure blob prefix name
account_name
stringOptional
Azure Blob account name
account_key
stringOptional
Azure Blob account key

Response

This endpoint returns an object
can_delete_objects
booleanOptional
Deletion from storage enabled
title
stringOptional
Storage title
description
stringOptional
Storage description
project
integerOptional
Project ID
container
stringOptional
Azure blob container
prefix
stringOptional
Azure blob prefix name
account_name
stringOptional
Azure Blob account name
account_key
stringOptional
Azure Blob account key
POST
1curl -X POST http://localhost:8080/api/storages/export/azure \
2 -H "Authorization: Token <api_key>" \
3 -H "Content-Type: application/json" \
4 -d '{}'
200Successful
1{
2 "can_delete_objects": true,
3 "title": "title",
4 "description": "description",
5 "project": 1,
6 "container": "container",
7 "prefix": "prefix",
8 "account_name": "account_name",
9 "account_key": "account_key"
10}