Help Center> OBS GO SDK> API Reference> Data Types> Request Parameter of PUT Bucket website
Updated on 2022-02-10 GMT+08:00

Request Parameter of PUT Bucket website

Type Definition

type SetBucketWebsiteConfigurationInput struct

Parameter Description

Field

Type

Optional or Mandatory

Description

Bucket

string

Mandatory

Bucket name

RedirectAllRequestsTo

RedirectAllRequestTo

Optional

Redirection rule of all requests

IndexDocument

IndexDocument

Optional

Default page configuration, which includes the Suffix field

ErrorDocument

ErrorDocument

Optional

Error page configuration, which includes the Key field

RoutingRules

[]RoutingRule

Optional

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 nil.
  • You must set either these three fields or RedirectAllRequestsTo.