REST Resource: organizations.locations.logScopes

Resource: LogScope

Describes a group of resources to read log entries from.

JSON representation
{
 "name": string,
 "resourceNames": [
 string
 ],
 "description": string,
 "createTime": string,
 "updateTime": string
}
Fields
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

resourceNames[]

string

Required. Names of one or more parent resources (organizations and folders are not supported.):

  • 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.

description

string

Optional. Describes this log scope.

The maximum length of the description is 8000 characters.

createTime

string (Timestamp format)

Output only. The creation timestamp of the log scope.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014年10月02日T15:01:23Z", "2014年10月02日T15:01:23.045123456Z" or "2014年10月02日T15:01:23+05:30".

updateTime

string (Timestamp format)

Output only. The last update timestamp of the log scope.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014年10月02日T15:01:23Z", "2014年10月02日T15:01:23.045123456Z" or "2014年10月02日T15:01:23+05:30".

Methods

create

Creates a log scope.

delete

Deletes a log scope.

get

Gets a log scope.

list

Lists log scopes.

patch

Updates a log scope.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年09月12日 UTC.