HeadBucket
Updated at:2025-11-03
API description
This API checks whether a bucket exists and whether the user has access permissions. If the request returns a 200 OK response, the bucket exists, and the user has access.
Request
-
Request syntax
Plain Text1HEAD / HTTP/1.1 2Host: <BucketName>.bj.bcebos.com 3Date: <Date> 4Authorization: <AuthorizationString> -
Request headers
No special header parameters
-
Request parameters
No special parameters
Response
Example
-
Request example
Plain Text1 HEAD / HTTP/1.1 2 Host: BucketName.bj.bcebos.com 3 Date: Wed, 06 Apr 2016 06:34:40 GMT 4 Authorization: AuthorizationString -
Response example
Plain Text1 HTTP/1.1 200 OK 2 x-bce-request-id: 4db2b34d-654d-4d8a-b49b-3049ca786409 3 Date: Wed, 06 Apr 2016 06:34:40 GMT 4 Connection: close 5 Server: BceBos
