You can use this operation to view an object's metadata, as long as you have READ permission for the object.
This operation makes server-side encryption available.
By default, the metadata of the object of the latest version is obtained. If the version ID of the object is a deletion mark, 404 is returned. You can specify versionId to obtain the metadata of an object of the desired version.