DeleteTableBucketLogging

Updated at:

Clears the logging configuration of a specified table bucket to disable bucket logging.

Usage notes

  • After the configuration is cleared, tables under this table bucket that do not separately disable logging no longer record access logs.

  • If logging is already disabled, this operation still returns 204.

Permissions

API

Action

Description

DeleteTableBucketLogging

oss:DeleteTableBucketLogging

Disables access logging for the table bucket.

Request syntax

DELETE /buckets/{tableBucketARN}/logging HTTP/1.1
Host: cn-hangzhou.oss-tables.aliyuncs.com
Date: GMT Date
Authorization: OSS4-HMAC-SHA256 Credential=LTAI********************/20250417/cn-hangzhou/osstables/aliyun_v4_request,Signature=a7c3554c729d71929e0b84489addee6b2e8d5cb48595adfc51868c299c0c****

Request parameters

Parameter

Type

Required

Example

Description

tableBucketARN

string

Yes

acs:osstables:cn-hangzhou:1234567890:bucket/my-table-bucket

The ARN of the table bucket. Format: acs:osstables:{region}:{uid}:bucket/{bucketName}. This parameter is part of the URI, and must be URL-encoded when placed in the path.

Examples

The following example clears the logging configuration of the specified table bucket.

Request example

DELETE /buckets/acs%3Aosstables%3Acn-hangzhou%3A1234567890%3Abucket%2Fmy-table-bucket/logging HTTP/1.1
Host: cn-hangzhou.oss-tables.aliyuncs.com
Date: Thu, 10 Apr 2025 08:00:00 GMT
Authorization: OSS4-HMAC-SHA256 Credential=LTAI********************/20250417/cn-hangzhou/osstables/aliyun_v4_request,Signature=a7c3554c729d71929e0b84489addee6b2e8d5cb48595adfc51868c299c0c****

Response example

HTTP/1.1 204 No Content
Server: AliyunOSS
x-oss-request-id: 5C06A3B67B8B5A3DA422****
x-oss-server-time: 3

Error codes

Error code

HTTP status code

Description

ForbiddenException

403

The required permissions are missing or the request is not allowed.

NotFoundException

404

The specified table bucket does not exist.