versionId
Version ID used to reference a specific version of the object.
By default, the GetObject operation returns the current version of an object. To return a different version, use the versionId subresource.
If you include a
versionIdin your request header, you must have thes3:GetObjectVersionpermission to access a specific version of an object. Thes3:GetObjectpermission is not required in this scenario.If you request the current version of an object without a specific
versionIdin the request header, only thes3:GetObjectpermission is required. Thes3:GetObjectVersionpermission is not required in this scenario.Directory buckets - S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the
nullvalue of the version ID is supported by directory buckets. You can only specifynullto theversionIdquery parameter in the request. For more information about versioning, see PutBucketVersioning.