HeadObject
Returns the metadata of the object.
The method is equivalent to the GetObject method , but the object itself is missing from the response.
Request
Path parameters
Parameter
Description
bucket
Bucket name.
key
Object key.
Headings
Use the required common headers in the request .
You can also use the following headers in the request:
Heading
Description
Range
If-Modified-Since
If-Unmodified-Since
If-Match
If-None-Match
Answer
Headings
In addition to the general headers, you can see the headers listed in the table below in the response.
Heading
Description
x-amz-meta-*
The custom metadata of the object, saved with the object.
x-amz-storage-class
Object storage class.
Matters COLD
if the object is in Cold Storage.
If the object is saved in the Standard storage, then there will be no title.
x-amz-server-side-encryption
The encryption algorithm used to encrypt the object. Returned if the object was loaded with encryption enabled .
x-amz-server-side-encryption-aws-kms-key-id
KMS key identifier . Returned if the object was loaded with encryption enabled .
Answer codes
For a list of possible answers, see the Answers section .
Last updated