Method: savedQueries.create

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

HTTP request

POST https://cloudasset.googleapis.com/v1/{parent=*/*}/savedQueries

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The name of the project/folder/organization where this savedQuery should be created in. It can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345").

Query parameters

Parameters
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][0-9]-.

Notice that this field is required in the saved query creation, and the name field of the savedQuery will be ignored.

Request body

The request body contains an instance of SavedQuery.

Response body

If successful, the response body contains a newly created instance of SavedQuery.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.