百度智能云

All Product Document

          Object Storage

          GetBucketQuota

          Interface Description

          This interface is used to get the quota information of a single bucket.

          Notice: Only the bucket owner with the FULL_CONTROL permission can initiate this request.

          Request

          • Request syntax

          GET /?quota HTTP/1.1
          Host: <BucketName>.bj.bcebos.com
          Date: <Date>
          Authorization: <Authorization_String>
          • Request header field

            No special parameters.

          • Request parameters

          No special parameters.

          Response

          • Response header field

            No special element.

          • Response element

            No special element.

          Example

          • Request example

          GET /?quota HTTP/1.1
          Host: <BucketName>.bj.bcebos.com
          Date: <Date>
          Authorization: <Authorization_String>
          • Response example

            HTTP/1.1 200 OK
            x-bce-request-id: 0A49CE4060975EAC
            Date: Wed, 12 Oct 2016 17:50:00 GMT
            Content-Length: 0
            Connection: keep-alive
            Server: BceBos
            {
            "maxObjectCount": 50,  
            "maxCapacityMegaBytes"  : 12334424 

          }

          ```
          Previous
          DeleteBucketQuota
          Next
          Static Website