You use the HTTP HEAD method to check the metadata of an object or directory in a container. To check the metadata of an object or directory, you need read permission for the container containing the object or directory.
In response to a request to check the metadata of an object or directory, HCP returns a 200 (OK) status code if the object or directory exists and a 404 (Not Found) status code if the object or directory doesn't exist. If you don't have read permission for the container or object, HCP returns a 403 (Forbidden) status code.
Object information
If the status code returned in response to a request to check the metadata of an object or directory is 200 (OK), the response headers include this information:
•The ETag for the specified item (ETag header). For information about ETags, see Storing an object
•The date the specified item was last modified (Last-Modified header).
•The Internet media type of the specified item (Content-Type header).
•The size of the specified item, in bytes (and Content-Length header).
•For an object, any applicable custom metadata stored in the .metapairs annotation for that item (X-Object-Meta- headers). For information about X-Object-Meta- headers, see Custom metadata.
© 2015, 2020 Hitachi Vantara LLC. All rights reserved.