HCP Tenant Management Help


Example 4: Checking the existence of a folder

Here’s a sample HEAD request that checks the existence of a folder named r&d/budget_proposals in the finance bucket. The request is being made while versioning is enabled for the bucket.

Request with s3curl command line

./s3curl.pl --id=lgreen --head -- -k
     "https://finance.europe.hcp.example.com/r&d/budget_proposals/"

Request headers

HEAD /r&d/budget_proposals/ HTTP/1.1
Host: finance.europe.hcp.example.com
Date: Fri, 10 May 2019 17:19:26 +0000
Authorization: AWS bGdyZWVu:4u9bhK0DQF2FLZtT0VVwMKdvm+I=

Response headers

HTTP/1.1 200 OK
Date: Fri, 10 May 2019 17:19:26 GMT
ETag: "d41d8cd98f00b204e9800998ecf8427e"
Accept-Ranges: bytes
x-amz-version-id: 87395113368065
Last-Modified: Wed, 18 Jan 2017 14:40:26 GMT
Content-Type: application/octet-stream
Content-Length: 0

© 2015, 2019 Hitachi Vantara Corporation. All rights reserved.