get__bucket_available
TypeScript Client Library
public getAvailableStorageBuckets = async (): Promise<StorageBucket[]> => {
return this.makeRequest<StorageBucket[]>('bucket/available', 'GET', null);
};Code Samples
# You can also use wget
curl -X GET https://backend.flashback.tech/bucket/available \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'GET https://backend.flashback.tech/bucket/available HTTP/1.1
Host: localhost:3000
Accept: application/jsonconst headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('https://backend.flashback.tech/bucket/available',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "My Backup Bucket",
"storageType": "S3",
"bucket": "my-backup-bucket-2024",
"key": "AKIAIOSFODNN7EXAMPLE",
"status": "ONLINE",
"workspaceId": "workspace-123",
"createdAt": "2024-01-15T10:30:00Z"
}
]Responses
Status
Meaning
Description
Schema
Response Schema
Name
Type
Required
Restrictions
Description
Parameter
Value
Name
Type
Required
Restrictions
Description
Last updated
Was this helpful?