百度智能云

All Product Document

          Object Storage

          HeadBucket

          Interface Description

          This interface is used to check whether the bucket exists and the requester has permission to access this bucket. When the request returns “200 OK”, it indicates that the bucket exists and the requester has permission to access this bucket.

          Request

          • Request syntax

            HEAD / HTTP/1.1
            Host: <BucketName>.bj.bcebos.com
            Date: <Date> 
            Authorization: <AuthorizationString>
          • Request header field

            No special header parameters.

          • Request parameters

            No special parameters.

          Response

          • Response header field

            No special header parameter.

          • Response element

            None

          Example

          • Request example

             HEAD / HTTP/1.1
             Host: BucketName.bj.bcebos.com
             Date: Wed, 06 Apr 2016 06:34:40 GMT
             Authorization: AuthorizationString
          • Response example

             HTTP/1.1 200 OK
             x-bce-request-id: 4db2b34d-654d-4d8a-b49b-3049ca786409
             Date: Wed, 06 Apr 2016 06:34:40 GMT
             Connection: close
             Server: BceBos
          Previous
          GetBucketStorageClass
          Next
          ListBuckets