Storage
APIs used for storage management, including S3, maybe Azure drives, Google Cloud...
Create new external storage
POST https://your.host.lab/external-storages
Request Body
name*
String
Storage name
type*
Integer
Now is 0 for AWS S3, future values are coming
config
JSON
A config as JSON, based on config type, sample below
{
"error_code": 0,
"error_message": "OK",
"server_time": 1639104302,
"data": "72ff0519-b416-4031-85c4-e2c412315c7a"
}uri
String
region
String
bucket_name
String
access_key
String
secret_key
String
additional_path
String
Sample
// Some code
{
"name":"storage-03",
"type":0,
"config":{
"uri":"testuri",
"region":"ap-southeast-1",
"bucket_name":"test-01",
"access_key":"test",
"secret_key":"abcxyz",
"additional_path":"mypath-01/"
}
}Get external storages by page
GET https://your.host.vinlab/external-storages
Path Parameters
_offset
Integer
_limit
Integer
_sort
String
Get external storages enums
GET https://your.host.vinlab/external-storages/enums
Get Storage detail
GET https://your.host.vinlab/external-storages/:storage_id/info
Path Parameters
storage_id*
String
Update Storage
PUT https://your.host.vinlab/external-storages/:storage_id/info
Path Parameters
storage_id*
String
uri
String
region
String
bucket_name
String
access_key
String
secret_key
String
additional_path
String
Delete Storage
DELETE https://your.host.vinlab/external-storages/:storage_id
Path Parameters
storage_id*
String
Get external storages based on permission
GET https://your.host.vinlab/external-storages/v2
Path Parameters
_offset
Integer
_limit
Integer
_sort
String
Last updated