Torch Object Storage
Name | Location | Type | Required | Sample value | Note |
Name | Location | Type | Required | Sample value | Note |
website | Query | String | Yes | - | Special identifier representing the GetBucketWebsite request. |
Name | Type | Sample value | Note |
Name | Type | Sample value | Note |
RedirectAllRequestsTo | Object | - | Redirect all requests; once set, no other redirect rules can be configured. |
HostName | String | example.com | Redirected site name. Parent node: RedirectAllRequestsTo |
Protocol | String | http | The protocol used for the redirect request, supporting http and https protocols. Defaults to using the http protocol. Parent node: RedirectAllRequestsTo |
Name | Type | Sample value | Note |
Name | Type | Sample value | Note |
IndexDocument | Object | - | Set default homepage. |
Suffix | String | index.html | When requesting a directory (ending with /), return objects with the specified Suffix under that directory. For example, if Suffix is set to index.html, accessing document/ returns document/index.html. Parent node: IndexDocument |
ForbiddenSubDir | Bool | false | Whether to support redirecting to the default homepage of a subdirectory; the description is as follows:
Parent node: IndexDocument |
Name | Type | Sample value | Note |
Name | Type | Sample value | Note |
ErrorDocument | Object | - | Set the error page. |
Key | String | error.html | Return this page when a 4xx error occurs. Parent node: ErrorDocument |
Name | Type | Example value | Note |
Name | Type | Example value | Note |
RoutingRules | Array | - | Set the redirect rule. |
Condition | Object | - | Set matching conditions for redirect rules. The redirect rule takes effect only when all set conditions match. Parent node: RoutingRules |
HttpErrorCodeReturnedEquals | Integer | 404 | Sets the HTTP error code that triggers the redirect. For example, if HttpErrorCodeReturnedEquals is set to 404, the rule takes effect when the specified object does not exist. If KeyPrefixEquals is set, the redirect rule applies only when both conditions match. Parent node: Condition |
KeyPrefixEquals | String | red/ | Set the object name prefix when the redirect rule takes effect. If HttpErrorCodeReturnedEquals is set, the redirect rule only applies when both conditions match. Parent node: Condition |
Redirect | Object | - | Set redirection rules. Parent node: RoutingRules |
HostName | String | example.com | Set the site name for redirection. Parent node: Redirect |
HttpRedirectCode | Integer | 301 | The status code returned during redirection can only be a 3XX error code, excluding 300. The default is 301. Parent node: Redirect |
Protocol | String | http | The protocol used for redirection requests, supporting http and https. http protocol is used by default. Parent node: Redirect |
ReplaceKeyPrefixWith | String | redirect/ | Object name prefix used for redirection. Cannot be set simultaneously with ReplaceKeyWith. Parent node: Redirect |
ReplaceKeyWith | String | redirect.html | Object name used during redirection. Cannot be set simultaneously with ReplaceKeyPrefixWith. Parent node: Redirect |