百度智能云

All Product Document

          Object Storage

          GetUserQuota

          Interface Description

          This interface is used to view the user quota setting. Note that this interface can only be called by the primary user.

          Request

          • Request syntax

          GET /?userQuota HTTP/1.1
          Host: bj.bcebos.com
          Date: <Date>
          Authorization: <Authorization_String>
          • Request parameters

            No special parameters.

          • Request header field

            No special parameters.

          Response

          • Response header field

            No special parameters.

          • Response parameter

          Parameters Description
          maxBucketCount Maximum number of creatable buckets in the quota setting. If it is -1, it indicates that there is no limit.
          maxCapacityMegaBytes Maximum storage capacity limit in the quota setting. If it is -1 or 0, it indicates that there is no limit.

          Example

          • Request example

          GET /?userQuota HTTP/1.1
          Host: bj.bcebos.com
          Date: <Date>
          Authorization: <Authorization_String>
          • 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
          Server: BceBos
          {
              "maxBucketCount": 50,  
              "maxCapacityMegaBytes"  : 12334424 
          }
          Previous
          DeleteUserQuota
          Next
          Bucket Related Interfaces