Torch Object Storage
Name | Location | Type | Required | Sample value | Description |
Name | Location | Type | Required | Sample value | Description |
append | Query | String | Yes | | A special identifier representing an AppendObject request. |
offset | Query | Integer | Yes | 0 | Specify where to append. After a successful append, the x-tos-next-append-offset header field in the response message will include the offset for the next append operation. |
Content-Length | Header | Integer | Yes | 100 | The size of the message body. |
Content-Type | Header | String | No | text/plain | Object Type. Valid when the offset parameter is 0. |
x-tos-acl | Header | String | No | private | Effective permission settings for object access include:
|
x-tos-grant-full-control | Header | String | No | id=123,id=456 | When creating an object, use this header field to grant users permissions for object read (READ), read ACP (READ ACP), and write ACP (WRITE ACP). Format: id=account1,id=account2. |
x-tos-grant-read | Header | String | No | id=123,id=456 | Permission that allows authorized users to read objects and object metadata. Format: id=account1,id=account2. |
x-tos-grant-read-acp | Header | String | No | id=123,id=456 | Allow authorized users to read the object ACL. Format: id=account1,id=account2. |
x-tos-grant-write-acp | Header | String | No | id=123,id=456 | Authorized users are permitted to modify the object ACL. Format: id=account1,id=account2. |
x-tos-meta-* | Header | String | No | x-tos-meta-key: value | When creating an object, you can include headers that begin with x-tos-meta- in the HTTP request to add custom metadata, enabling customized management of the object. When a user retrieves this object or queries its metadata, any custom metadata added will appear in the header of the returned message. |
x-tos-website-redirect-location | Header | String | No | /anotherObjectName | When a bucket is configured with Website settings, requests to access this object can be redirected to another object within the bucket or to an external URL. TOS extracts this value from the header and stores it in the object's metadata. |
x-tos-storage-class | Header | String | No | STANDARD | Set the storage type of the target object. If not specified, the storage type of the target object will be consistent with the default storage type of the bucket in which it resides. The possible values are explained as follows:
tip
|
x-tos-traffic-limit | Header | String | No | 819200 | TOS provides single-link speed limiting functionality, enabling traffic control during operations such as file upload and download to ensure network bandwidth for other applications. The explanation of values is as follows:
|
x-tos-traffic-limit | Query | String | No | 819200 | TOS provides single-link speed limiting, enabling traffic control during file upload and download operations to ensure network bandwidth for other applications. The values are explained as follows:
|
x-tos-object-expires | Header | String | No | 3 | Set the expiration time for the object. After expiration, TOS will automatically delete the object. The unit is days, and only positive integers are supported. The expiration time is calculated from the object's Last-Modified time. After the expiration time is reached, the deletion task will be executed at midnight. For example, set the value of the x-tos-object-expires parameter to3, if the object's Last-Modified time is 2024-09-26 12:00, the object will expire at 2024-09-30 00:00. tip
|
x-tos-object-lock-mode | Header | String | No | COMPLIANCE | The mode of the retention policy can only be COMPLIANCE, which indicates compliance mode. tip To set a retention policy for an object, you must first enable the retention policy feature. For detailed information, see PutBucketObjectLockConfiguration. |
x-tos-object-lock-retain-until-date | Header | String | No | 2025-01-01T00:00:00Z | The lock expiration date of the object is the date during which the object cannot be deleted or overwritten. Follow the ISO 8601 time format. tip x-tos-object-lock-retain-until-date parameter must be used together with the x-tos-object-lock-mode parameter. |
Name | Type | Sample Value | Description |
Name | Type | Sample Value | Description |
x-tos-next-append-offset | Integer | 100 | Offset for the next append write to the object. |
x-tos-hash-crc64ecma | Integer | 6186290338114851376 | Represents the 64-bit CRC value of the object. This 64-bit CRC is calculated according to the ECMA-182 standard. tip If objects created by append write uploads were created before the TOS server supports 64-bit CRC validation, this message header will not appear in the response message. |
x-tos-qos-delay-time | Integer | 10 | This header field indicates the duration for which the request is subject to flow control, measured in milliseconds (ms). Upload requests return the exact duration of throttling; copy requests or download requests return an estimated throttling duration based on the degree of throttling and file size. |