savedQueries

POST /v1/{v1Id}/{v1Id1}/savedQueries

Creates a saved query in a parent project/folder/organization.

Request

  • Base URL
    https://cloudasset.googleapis.com
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/cloud-platform
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/cloud-platform

Path parameters

v1Id, string required
v1Id1, string required

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

savedQueryId, string

Required. The ID to use for the saved query, which must be unique in the specified parent. It will become the final component of the saved query's resource name. This value should be 4-63 characters, and valid characters are a-z-. Notice that this field is required in the saved query creation, and the name field of the saved_query will be ignored.

Request body

SavedQuery required

A saved query which can be shared with others or used later.

content, QueryContent

The query content.

createTime, string google-datetime

Output only. The create time of this saved query.

creator, string

Output only. The account's email address who has created this saved query.

description, string

The description of this saved query. This value should be fewer than 255 characters.

labels, object

Labels applied on the resource. This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.

lastUpdateTime, string google-datetime

Output only. The last update time of this saved query.

lastUpdater, string

Output only. The account's email address who has updated this saved query most recently.

name, string

The resource name of the saved query. The format must be: * projects/project_number/savedQueries/saved_query_id * folders/folder_number/savedQueries/saved_query_id * organizations/organization_number/savedQueries/saved_query_id

Response

Successful response

SavedQuery required

A saved query which can be shared with others or used later.

content, QueryContent

The query content.

createTime, string google-datetime

Output only. The create time of this saved query.

creator, string

Output only. The account's email address who has created this saved query.

description, string

The description of this saved query. This value should be fewer than 255 characters.

labels, object

Labels applied on the resource. This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.

lastUpdateTime, string google-datetime

Output only. The last update time of this saved query.

lastUpdater, string

Output only. The account's email address who has updated this saved query most recently.

name, string

The resource name of the saved query. The format must be: * projects/project_number/savedQueries/saved_query_id * folders/folder_number/savedQueries/saved_query_id * organizations/organization_number/savedQueries/saved_query_id

Changes

No recorded changes to this operation across all 6 revisions of this API.