buckets_async
Creates, updates, deletes, gets or lists a buckets_async
resource.
Overview
Name | buckets_async |
Type | Resource |
Id | google.logging.buckets_async |
Fields
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
billing_accounts_locations_buckets_create_async | INSERT | billingAccountsId, locationsId | Creates 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_async | INSERT | foldersId, locationsId | Creates 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_async | INSERT | locationsId, organizationsId | Creates 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_async | INSERT | locationsId, projectsId | Creates 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_async | UPDATE | billingAccountsId, bucketsId, locationsId | Updates 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_async | UPDATE | bucketsId, foldersId, locationsId | Updates 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_async | UPDATE | bucketsId, locationsId, organizationsId | Updates 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_async | UPDATE | bucketsId, locationsId, projectsId | Updates 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: description
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: retentionDays
value: integer
- name: locked
value: boolean
- name: lifecycleState
value: string
- name: analyticsEnabled
value: boolean
- name: restrictedFields
value:
- string
- name: indexConfigs
value:
- - name: fieldPath
value: string
- name: type
value: string
- name: createTime
value: string
- name: cmekSettings
value:
- name: name
value: string
- name: kmsKeyName
value: string
- name: kmsKeyVersionName
value: string
- name: serviceAccountId
value: string
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 }}';