Versions
Metadata about all Versions of the Objects in a Bucket
Returns metadata about all versions of the objects in a bucket. You can also use request parameters as selection criteria to return metadata about a subset of all the object versions.
To use this operation, you must have permissions to perform the `ListBucketVersions` operation. Be aware of the name difference.
A 200 OK response can contain valid or invalid XML. Make sure to design your application to parse the contents of the response and handle it appropriately.
To use this operation, you must have READ access to the bucket.
The bucket name.
my-bucket
A delimiter is a character that you specify to group keys. All keys that contain the same string between the prefix
and the first occurrence of the delimiter are grouped under a single result element in CommonPrefixes. These groups are counted as one result against the max-keys limitation. These keys are not returned elsewhere in the response.
Requests IONOS Object Storage to encode the object keys in the response and specifies the encoding method to use. An object key may contain any Unicode character; however, XML 1.0 parser cannot parse some characters, such as characters with an ASCII value from 0 to 10. For characters that are not supported in XML 1.0, you can add this parameter to request that IONOS Object Storage encode the keys in the response.
Specifies the key to start with when listing objects in a bucket.
Sets the maximum number of keys returned in the response. By default the operation returns up to 1,000 key names. The response might contain fewer keys but will never contain more. If additional keys satisfy the search criteria, but were not returned because max-keys was exceeded, the response contains <isTruncated>true</isTruncated>. To return the additional keys, see key-marker and version-id-marker.
Use this parameter to select only those keys that begin with the specified prefix. You can use prefixes to separate a bucket into different groupings of keys. (You can think of using prefix to make groups in the same way you'd use a folder in a file system.) You can use prefix with delimiter to roll up numerous objects into a single result under CommonPrefixes.
Specifies the object version you want to start listing from.
Pagination limit
Pagination token
Pagination token
GET /{Bucket} HTTP/1.1
Host: s3.eu-central-1.ionoscloud.com
Authorization: YOUR_API_KEY
Accept: */*
Success
<?xml version="1.0" encoding="UTF-8"?>
<ListVersionsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Name>my-bucket</Name>
<Prefix/>
<KeyMarker/>
<VersionIdMarker/>
<MaxKeys>1000</MaxKeys>
<IsTruncated>false</IsTruncated>
<DeleteMarker>
<Key>object-1.zip</Key>
<VersionId>fe11db05-dc03-a0cf-94b0-3cecef38a474</VersionId>
<IsLatest>true</IsLatest>
<LastModified>2023-07-17T23:32:05.923Z</LastModified>
<Owner>
<ID>fb201d53c82788a9ed3208e1fe6eea8f</ID>
</Owner>
</DeleteMarker>
<Version>
<Key>object-1.zip</Key>
<VersionId>null</VersionId>
<IsLatest>false</IsLatest>
<LastModified>2023-02-20T16:24:08.841Z</LastModified>
<StorageClass>STANDARD</StorageClass>
<Size>3</Size>
<ETag>"698d51a19d8a121ce581499d7b701668"</ETag>
<Owner>
<ID>fb201d53c82788a9ed3208e1fe6eea2f</ID>
</Owner>
</Version>
<DeleteMarker>
<Key>index.html</Key>
<VersionId>fe11d973-96c2-558f-9f29-3cecef38a77e</VersionId>
<IsLatest>true</IsLatest>
<LastModified>2023-07-19T23:31:39.799Z</LastModified>
<Owner>
<ID>fb201d53c82788a9ed3208e1fe6eea2f</ID>
</Owner>
</DeleteMarker>
<Version>
<Key>index.html</Key>
<VersionId>fe11de8c-e25b-ccbf-8f45-3cecef38a472</VersionId>
<IsLatest>false</IsLatest>
<LastModified>2023-07-13T11:47:59.732Z</LastModified>
<StorageClass>STANDARD</StorageClass>
<Size>3284412</Size>
<ETag>"3228a3a58d8e13a2e83f6e19e8d540eb"</ETag>
<Owner>
<ID>fb201d53c82788a9ed3208e1fe6eea2f</ID>
</Owner>
</Version>
</ListVersionsResult>
Was this helpful?