Head an object

Use the following code snippet to head an object.

response = s3_client.head_object(Bucket='bucket1', Key='README.md')
print(response)

This will head object ‘README.md’ from Ozone volume ‘s3v’ in the bucket ‘bucket1’.