S3 get information on an object
Returns information about an object. This request will return the same header information as with the Get Object request, but will include the metadata only, not the object data payload.
Retrieves the current version of the object:
Syntax
HEAD /BUCKET/OBJECT HTTP/1.1
Add the versionId subresource to retrieve info for a particular version:
Syntax
HEAD /BUCKET/OBJECT?versionId=VERSION_ID HTTP/1.1
Request Headers
range
- Description
-
The range of the object to retrieve.
- Valid Values
-
Range:bytes=beginbyte-endbyte
- Required
-
No
if-modified-since
- Description
-
Gets only if modified since the timestamp.
- Valid Values
-
Timestamp
- Required
-
No
if-match
- Description
-
Gets only if object ETag matches ETag.
- Valid Values
-
Entity Tag
- Required
-
No
if-none-match
- Description
-
Gets only if object ETag matches ETag.
- Valid Values
-
Entity Tag
- Required
-
No
Response Headers
x-amz-version-id
- Description
-
Returns the version ID or null.