object-version-id · shipping · also S3 version ID, VersionId

Object version ID

An object version ID is a service-assigned identifier used with a bucket and key to select an S3 object version.

Related Observatory article: Read on hesela.com

Scope: S3 general-purpose buckets. Generated S3 IDs are opaque, not chronological counters or checksums. A version can also be a delete marker rather than data. The literal null ID is a special case: a same-key write while versioning is suspended can replace that version's contents without changing its ID. [1] [2]

ListObjectsV2 does not return VersionId. ListObjectVersions lists retained versions and delete markers; it requires s3:ListBucketVersions permission and is not supported for directory buckets. [6] [7]

For ListObjectVersions with IsTruncated=true, continue with the returned NextKeyMarker and NextVersionIdMarker as key-marker and version-id-marker. Use this marker pair, not the ListObjectsV2 continuation token. [7]

Relations

related
Object versioning, Delete marker, Entity tag, Object storage, Object key

Advantages

  • An explicit versionId selects a retained revision for GET even when it is not current, subject to s3:GetObjectVersion permission. [4]

Limitations

  • Existing objects retain null IDs when versioning is first enabled; generated version IDs are not retroactively assigned. [1]
  • A version identifier does not prevent an authorized permanent deletion of that version. [3]
  • A checksum must still be verified separately; selecting a version is not proof that downloaded bytes match the expected data. [4]

Citations

  1. Amazon S3: How S3 Versioning works, version IDs (accessed 2026-10-15)
  2. Amazon S3: Adding objects to versioning-suspended buckets (accessed 2026-10-15)
  3. Amazon S3 API: DeleteObject, versioning-dependent effects (accessed 2026-10-15)
  4. Amazon S3 API: GetObject, version selection and checksum fields (accessed 2026-10-15)
  5. Amazon S3 API: ListObjectsV2, response encoding and fields (accessed 2026-10-28)
  6. Amazon S3 API: ListObjectVersions, version identities and permissions (accessed 2026-10-28)

Further reading

  1. Hesela: Object ETags, checksums and conditional writes (accessed 2026-10-15)

JSON: /data/terms/object-version-id.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Object version ID. Hesela. 2026-10-28. https://hesela.dev/terms/object-version-id/