List object versions
Gets a list of all versions of objects in the selected bucket
- Parameters
- Advanced call ?
Function ListObjectVersions(Val Bucket, Val BasicData, Val Prefix = "", Val Version = "", Val Headers = Undefined, Val Directory = False) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Bucket | --bucket | String | ✔ | Bucket name |
| BasicData | --basic | Structure Of KeyAndValue | ✔ | Basic request data. See GetBasicDataStructure |
| Prefix | --prefix | String | ✖ | Filtering by prefix, if necessary |
| Version | --ver | String | ✖ | Version ID for the beginning of the list |
| Headers | --headers | Map Of KeyAndValue | ✖ | Additional request headers, if necessary |
| Directory | --dir | Boolean | ✖ | True > Path style URL, False > Virtual hosted style URL |
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: ListObjectVersions
1C:Enterprise/OneScript code example
URL = "s3.openintegrations.dev";
AccessKey = "bayselo...";
SecretKey = "12we34...";
Region = "BTC";
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
Directory = True; // Formation URL in path-style
Bucket = "w567hjy1";
Prefix = "pic";
Result = OPI_S3.ListObjectVersions(Bucket, BasicData, Prefix, , , Directory);
- Bash
- CMD/Bat
# JSON data can also be passed as a path to a .json file
oint s3 ListObjectVersions \
--bucket "5540d93d" \
--basic "{'URL':'s3.openintegrations.dev','AccessKey':'***','SecretKey':'***','Region':'BTC','Service':'s3'}" \
--prefix "pic" \
--dir true
:: JSON data can also be passed as a path to a .json file
oint s3 ListObjectVersions ^
--bucket "5540d93d" ^
--basic "{'URL':'s3.openintegrations.dev','AccessKey':'***','SecretKey':'***','Region':'BTC','Service':'s3'}" ^
--prefix "pic" ^
--dir true
Result
{
"status": 200,
"response": {
"ListVersionsResult": {
"Name": "5540d93d",
"Prefix": "pic",
"KeyMarker": {},
"NextVersionIdMarker": {},
"VersionIdMarker": {},
"MaxKeys": "***",
"IsTruncated": "false",
"Version": {
"Key": "***",
"LastModified": "2026-05-26T14:26:43.703Z",
"ETag": "\"9e0176f87f6565a22f78e0f9b39a4d78\"",
"Size": "2114023",
"Owner": {
"ID": "02d6176db174dc93cb1b899f7c6078f08654445fe8cf1b6ce98d8855f66bdbf4",
"DisplayName": "minio"
},
"StorageClass": "STANDARD",
"IsLatest": "true",
"VersionId": "null"
}
}
},
"headers": {
"Accept-Ranges": "bytes",
"Vary": "Accept-Encoding",
"Server": "Microsoft-IIS/10.0",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Amz-Id-2": "dd9025bab4ad464b049177c95eb6ebf374d3b3fd1af9251148b658df7ac2e3e8",
"X-Amz-Request-Id": "18B323CBBBB33A7C",
"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:27:15 GMT",
"Content-Type": "application/xml",
"Content-Length": "702"
}
}