List BucketsAdmin Scope
Note: Ensure you have installed the required package to use this SDK method.
The following example code snippet illustrates the implementation of the listBuckets()SDK method.
The stratus reference used in the following code snippet is the component instance.
copy
const auth = await new ZCAuth().init(req);
const stratus = new Stratus();
//list the buckets in the stratus
const listBuckets = await stratus.listBuckets();
console.log('list buckets::::', listBuckets);
Example of Expected Response
copy
list buckets:::: [
{
bucket_name: 'zylker14266',
project_details: [Object],
created_by: [Object],
created_time: 'Aug 20, 2025 03:11 PM',
modified_by: [Object],
modified_time: 'Aug 20, 2025 03:11 PM',
bucket_meta: [Object],
bucket_url: 'https://exmaplebucket14266-development.zohostratus.com'
}
]
Last Updated 2026-07-02 14:51:41 +0530 IST
Yes
No
Send your feedback to us
Skip
Submit