百度智能云

All Product Document

          Object Storage

          Disable Access Log Configuration of Bucket

          Interface Description

          This interface is used to disable the logging feature of the bucket.

          Considerations

          • If the requested source bucket does not exist, it returns “Error 404: NoSuchBucket”.
          • The logging feature of the bucket cannot be disabled unless the requester is the source bucket owner with the FULL_CONTROL permission. Otherwise, BOS returns “Error 403: AccessDenied”.
          • If the requested source bucket does not enable the logging feature, it still returns the HTTP status code 204.

          Request URI

          DELETE /v1/{bucketName}/?logging

          Parameter Name Parameter Type Required? Description Example Value Parameter Position
          bucketName String Yes Bucket name "bucketName_example" Path

          Request Body Parameters

          Instructions for Data Structure of Request Body Field

          Response Body Parameters

          Instructions for Data Structure of Response Body Field

          Request Example

          DELETE /v1/bucketName_example/?logging
          Common Request Header
          
          
          { }

          Response Example

          HTTP/1.1 200 OK
          <Common response header>
          
          { }

          Error Code

          Refer to the universal error code.

          Previous
          Lifecycle
          Next
          Get Access Log Configuration of Bucket