Skip to main content

buckets_async

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

Overview

Namebuckets_async
TypeResource
Idgoogle.logging.buckets_async

Fields

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

NameAccessible byRequired ParamsDescription
billing_accounts_locations_buckets_create_asyncINSERTbillingAccountsId, locationsIdCreates a log bucket asynchronously that can be used to store log entries.After a bucket has been created, the bucket's location cannot be changed.
folders_locations_buckets_create_asyncINSERTfoldersId, locationsIdCreates a log bucket asynchronously that can be used to store log entries.After a bucket has been created, the bucket's location cannot be changed.
organizations_locations_buckets_create_asyncINSERTlocationsId, organizationsIdCreates a log bucket asynchronously that can be used to store log entries.After a bucket has been created, the bucket's location cannot be changed.
projects_locations_buckets_create_asyncINSERTlocationsId, projectsIdCreates a log bucket asynchronously that can be used to store log entries.After a bucket has been created, the bucket's location cannot be changed.
billing_accounts_locations_buckets_update_asyncUPDATEbillingAccountsId, bucketsId, locationsIdUpdates a log bucket asynchronously.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location cannot be changed.
folders_locations_buckets_update_asyncUPDATEbucketsId, foldersId, locationsIdUpdates a log bucket asynchronously.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location cannot be changed.
organizations_locations_buckets_update_asyncUPDATEbucketsId, locationsId, organizationsIdUpdates a log bucket asynchronously.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location cannot be changed.
projects_locations_buckets_update_asyncUPDATEbucketsId, locationsId, projectsIdUpdates a log bucket asynchronously.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location cannot be changed.

INSERT example

Use the following StackQL query and manifest file to create a new buckets_async resource.

/*+ create */
INSERT INTO google.logging.buckets_async (
foldersId,
locationsId,
description,
retentionDays,
locked,
analyticsEnabled,
restrictedFields,
indexConfigs,
cmekSettings
)
SELECT
'{{ foldersId }}',
'{{ locationsId }}',
'{{ description }}',
'{{ retentionDays }}',
{{ locked }},
{{ analyticsEnabled }},
'{{ restrictedFields }}',
'{{ indexConfigs }}',
'{{ cmekSettings }}'
;

UPDATE example

Updates a buckets_async resource.

/*+ update */
UPDATE google.logging.buckets_async
SET
description = '{{ description }}',
retentionDays = '{{ retentionDays }}',
locked = true|false,
analyticsEnabled = true|false,
restrictedFields = '{{ restrictedFields }}',
indexConfigs = '{{ indexConfigs }}',
cmekSettings = '{{ cmekSettings }}'
WHERE
bucketsId = '{{ bucketsId }}'
AND foldersId = '{{ foldersId }}'
AND locationsId = '{{ locationsId }}';