List buckets
Gets a list of buckets. It is possible to use filters if they are provided by your service
- Parameters
- Advanced call ?
Function ListBuckets(Val BasicData, Val Prefix = "", Val Region = "", Val PageToken = "", Val Headers = Undefined) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| BasicData | --basic | Structure Of KeyAndValue | ✔ | Basic request data. See GetBasicDataStructure |
| Prefix | --prefix | String | ✖ | Filtering by prefix, if necessary |
| Region | --region | String | ✖ | Selection by bucket region, if necessary |
| PageToken | --ctoken | String | ✖ | Page token if pagination is used |
| Headers | --headers | Map Of KeyAndValue | ✖ | Additional request headers, if necessary |
Returns
Structure Of KeyAndValue - serialized JSON response from storage
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
tip
Method at AWS documentation: ListBuckets
1C:Enterprise/OneScript code example
URL = "s3.openintegrations.dev";
AccessKey = "bayselo...";
SecretKey = "12we34...";
Region = "BTC";
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
Result = OPI_S3.ListBuckets(BasicData);
- Bash
- CMD/Bat
# JSON data can also be passed as a path to a .json file
oint s3 ListBuckets \
--basic "{'URL':'s3.openintegrations.dev','AccessKey':'***','SecretKey':'***','Region':'BTC','Service':'s3'}"
:: JSON data can also be passed as a path to a .json file
oint s3 ListBuckets ^
--basic "{'URL':'s3.openintegrations.dev','AccessKey':'***','SecretKey':'***','Region':'BTC','Service':'s3'}"
Result
{
"status": 200,
"response": {
"ListAllMyBucketsResult": {
"Owner": {
"ID": "02d6176db174dc93cb1b899f7c6078f08654445fe8cf1b6ce98d8855f66bdbf4",
"DisplayName": "minio"
},
"Buckets": {
"Bucket": [
{
"Name": "0272875a",
"CreationDate": "2026-05-26T14:21:54.566Z"
},
{
"Name": "081c646b",
"CreationDate": "2026-03-20T17:07:29.446Z"
},
{
"Name": "2c3ab0b1",
"CreationDate": "2026-03-20T17:00:33.999Z"
},
{
"Name": "551bd767",
"CreationDate": "2026-03-19T19:54:05.932Z"
},
{
"Name": "7ac5b7a4",
"CreationDate": "2026-03-20T17:01:25.968Z"
},
{
"Name": "af771a8d",
"CreationDate": "2026-05-18T18:07:46.174Z"
},
{
"Name": "b04c715a",
"CreationDate": "2026-03-20T17:02:26.746Z"
},
{
"Name": "f095d254",
"CreationDate": "2026-03-19T20:37:17.899Z"
},
{
"Name": "newbucket2",
"CreationDate": "2026-03-20T16:56:31.758Z"
}
]
}
}
},
"headers": {
"Vary": "Accept-Encoding",
"Server": "Microsoft-IIS/10.0",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Amz-Id-2": "dd9025bab4ad464b049177c95eb6ebf374d3b3fd1af9251148b658df7ac2e3e8",
"X-Amz-Request-Id": "18B323814B06D906",
"X-Content-Type-Options": "nosniff",
"X-Ratelimit-Limit": "6518",
"X-Ratelimit-Remaining": "6518",
"X-XSS-Protection": "1; mode=block",
"X-Powered-By": "ARR/3.0",
"Date": "Tue, 26 May 2026 14:21:55 GMT",
"Content-Type": "application/xml",
"Content-Length": 1096
}
}