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

Request Parameter of GET Objects

Type Definition

type ListObjectsInput struct

Parameter Description

Field

Type

Optional or Mandatory

Description

Bucket

string

Mandatory

Bucket name

Marker

string

Optional

Object name to start with when listing objects in a bucket. All objects are listed in the lexicographical order.

Prefix

string

Optional

Name prefix that the objects to be listed must contain

MaxKeys

int

Optional

Maximum number of objects returned in the response. The value ranges from 1 to 1000. If the value is not in this range, 1000 is returned by default.

Delimiter

string

Optional

Character used to group object names. If the object name contains the Delimiter parameter, the character string from the first character to the first delimiter in the object name is grouped under a single result element, CommonPrefix. (If a prefix is specified in the request, the prefix must be removed from the object name.)

Origin

string

Optional

Origin specified in the preflight request. Generally, it is a domain name.

RequestHeader

string

Optional

HTTP headers in a cross-origin request