REST Resource: projects.locations.savedQueries Stay organized with collections Save and categorize content based on your preferences.
Resource: SavedQuery
Describes a query that has been saved by a user.
| JSON representation |
|---|
{"name":string,"displayName":string,"description":string,"createTime":string,"updateTime":string,"visibility":enum ( |
| Fields | |
|---|---|
name |
Output only. Resource name of the saved query. In the format: For a list of supported locations, seeSupported Regions After the saved query is created, the location cannot be changed. If the user doesn't provide a [QUERY_ID], the system will generate an alphanumeric ID. |
displayName |
Required. The user specified title for the SavedQuery. |
description |
Optional. A human readable description of the saved query. |
createTime |
Output only. The timestamp when the saved query was created. 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: |
updateTime |
Output only. The timestamp when the saved query was last updated. 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: |
visibility |
Required. The visibility status of this query, which determines its ownership. |
Union fieldquery_oneof. The query that is saved.query_oneof can be only one of the following: | |
loggingQuery |
Logging query that can be executed in Logs Explorer or via Logging API. |
opsAnalyticsQuery |
Analytics query that can be executed in Log Analytics. |
Methods | |
|---|---|
| Creates a new SavedQuery for the user making the request. |
| Deletes an existing SavedQuery that was created by the user making the request. |
| Returns all data associated with the requested query. |
| Lists the SavedQueries that were created by the user making the request. |
| Updates an existing SavedQuery. |
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 2026-01-27 UTC.