Disable Access Log Configuration for a Bucket
Updated at:2025-11-03
API description
This API is designed to disable a bucket's access logging functionality.
Notes
- If the source bucket specified in the request does not exist, a 404 error will be returned with the code "NoSuchBucket.\
- The requester must be the owner of the source bucket and have FULL_CONTROL permissions to disable the bucket's access logging function. Otherwise, BOS will return a 403 error with the error code AccessDenied.
- If the logging function is already disabled for the requested source bucket, an HTTP status code 204 will still be returned.
Request URI
DELETE /v1/{bucketName}/?logging
| Parameter name | Parameter type | Required or not | Description | Example value | Parameter location |
|---|---|---|---|---|---|
| bucketName | String | Yes | Bucket name | "bucketName_example" | Path |
Parameters of request body
Description of the data structure of request body fields
Response body parameters
Description of the data structure of response body fields
Request example
JSON
1DELETE /v1/bucketName_example/?logging
2 <Common request headers>
3{ }
Response example
JSON
1HTTP/1.1 200 OK
2 <Common response headers>
3{ }
Error code
Please refer to the general error codes
