DeleteTableLogging
Clears the table-level logging disable configuration for a table, so that the table follows the logging configuration of the table bucket again.
Usage notes
-
This operation does not disable logging. After the table-level disable configuration is cleared, whether the table records access logs depends on the logging configuration of the table bucket.
-
After the call succeeds, the GetTableLogging operation returns notConfigured.
-
If no table-level logging disable configuration exists, this operation still returns 204.
Permissions
|
API |
Action |
Description |
|
DeleteTableLogging |
oss:DeleteTableLogging |
Clears the logging disable configuration of the table (the table resource policy is also checked). |
Request syntax
DELETE /tables/{tableBucketARN}/{namespace}/{name}/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. |
|
namespace |
string |
Yes |
my_namespace |
The name of the top-level namespace that contains the table. This parameter is part of the URI. |
|
name |
string |
Yes |
my_table |
The table name. This parameter is part of the URI. |
Examples
The following example clears the logging disable configuration of my_table in my_namespace. The table then follows the logging configuration of the table bucket again.
Request example
DELETE /tables/acs%3Aosstables%3Acn-hangzhou%3A1234567890%3Abucket%2Fmy-table-bucket/my_namespace/my_table/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 or table does not exist. |