Skip to main content

recent_queries

Creates, updates, deletes, gets or lists a recent_queries resource.

Overview

Namerecent_queries
TypeResource
Idgoogle.logging.recent_queries

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_locations_recent_queries_listselectorganizationsId, locationsIdpageSize, pageToken, filterLists the RecentQueries that were created by the user making the request.
billing_accounts_locations_recent_queries_listselectbillingAccountsId, locationsIdpageSize, filter, pageTokenLists the RecentQueries that were created by the user making the request.
projects_locations_recent_queries_listselectprojectsId, locationsIdfilter, pageToken, pageSizeLists the RecentQueries that were created by the user making the request.
folders_locations_recent_queries_listselectfoldersId, locationsIdpageSize, filter, pageTokenLists the RecentQueries that were created by the user making the request.

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.

NameDatatypeDescription
billingAccountsIdstring
foldersIdstring
locationsIdstring
organizationsIdstring
projectsIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Lists the RecentQueries that were created by the user making the request.

SELECT
*
FROM google.logging.recent_queries
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
;