log_scopes
Creates, updates, deletes, gets or lists a log_scopes
resource.
Overview
Name | log_scopes |
Type | Resource |
Id | google.logging.log_scopes |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource name of the log scope.For example:projects/my-project/locations/global/logScopes/my-log-scope |
description | string | Optional. Describes this log scope.The maximum length of the description is 8000 characters. |
createTime | string | Output only. The creation timestamp of the log scope. |
resourceNames | array | Required. Names of one or more parent resources: projects/[PROJECT_ID]May alternatively be one or more views: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]A log scope can include a maximum of 50 projects and a maximum of 100 resources in total. |
updateTime | string | Output only. The last update timestamp of the log scope. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
folders_locations_log_scopes_get | SELECT | foldersId, locationsId, logScopesId | Gets a log scope. |
folders_locations_log_scopes_list | SELECT | foldersId, locationsId | Lists log scopes. |
organizations_locations_log_scopes_get | SELECT | locationsId, logScopesId, organizationsId | Gets a log scope. |
organizations_locations_log_scopes_list | SELECT | locationsId, organizationsId | Lists log scopes. |
projects_locations_log_scopes_get | SELECT | locationsId, logScopesId, projectsId | Gets a log scope. |
projects_locations_log_scopes_list | SELECT | locationsId, projectsId | Lists log scopes. |
folders_locations_log_scopes_create | INSERT | foldersId, locationsId | Creates a log scope. |
organizations_locations_log_scopes_create | INSERT | locationsId, organizationsId | Creates a log scope. |
projects_locations_log_scopes_create | INSERT | locationsId, projectsId | Creates a log scope. |
folders_locations_log_scopes_delete | DELETE | foldersId, locationsId, logScopesId | Deletes a log scope. |
organizations_locations_log_scopes_delete | DELETE | locationsId, logScopesId, organizationsId | Deletes a log scope. |
projects_locations_log_scopes_delete | DELETE | locationsId, logScopesId, projectsId | Deletes a log scope. |
folders_locations_log_scopes_patch | UPDATE | foldersId, locationsId, logScopesId | Updates a log scope. |
organizations_locations_log_scopes_patch | UPDATE | locationsId, logScopesId, organizationsId | Updates a log scope. |
projects_locations_log_scopes_patch | UPDATE | locationsId, logScopesId, projectsId | Updates a log scope. |
SELECT
examples
Lists log scopes.
SELECT
name,
description,
createTime,
resourceNames,
updateTime
FROM google.logging.log_scopes
WHERE foldersId = '{{ foldersId }}'
AND locationsId = '{{ locationsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new log_scopes
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.logging.log_scopes (
foldersId,
locationsId,
resourceNames,
description
)
SELECT
'{{ foldersId }}',
'{{ locationsId }}',
'{{ resourceNames }}',
'{{ description }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: resourceNames
value:
- string
- name: description
value: string
- name: createTime
value: string
- name: updateTime
value: string
UPDATE
example
Updates a log_scopes
resource.
/*+ update */
UPDATE google.logging.log_scopes
SET
resourceNames = '{{ resourceNames }}',
description = '{{ description }}'
WHERE
foldersId = '{{ foldersId }}'
AND locationsId = '{{ locationsId }}'
AND logScopesId = '{{ logScopesId }}';
DELETE
example
Deletes the specified log_scopes
resource.
/*+ delete */
DELETE FROM google.logging.log_scopes
WHERE foldersId = '{{ foldersId }}'
AND locationsId = '{{ locationsId }}'
AND logScopesId = '{{ logScopesId }}';