Skip to main content

buckets_storage_layout

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

Overview

Namebuckets_storage_layout
TypeResource
Idgoogle.storage.buckets_storage_layout

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
bucketstringThe name of the bucket.
customPlacementConfigobjectThe bucket's custom placement configuration for Custom Dual Regions.
hierarchicalNamespaceobjectThe bucket's hierarchical namespace configuration.
kindstringThe kind of item this is. For storage layout, this is always storage#storageLayout. (default: storage#storageLayout)
locationstringThe location of the bucket.
locationTypestringThe type of the bucket location.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_storage_layoutselectbucketprefixReturns the storage layout configuration for the specified bucket. Note that this operation requires storage.objects.list permission.

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
bucketstring
prefixstring

SELECT examples

Returns the storage layout configuration for the specified bucket. Note that this operation requires storage.objects.list permission.

SELECT
bucket,
customPlacementConfig,
hierarchicalNamespace,
kind,
location,
locationType
FROM google.storage.buckets_storage_layout
WHERE bucket = '{{ bucket }}' -- required
AND prefix = '{{ prefix }}';