Torch Object Storage
This interface retrieves the configuration information of log storage.
Currently, only Beijing and Shanghai support the log storage feature.
GET /?logging HTTP/1.1 Host: bucketname.tos-cn-beijing.volces.com Authorization: authorization string Date: Fri, 30 Jul 2021 06:45:39 GMT
This request uses public request headers. See Common parameters.
| Name | Location | Type | Required | Sample Value | Description |
|---|---|---|---|---|---|
| logging | Query | String | Yes | - | Represents a special identifier for the GetBucketLogging request. |
This request does not use message elements.
This request returns the common response message header. See Common Parameters.
| Name | Type | Sample Value | Description |
|---|---|---|---|
| LoggingEnabled | Container | - | Configuration rules for log storage function. |
| TargetBucket | String | test | The target storage bucket for storing log files. |
TargetPrefix | String | tos-accesslog | The log file storage path in the target bucket. |
| Role | String | ServiceRoleforTOSLogging | The role name used to grant object storage permission to read all files from the source bucket and write files to the target bucket. This role must have read and write permissions on TOS as well as service access permissions. You can also use the TOS default role ServiceRoleforTOSLogging. |
GET /?logging HTTP/1.1 Host: bucketname.tos-cn-beijing.volces.com Authorization: authorization string Date: Fri, 30 Jul 2021 06:45:39 GMT
HTTP/1.1 200 OK x-tos-id-2: 4fac130beeb50032-a444ed0 x-tos-request-id: 4fac130beeb50032-a444ed0 Date: Mon, 12 May 2025 07:18:51 GMT server: TosServer Content-Length: 0 { "LoggingEnabled": { "TargetBucket": "test", "TargetPrefix": "tos-accesslog", "Role": "ServiceRoleforTOSLogging" } }