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

Request Parameter of PUT Bucket

Type Definition

type CreateBucketInput struct

Parameter Description

Field

Type

Optional or Mandatory

Description

Bucket

string

Mandatory

Bucket name

Location

string

Mandatory unless the region where the OBS service resides is not the default region.

Bucket location

This parameter is not required if the endpoint belongs to the default North China 1 region (cn-north-1). This parameter is a must if the endpoint belongs to any other regions. Click here to query currently valid regions. For details about OBS regions and endpoints, see Regions and Endpoints.

ACL

AclType

Optional

ACL that can be pre-defined during the bucket creation

StorageClass

StorageClassType

Optional

Bucket storage class that can be pre-defined during the bucket creation