REST Resource: folders.locations.buckets.views

Resource: LogView

Describes a view over log entries in a bucket.

JSON representation
{"name":string,"description":string,"createTime":string,"updateTime":string,"filter":string}
Fields
name

string

Output only. The resource name of the view.

For example:

projects/my-project/locations/global/buckets/my-bucket/views/my-view

description

string

Optional. Describes this view.

createTime

string (Timestamp format)

Output only. The creation timestamp of the view.

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-02T15:01:23Z","2014-10-02T15:01:23.045123456Z" or"2014-10-02T15:01:23+05:30".

updateTime

string (Timestamp format)

Output only. The last update timestamp of the view.

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-02T15:01:23Z","2014-10-02T15:01:23.045123456Z" or"2014-10-02T15:01:23+05:30".

filter

string

Optional. Filter that restricts which log entries in a bucket are visible in this view.

Filters must be logical conjunctions that use the AND operator, and they can use any of the following qualifiers:

  • SOURCE(), which specifies a project, folder, organization, or billing account of origin.
  • resource.type, which specifies the resource type.
  • LOG_ID(), which identifies the log.

They can also use the negations of these qualifiers with the NOT operator.

For example:

SOURCE("projects/myproject") AND resource.type = "gce_instance" AND NOT LOG_ID("stdout")

Methods

create

Creates a view over log entries in a log bucket.

delete

Deletes a view on a log bucket.

get

Gets a view on a log bucket.

getIamPolicy

Gets the access control policy for a resource.

list

Lists views on a log bucket.

patch

Updates a view on a log bucket.

setIamPolicy

Sets the access control policy on the specified resource.

testIamPermissions

Returns permissions that a caller has on the specified resource.

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

Last updated 2025-09-12 UTC.