Help Center> Object Storage Service> SDK Reference> Go> Data Types> Response Result of Obtaining Bucket Metadata

Response Result of Obtaining Bucket Metadata

Type Definition

type GetBucketMetadataOutput struct

Parameter Description

Field

Type

Description

StatusCode

int

HTTP status code

RequestId

string

Request ID returned by the OBS server

ResponseHeaders

map[string][]string

HTTP response headers

Location

string

Bucket location

Version

string

OBS server version

StorageClass

StorageClassType

Storage class of the bucket. When the storage class is OBS Standard, the value is nil.

AllowOrigin

string

If Origin in the request meets the CORS rules of the bucket, AllowedOrigin in the CORS rules is returned.

AllowHeader

string

If RequestHeader in the request meets the CORS rules of the bucket, AllowedHeader in the CORS rules is returned.

AllowMethod

string

AllowedMethod in the CORS rules of the bucket

ExposeHeader

string

ExposeHeader in the CORS rules of the bucket

MaxAgeSeconds

int

MaxAgeSeconds in the CORS rules of the bucket

Epid

string

Enterprise project ID that can be specified during bucket creation. Users who have enabled the enterprise project function can obtain the enterprise project ID from the enterprise project service. The value is in UUID format. The default value is 0 or does not carry this header. Users who have not enabled the enterprise project function do not need to carry this header.

FSStatus

FSStatusType

Bucket type

AZRedundancy

string

Data redundancy policy of a bucket, indicating whether data is stored in a single AZ or multiple AZs.

Value 3az indicates that data is stored in multiple AZs in the same region.

If this header field is not included, data is stored in a single AZ.