Skip to main content

bucket_contents

Creates, updates, deletes, gets or lists a bucket_contents resource.

Overview

Namebucket_contents
TypeResource
Idlinode.object_storage.bucket_contents

Fields

The following fields are returned by SELECT queries:

One page of the requested bucket's contents.

NameDatatypeDescription
dataarray
is_truncatedbooleanDesignates if there is another page of bucket objects.
next_markerstringReturns the value you should pass to the marker query parameter to get the next page of objects. If there is no next page, null will be returned. (example: bd021c21-e734-4823-97a4-58b41c2cd4c8.892602.184)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_object_storage_bucket_contentselectmarker, delimiter, prefix, page_sizeReturns the contents of a bucket. The contents are paginated using a marker, that's the name of the last object on the previous page. Objects can also be filtered by prefix and delimiter. See Filtering and sorting for more information.

> 📘
>
> You can use an outside API, such as the Ceph Object Gateway S3 API for more options. OAuth scopes.

<br /> object_storage:read_only<br />

Learn more...

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
delimiterstringThe delimiter for object names; if given, object names will be returned up to the first occurrence of this character. This is most commonly used with the / character to allow bucket transversal in a manner similar to a filesystem, however any delimiter may be used. Use in conjunction with prefix to see object names past the first occurrence of the delimiter. (example: {{delimiter}})
markerstringThe "marker" for this request, which can be used to paginate through large buckets. Its value should be the value of the next_marker property returned with the last page. Listing bucket contents does not support arbitrary page access. See the next_marker property in the responses section for more details. (example: {{marker}})
page_sizeintegerThe number of items to return per page.
prefixstringFilters objects returned to only those whose name start with the given prefix. Commonly used in conjunction with delimiter to allow transversal of bucket contents in a manner similar to a filesystem. (example: {{prefix}})

SELECT examples

Returns the contents of a bucket. The contents are paginated using a marker, that's the name of the last object on the previous page. Objects can also be filtered by prefix and delimiter. See Filtering and sorting for more information.

> 📘
>
> You can use an outside API, such as the Ceph Object Gateway S3 API for more options. OAuth scopes.

<br /> object_storage:read_only<br />

Learn more...

SELECT
data,
is_truncated,
next_marker
FROM linode.object_storage.bucket_contents
WHERE marker = '{{ marker }}'
AND delimiter = '{{ delimiter }}'
AND prefix = '{{ prefix }}'
AND page_size = '{{ page_size }}';