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

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.
locationstringThe location of the bucket.
locationTypestringThe type of the bucket location.

Methods

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

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 }}';