Skip to main content

buckets

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

Overview​

Namebuckets
TypeResource
Idgoogle.observability.buckets

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. Name of the bucket. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]
cmekSettingsobjectOptional. Settings for configuring CMEK on a bucket. (id: CmekSettings)
createTimestring (google-datetime)Output only. Create timestamp.
deleteTimestring (google-datetime)Output only. Delete timestamp.
descriptionstringOptional. Description of the bucket.
displayNamestringOptional. User friendly display name.
purgeTimestring (google-datetime)Output only. Timestamp when the bucket in soft-deleted state is purged.
updateTimestring (google-datetime)Output only. Update timestamp.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, bucketsIdGet bucket resource.
listselectprojectsId, locationsIdpageSize, pageToken, showDeletedList buckets of a project in a particular location.

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
bucketsIdstring
locationsIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring
showDeletedboolean

SELECT examples​

Get bucket resource.

SELECT
name,
cmekSettings,
createTime,
deleteTime,
description,
displayName,
purgeTime,
updateTime
FROM google.observability.buckets
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND bucketsId = '{{ bucketsId }}' -- required
;