List Sources
This endpoint list image sources which are assigned to the user or token.
Query Parameters
- Type: integeroffset
Skip number of items. Helpful for pagination.
- Type: integersize
Results per page.
Responses
- application/json
- application/json
- application/json
Request Example for get/image/sources
import Gumlet from '@gumlet/nodejs-sdk';
const client = new Gumlet({
apiKey: process.env['API_KEY'], // defaults to the API_KEY env var
});
const imageSource = await client.imageSources.list({
offset: 0,
size: 20,
});
console.log(imageSource);
{
"all_sources": [
{
"id": "646df1c9173a4a2fcac180b4",
"type": "aws",
"created_at": "2023-05-24T11:15:21.624Z",
"updated_at": "2024-01-24T11:57:48.744Z",
"aws": {
"bucket_name": "asd",
"bucket_region": "ap-south-1",
"access_key": "Code@123",
"secret": "****************",
"base_path": "string"
},
"namespace": "collection_name",
"webfolder": {
"base_url": "string"
},
"cname": [
"string"
],
"wasabi": {
"bucket_name": "string",
"base_path": "string"
},
"gcs": {
"bucket_name": "string",
"base_path": "string"
},
"wordpress": {
"website_url": "string"
},
"backblaze": {
"bucket_name": "string",
"base_path": "string"
},
"hetzner": {
"bucket_name": "string",
"base_path": "string"
},
"dostorage": {
"bucket_name": "string",
"base_path": "string"
},
"azure": {
"azure_account_name": "string",
"azure_container_name": "string",
"azure_path": "string"
},
"linode": {
"bucket_name": "string",
"bucket_region": "string"
},
"cloudinary": {
"cloud_name": "string"
}
}
]
}
