log_scopes
Creates, updates, deletes, gets or lists a log_scopes
resource.
Overview
Name | log_scopes |
Type | Resource |
Id | google.logging.log_scopes |
Fields
The following fields are returned by SELECT
queries:
- projects_locations_log_scopes_get
- organizations_locations_log_scopes_get
- folders_locations_log_scopes_get
- projects_locations_log_scopes_list
- organizations_locations_log_scopes_list
- folders_locations_log_scopes_list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource name of the log scope.Log scopes are only available in the global location. For example:projects/my-project/locations/global/logScopes/my-log-scope |
createTime | string (google-datetime) | Output only. The creation timestamp of the log scope. |
description | string | Optional. Describes this log scope.The maximum length of the description is 8000 characters. |
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 5 projects and a maximum of 100 resources in total. |
updateTime | string (google-datetime) | Output only. The last update timestamp of the log scope. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource name of the log scope.Log scopes are only available in the global location. For example:projects/my-project/locations/global/logScopes/my-log-scope |
createTime | string (google-datetime) | Output only. The creation timestamp of the log scope. |
description | string | Optional. Describes this log scope.The maximum length of the description is 8000 characters. |
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 5 projects and a maximum of 100 resources in total. |
updateTime | string (google-datetime) | Output only. The last update timestamp of the log scope. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource name of the log scope.Log scopes are only available in the global location. For example:projects/my-project/locations/global/logScopes/my-log-scope |
createTime | string (google-datetime) | Output only. The creation timestamp of the log scope. |
description | string | Optional. Describes this log scope.The maximum length of the description is 8000 characters. |
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 5 projects and a maximum of 100 resources in total. |
updateTime | string (google-datetime) | Output only. The last update timestamp of the log scope. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource name of the log scope.Log scopes are only available in the global location. For example:projects/my-project/locations/global/logScopes/my-log-scope |
createTime | string (google-datetime) | Output only. The creation timestamp of the log scope. |
description | string | Optional. Describes this log scope.The maximum length of the description is 8000 characters. |
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 5 projects and a maximum of 100 resources in total. |
updateTime | string (google-datetime) | Output only. The last update timestamp of the log scope. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource name of the log scope.Log scopes are only available in the global location. For example:projects/my-project/locations/global/logScopes/my-log-scope |
createTime | string (google-datetime) | Output only. The creation timestamp of the log scope. |
description | string | Optional. Describes this log scope.The maximum length of the description is 8000 characters. |
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 5 projects and a maximum of 100 resources in total. |
updateTime | string (google-datetime) | Output only. The last update timestamp of the log scope. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource name of the log scope.Log scopes are only available in the global location. For example:projects/my-project/locations/global/logScopes/my-log-scope |
createTime | string (google-datetime) | Output only. The creation timestamp of the log scope. |
description | string | Optional. Describes this log scope.The maximum length of the description is 8000 characters. |
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 5 projects and a maximum of 100 resources in total. |
updateTime | string (google-datetime) | Output only. The last update timestamp of the log scope. |
Methods
The following methods are available for this resource:
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.
Name | Datatype | Description |
---|---|---|
foldersId | string | |
locationsId | string | |
logScopesId | string | |
organizationsId | string | |
projectsId | string | |
logScopeId | string | |
pageSize | integer (int32) | |
pageToken | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- projects_locations_log_scopes_get
- organizations_locations_log_scopes_get
- folders_locations_log_scopes_get
- projects_locations_log_scopes_list
- organizations_locations_log_scopes_list
- folders_locations_log_scopes_list
Gets a log scope.
SELECT
name,
createTime,
description,
resourceNames,
updateTime
FROM google.logging.log_scopes
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND logScopesId = '{{ logScopesId }}' -- required;
Gets a log scope.
SELECT
name,
createTime,
description,
resourceNames,
updateTime
FROM google.logging.log_scopes
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND logScopesId = '{{ logScopesId }}' -- required;
Gets a log scope.
SELECT
name,
createTime,
description,
resourceNames,
updateTime
FROM google.logging.log_scopes
WHERE foldersId = '{{ foldersId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND logScopesId = '{{ logScopesId }}' -- required;
Lists log scopes.
SELECT
name,
createTime,
description,
resourceNames,
updateTime
FROM google.logging.log_scopes
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageToken = '{{ pageToken }}'
AND pageSize = '{{ pageSize }}';
Lists log scopes.
SELECT
name,
createTime,
description,
resourceNames,
updateTime
FROM google.logging.log_scopes
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageToken = '{{ pageToken }}'
AND pageSize = '{{ pageSize }}';
Lists log scopes.
SELECT
name,
createTime,
description,
resourceNames,
updateTime
FROM google.logging.log_scopes
WHERE foldersId = '{{ foldersId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageToken = '{{ pageToken }}'
AND pageSize = '{{ pageSize }}';
INSERT
examples
- projects_locations_log_scopes_create
- organizations_locations_log_scopes_create
- folders_locations_log_scopes_create
- Manifest
Creates a log scope.
INSERT INTO google.logging.log_scopes (
data__resourceNames,
data__description,
projectsId,
locationsId,
logScopeId
)
SELECT
'{{ resourceNames }}',
'{{ description }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ logScopeId }}'
RETURNING
name,
createTime,
description,
resourceNames,
updateTime
;
Creates a log scope.
INSERT INTO google.logging.log_scopes (
data__resourceNames,
data__description,
organizationsId,
locationsId,
logScopeId
)
SELECT
'{{ resourceNames }}',
'{{ description }}',
'{{ organizationsId }}',
'{{ locationsId }}',
'{{ logScopeId }}'
RETURNING
name,
createTime,
description,
resourceNames,
updateTime
;
Creates a log scope.
INSERT INTO google.logging.log_scopes (
data__resourceNames,
data__description,
foldersId,
locationsId,
logScopeId
)
SELECT
'{{ resourceNames }}',
'{{ description }}',
'{{ foldersId }}',
'{{ locationsId }}',
'{{ logScopeId }}'
RETURNING
name,
createTime,
description,
resourceNames,
updateTime
;
# Description fields are for documentation purposes
- name: log_scopes
props:
- name: projectsId
value: string
description: Required parameter for the log_scopes resource.
- name: locationsId
value: string
description: Required parameter for the log_scopes resource.
- name: organizationsId
value: string
description: Required parameter for the log_scopes resource.
- name: foldersId
value: string
description: Required parameter for the log_scopes resource.
- name: resourceNames
value: array
description: >
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 5 projects and a maximum of 100 resources in total.
- name: description
value: string
description: >
Optional. Describes this log scope.The maximum length of the description is 8000 characters.
- name: logScopeId
value: string
UPDATE
examples
- projects_locations_log_scopes_patch
- organizations_locations_log_scopes_patch
- folders_locations_log_scopes_patch
Updates a log scope.
UPDATE google.logging.log_scopes
SET
data__resourceNames = '{{ resourceNames }}',
data__description = '{{ description }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND logScopesId = '{{ logScopesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
description,
resourceNames,
updateTime;
Updates a log scope.
UPDATE google.logging.log_scopes
SET
data__resourceNames = '{{ resourceNames }}',
data__description = '{{ description }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND logScopesId = '{{ logScopesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
description,
resourceNames,
updateTime;
Updates a log scope.
UPDATE google.logging.log_scopes
SET
data__resourceNames = '{{ resourceNames }}',
data__description = '{{ description }}'
WHERE
foldersId = '{{ foldersId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND logScopesId = '{{ logScopesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
description,
resourceNames,
updateTime;
DELETE
examples
- projects_locations_log_scopes_delete
- organizations_locations_log_scopes_delete
- folders_locations_log_scopes_delete
Deletes a log scope.
DELETE FROM google.logging.log_scopes
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND logScopesId = '{{ logScopesId }}' --required;
Deletes a log scope.
DELETE FROM google.logging.log_scopes
WHERE organizationsId = '{{ organizationsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND logScopesId = '{{ logScopesId }}' --required;
Deletes a log scope.
DELETE FROM google.logging.log_scopes
WHERE foldersId = '{{ foldersId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND logScopesId = '{{ logScopesId }}' --required;