Torch Object Storage
Name | Location | Type | Required | Sample Value | Description |
Name | Location | Type | Required | Sample Value | Description |
x-tos-acl | Header | String | No | private | Access permissions for the target object. Effective permission settings include:
|
x-tos-copy-source | Header | String | Yes | /sourcebucketname/SourceObjectName?versionId=xxx | Specify the source bucket and source object name for the copy operation. The source object name must be URL encoded in accordance with the application/x-www-form-urlencoded standard. When the source object has multiple versions, specify the version number of the source object using versionId. |
x-tos-copy-source-if-match | Header | String | No | 8a36be0d764367db4eea2deb16b71543 | The copy object operation is performed only when the ETag of the source object is equal to the value specified by this parameter. |
x-tos-copy-source-if-modified-since | Header | String | No | Mon, 04 Jul 2022 02:57:31 GMT | If the object has been modified since the specified time, copy the object. The time format is RFC1123 GMT. |
x-tos-copy-source-if-none-match | Header | String | No | 8a36be0d764367db4eea2deb16b71543 | The object copy operation is performed only when the ETag of the source object does not equal the value specified by this parameter. |
x-tos-copy-source-if-unmodified-since | Header | String | No | Mon, 04 Jul 2022 02:57:31 GMT | If the object has not been modified since the specified time, copy the object. The time format is RFC1123 GMT. |
x-tos-server-side-encryption | Header | String | No | AES256 | Specify the encryption method for the target object. If not configured, the object is not encrypted by default. The possible values are explained as follows:
tip Using SSE-KMS for server-side encryption incurs API call fees, and creating KMS keys incurs key custody fees, both of which are charged by KMS. For more information, please refer to KMS Billing Information. |
x-tos-server-side-data-encryption | Header | String | No | AES256 | The possible values for the encryption algorithm used with the SSE-KMS encryption method are explained as follows:
The default is the AES256 algorithm. |
x-tos-server-side-encryption-kms-key-id | Header | String | No, it is required when using SSE-KMS encryption. | trn:kms:cn-beijing:20000111:keyrings/ring-test/keys/key-test | Specify the master key used by SSE-KMS to encrypt the target object, in the following format: trn:kms:<region>:<accountID>:keyrings/<keyring>/keys/<key>: The TRN of the KMS master key. region is the Region ID to which the key belongs. accountID is the ID of the account to which the key belongs. keyring is the keyring alias. key is the master key alias. tip The default master key is currently not supported. If SSE-KMS encryption is specified without providing the required header, the server will return a 400 InvalidRequest error. |
x-tos-server-side-encryption-customer-algorithm | Header | String | No. Required when using SSE-C encryption. | AES256 | Specify the algorithm to be used for SSE-C encryption of the target object. The value options are as follows:
|
x-tos-server-side-encryption-customer-key | Header | String | No. Required when using SSE-C encryption. | YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWE= | When used in conjunction with x-tos-server-side-encryption-customer-algorithm, you can specify the key for SSE-C encryption of the target object. The key is a 256-bit encryption key encoded in base64. |
x-tos-server-side-encryption-customer-key-MD5 | Header | String | No; mandatory when using SSE-C encryption. | 0gYVWExOAz67jX5A6qY4+A== | Used in conjunction with x-tos-server-side-encryption-customer-key, this header field indicates the MD5 value of the key used to encrypt the target object. This header field is obtained by base64 encoding the 128-bit MD5 value of the key. This value is used for message integrity verification to ensure that the encryption key has not been corrupted during transmission. |
x-tos-copy-source-server-side-encryption-customer-algorithm | Header | String | No, when the source object is encrypted with SSE-C, it is required. | AES256 | This header field is used when the source object is encrypted with SSE-C. It specifies the algorithm used to decrypt the source object. The possible values are described as follows:
|
x-tos-copy-source-server-side-encryption-customer-key | Header | String | No. When the source object is encrypted with SSE-C, it is required. | 1234567890abcdefghijklmnopqrstuv | This header field is used during SSE-C encryption to decrypt the source object. The encryption key provided in this header field must be the key used when creating the source object. |
x-tos-copy-source-server-side-encryption-customer-key-MD5 | Header | String | No. When the source object uses SSE-C encryption, it is required. | 0gYVWExOAz67jX5A6qY4+A== | This header field is used during SSE-C encryption of the source object, in conjunction with x-tos-copy-source-server-side-encryption-customer-key. It specifies the MD5 value of the key used to decrypt the source object. This header field is generated by base64-encoding the 128-bit MD5 value of the key. The resulting value is used for message integrity verification to ensure that the encryption key has not been corrupted during transmission. |
x-tos-grant-full-control | Header | String | No | id=123,id=456 | Use this header field to grant the grantee permissions for the object, including READ, READ ACP, and 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's 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-metadata-directive | Header | String | No | COPY | Specifies whether to copy metadata from the source object or to replace the metadata with that provided in the request. The explanation of values is as follows:
|
x-tos-meta-* | Header | String | No | x-tos-meta-key: value | When x-tos-metadata-directive is set to REPLACE, you can include headers beginning with x-tos-meta- in the HTTP request to add custom metadata. |
x-tos-website-redirect-location | Header | String | No | /anotherObjectName | When the bucket is configured with a Website setting, requests to retrieve 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 class of the target object will be consistent with the default storage class of the bucket. The value options are as follows:
tip
|
x-tos-tagging | Header | String | No | Key1=Value1&Key2=Value2 | Set the object's tag information in the format {Key&Separation. tip
|
x-tos-tagging-directive | Header | String | No | Copy | Handling method for object tags when configuring object replication. The possible values are explained as follows:
|
x-tos-traffic-limit | Header | String | No | 819200 | TOS provides single-link speed limiting functionality, enabling flow control during file upload, download, and other operations to ensure network bandwidth for other applications. The explanation of values is as follows:
|
x-tos-forbid-overwrite | Header | String | No | false | Is overwriting an Object with the same name permitted? Value description is as follows:
tip When the target Bucket is in a versioning-enabled or versioning-suspended state, the x-tos-forbid-overwrite parameter setting is ineffective, and overwriting Objects with the same name is permitted. |
x-tos-traffic-limit | Query | String | No | 819200 | TOS provides single-link bandwidth throttling, enabling flow control during file upload, download, and similar operations to ensure network bandwidth for other applications. The explanation of values is 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 can be set as a positive integer, indicating that the object will expire at the specified time. The expiration period is calculated from the object's Last-Modified time, and the deletion task will be executed at midnight after the expiration time is reached. For example, set the value of the x-tos-object-expires parameter to3If 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 set to COMPLIANCE, indicating compliance mode. tip To configure 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 | Until the lock expiration date, 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. |
if-match | Header | String | No | d41d8cd98f00b204e9800998ecf8427e | The ETag condition that controls upload behavior ensures that an object is uploaded only when the specified ETag matches the ETag of an existing object in the bucket. If the specified ETag does not exist or does not match, the object upload will fail and a 412 status code will be returned. |
if-none-match | Header | String | No | d41d8cd98f00b204e9800998ecf8427e | The ETag condition that governs upload behavior ensures that an object is uploaded only when the specified ETag does not match the ETag of an existing object in the bucket. If an existing object's ETag in the storage bucket matches the specified ETag, the upload will fail and a 412 status code will be returned. tip if-none-match supports being set to*This means that if an object with the same name exists in the target bucket, regardless of its ETag, the upload will fail and a 412 status code will be returned. |
Name | Type | Sample value | Description |
Name | Type | Sample value | Description |
x-tos-copy-source-version-id | String | 57AF1A32CECB56721267 | The version number of the source object, returned when copying a specified object version. |
x-tos-version-id | String | 43D62700044343044833 | Version number of the target object. |
x-tos-server-side-encryption | String | kms | This header field indicates the server-side encryption method of the object. It is returned when the object is encrypted using SSE-TOS or SSE-KMS. The possible values are as follows:
|
x-tos-server-side-encryption-kms-key-id | String | trn:kms:cn-beijing:20000111:keyrings/ring-test/keys/key-test | This header field indicates the KMS master key ID used for SSE-KMS encryption. This header field is returned when the object uses SSE-KMS encryption. |
x-tos-server-side-encryption-customer-algorithm | String | AES256 | This header field specifies the encryption algorithm used for SSE-C encryption and is returned when the target object is encrypted using SSE-C. |
x-tos-server-side-encryption-customer-key-md5 | String | 0gYVWExOAz67jX5A6qY4+A== | This header field indicates the MD5 value of the key used for SSE-C encryption and is returned when the target object is encrypted using SSE-C. |
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 affected by rate limiting; copy requests or download requests return an estimated duration affected by rate limiting, based on the degree of rate limiting and the file size. |
Name | Type | Sample value | Description |
Name | Type | Sample value | Description |
ETag | String | 8a36be0d764367db4eea2deb16b71543 | The ETag value of the target object. |
LastModified | String | 2021-08-20T06:38:52.000Z | Last modification time of the target object. |