Help Center> Object Storage Service> SDK Reference> Python> Data Types> Website Hosting Settings of a Bucket

Website Hosting Settings of a Bucket

Namespace

obs.WebsiteConfiguration

Parameter Description

Field

Type

Optional or Mandatory

Description

redirectAllRequestTo

RedirectAllRequestTo

Optional when used as a request parameter

Redirection rule of all requests

indexDocument

IndexDocument

Optional when used as a request parameter

Default page configuration, which includes the Suffix field

errorDocument

ErrorDocument

Optional when used as a request parameter

Error page configuration, which includes the Key field

routingRules

list of RoutingRule

Optional when used as a request parameter

Redirection rule list

  • errorDocument, indexDocument, and routingRules must be used together and they cannot be used with redirectAllRequestsTo.
  • When errorDocument, indexDocument, and routingRules are used together, routingRules can be None.
  • You must set either these three fields or redirectAllRequestsTo.