Torch Object Storage
Parameter | Type | Required | Example value | Description |
Parameter | Type | Required | Example value | Description |
region | String | Yes | cn-beijing | Region where the TOS server is located. |
endpoint | String | Optional; when left empty, the value is determined by the region parameter. | https://tos-cn-beijing.volces.com/ | TOS server domain name: If no protocol is specified, HTTPS is used by default. The complete format is: https://{host}:{port}. |
ak | String | Mandatory for standard buckets; optional if the bucket allows anonymous access. | AKTPYmI1ZGQwMDA0NjlhNGFkMzhjNzM0N2Q0OTQ3ZTV**** | The Access Key ID in the access key. |
sk | String | Mandatory for standard buckets; optional if the bucket allows anonymous access. | T1dJM01UUXpOak0wTVdWak5EUmtOR0poWldJNU1HWmxaV1V5TkdReVl6**** | The Secret Access Key in the access key. |
securityToken | String | No | 3ZDA5MjY4NWYwMDQyYThlIiwiU2Vzc2lvbk5hbWUiOiJ0b3Nfcm9sZV9z************ | Temporarily authorized Security Token Service (STS). |
connectionTimeout | float | No | 30000 | Connection establishment timeout, unit: milliseconds; default value: 10,000 milliseconds. |
socketTimeout | float | No | 60000 | Socket read/write timeout period, unit: milliseconds; default is 30,000 milliseconds. |
enableVerifySSL | bool | No | true | Whether to enable SSL certificate verification; the default value is true. |
autoRecognizeContentType | bool | No | true | Whether MIME type detection is performed automatically; the default value is true. |
isCustomDomain | bool | No | true | Indicates whether the bucket name is prefixed to the Endpoint to access TOS via a virtual host domain name. The value descriptions are as follows:
The default value is false. tip When accessing TOS via a custom domain, you must set isCustomDomain to true. |