• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. API Reference (Python SDK)
  4. Data Types
  5. Website Hosting Settings of a Bucket

Website Hosting Settings of a Bucket

Namespace

Class

Module

WebsiteConfiguration

com.obs.models.website_configuration

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

NOTE:
  • 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.