百度智能云

All Product Document

          Object Storage

          PutBucketRequestPayment

          Interface Description

          This interface is used to create the requester payment feature.

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

          Request

          • Request syntax

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

            No special parameters.

          • Request parameters

          Name Type Description Required? Remarks
          requestPayment String It sets the requester payment rules. Yes When the value is Requester, it indicates that the requester makes a payment. When the value is BucketOwner, it indicates that the requester billing feature is disabled.

          Response

          • Response header field

            No special element

          • Response element

            No special element

          Example

          • Request example

          PUT /?requestPayment HTTP/1.1
          Host: <BucketName>.bj.bcebos.com
          Date: <Date>
          Authorization: <Authorization_String>
          
          {"requestPayment": "Requester"}
          • 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
          Previous
          GetBucketRequestPayment
          Next
          Quota Management