Example 1: Retrieving custom metadata for an object

Here's a sample HEAD request that checks the metadata of an object named sales_quotas_2013.pdf, which has custom metadata.

Request with curl command line

curl -k -i -X HEAD http://api.hcp.example.com/swift/v1/AUTH_6b6884ebb6f441cfbb7e740f6a927c9e/finance/sales_quotas_2013.pdf -H "X-Auth-Token: dc5efec8f546455eac974e7bbfd0dd87"

Request headers

HEAD /swift/v1/AUTH_6b6884ebb6f441cfbb7e740f6a927c9e/finance/sales_quotas_2013.pdf HTTP/1.1
X-Auth-Token: dc5efec8f546455eac974e7bbfd0dd87
X-Object-Meta-author: P.D Grey

Response headers

HTTP/1.1 200 OK
Date: Fri, 24 Oct 2014 14:29:06 GMT
X-Trans-Id: 156263da-2e0c-49d6-b237-dc7745bd3975
Accept-Ranges: bytes
X-Static-Large-Object: false
ETag: d41d8cd98f00b204e9800998ecf8427e
Last-Modified: Fri, 31 Oct 2014 20:40:16 GMT
X-Object-Meta-author: P.D Grey
Content-Type: application/octet-stream
Content-Length: 0

© 2015, 2020 Hitachi Vantara LLC. All rights reserved.