You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/r/cos_bucket.html.markdown
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -496,6 +496,18 @@ The `replica_rules` object supports the following:
496
496
*`id` - (Optional, String) Name of a specific rule.
497
497
*`prefix` - (Optional, String) Prefix matching policy. Policies cannot overlap; otherwise, an error will be returned. To match the root directory, leave this parameter empty.
498
498
499
+
The `routing_rules` object of `website` supports the following:
500
+
501
+
*`rules` - (Required, List) Routing rule list.
502
+
503
+
The `rules` object of `routing_rules` supports the following:
504
+
505
+
*`condition_error_code` - (Optional, String) Specifies the error code as the match condition for the routing rule. Valid values: only 4xx return codes, such as 403 or 404.
506
+
*`condition_prefix` - (Optional, String) Specifies the object key prefix as the match condition for the routing rule.
507
+
*`redirect_protocol` - (Optional, String) Specifies the target protocol for the routing rule. Only HTTPS is supported.
508
+
*`redirect_replace_key_prefix` - (Optional, String) Specifies the object key prefix to replace the original prefix in the request. You can set this parameter only if the condition is KeyPrefixEquals.
509
+
*`redirect_replace_key` - (Optional, String) Specifies the target object key to replace the original object key in the request.
510
+
499
511
The `transition` object of `lifecycle_rules` supports the following:
500
512
501
513
*`storage_class` - (Required, String) Specifies the storage class to which you want the object to transition. Available values include `STANDARD_IA`, `MAZ_STANDARD_IA`, `INTELLIGENT_TIERING`, `MAZ_INTELLIGENT_TIERING`, `ARCHIVE`, `DEEP_ARCHIVE`. For more information, please refer to: https://cloud.tencent.com/document/product/436/33417.
@@ -507,6 +519,7 @@ The `website` object supports the following:
507
519
*`error_document` - (Optional, String) An absolute path to the document to return in case of a 4XX error.
508
520
*`index_document` - (Optional, String) COS returns this index document when requests are made to the root domain or any of the subfolders.
509
521
*`redirect_all_requests_to` - (Optional, String) Redirects all request configurations. Valid values: http, https. Default is `http`.
522
+
*`routing_rules` - (Optional, List) Routing rule configuration. A RoutingRules container can contain up to 100 RoutingRule elements.
0 commit comments