百度智能云

All Product Document

          Object Storage

          DeleteBucketStaticWebsite

          Interface Description

          This interface is used to delete the static website hosting information set by the bucket and disable the static website hosting feature of this bucket.

          The user must have the FULL_CONTROL permission for the bucket.

          Request

          • Request header field

            No special parameters.

          • Request syntax

             DELETE /?website HTTP/1.1
             Host: <BucketName>.bj.bcebos.com
             Date: <Date>
             Authorization: <AuthorizationString>

          Response

          • Response element

            No special element

          • Response header field

            No special header field.

          Example

          • Response example

            HTTP/1.1 204 No Content
            Date: Wed, 14 Sep 2016 05:37:16 GMT
            x-bce-request-id: 1a5fd81e-626b-45b3-a885-15fff9cd106c
            Connection: keep-alive
            Server: BceBos
          • Return code

            Results http Status Error Code Description
            Success 204 - -
            The static website hosting feature is disabled. 501 StaticWebSiteIsDisable That is, BOS does not allow the bucket of this region to enable the static website hosting feature.
            For other errors, follow the previous error code of BOS - See the Error Code -
          Previous
          Quota Management
          Next
          GetBucketStaticWebsite