Google Cloud Platform Saved Queries API

The Saved Queries API from Google Cloud Platform — 2 operation(s) for saved queries.

GitHub OpenAPI

Operations 5

GET /v1/{v1Id}/{v1Id1}/savedQueries/{savedQueriesId} Get savedQueries #
DELETE /v1/{v1Id}/{v1Id1}/savedQueries/{savedQueriesId} Delete savedQueries #
PATCH /v1/{v1Id}/{v1Id1}/savedQueries/{savedQueriesId} Patch savedQueries #
GET /v1/{v1Id}/{v1Id1}/savedQueries List savedQueries #
POST /v1/{v1Id}/{v1Id1}/savedQueries Create savedQueries #

Documentation

📖
Documentation
https://cloud.google.com/compute/docs/reference/rest/v1
📖
Authentication
https://cloud.google.com/docs/authentication
📖
GettingStarted
https://cloud.google.com/compute/docs/quickstart
📖
RateLimits
https://cloud.google.com/compute/quotas
📖
Documentation
https://cloud.google.com/storage/docs/json_api
📖
Authentication
https://cloud.google.com/storage/docs/authentication
📖
GettingStarted
https://cloud.google.com/storage/docs/quickstart-console
📖
RateLimits
https://cloud.google.com/storage/quotas
📖
Documentation
https://cloud.google.com/functions/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/functions/docs/quickstart
📖
RateLimits
https://cloud.google.com/functions/quotas
📖
Documentation
https://cloud.google.com/kubernetes-engine/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/kubernetes-engine/docs/quickstart
📖
RateLimits
https://cloud.google.com/kubernetes-engine/quotas
📖
Documentation
https://cloud.google.com/bigquery/docs/reference/rest
📖
Authentication
https://cloud.google.com/bigquery/docs/authentication
📖
GettingStarted
https://cloud.google.com/bigquery/docs/quickstarts
📖
RateLimits
https://cloud.google.com/bigquery/quotas
📖
Documentation
https://cloud.google.com/pubsub/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/pubsub/docs/quickstart-console
📖
RateLimits
https://cloud.google.com/pubsub/quotas
📖
Documentation
https://cloud.google.com/vision/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/vision/docs/quickstart
📖
Documentation
https://cloud.google.com/vertex-ai/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/vertex-ai/docs/start/introduction-unified-platform
📖
RateLimits
https://cloud.google.com/vertex-ai/docs/quotas
📖
Documentation
https://cloud.google.com/natural-language/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/natural-language/docs/quickstarts
📖
Documentation
https://cloud.google.com/speech-to-text/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/speech-to-text/docs/quickstart
📖
Documentation
https://cloud.google.com/translate/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/translate/docs/quickstarts
📖
Documentation
https://cloud.google.com/run/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/run/docs/quickstarts
📖
RateLimits
https://cloud.google.com/run/quotas
📖
Documentation
https://cloud.google.com/sql/docs/mysql/admin-api/rest
📖
GettingStarted
https://cloud.google.com/sql/docs/mysql/quickstart
📖
RateLimits
https://cloud.google.com/sql/docs/quotas
📖
Documentation
https://cloud.google.com/spanner/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/spanner/docs/quickstart-console
📖
RateLimits
https://cloud.google.com/spanner/quotas
📖
Documentation
https://cloud.google.com/firestore/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/firestore/docs/quickstart
📖
Documentation
https://cloud.google.com/bigtable/docs/reference/admin/rest
📖
GettingStarted
https://cloud.google.com/bigtable/docs/quickstart
📖
RateLimits
https://cloud.google.com/bigtable/quotas
📖
Documentation
https://cloud.google.com/iam/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/iam/docs/quickstart
📖
Documentation
https://cloud.google.com/dns/docs/reference/rest/v1
📖
GettingStarted
https://cloud.google.com/dns/docs/quickstart
📖
RateLimits
https://cloud.google.com/dns/quotas
📖
Documentation
https://cloud.google.com/logging/docs/reference/v2/rest
📖
GettingStarted
https://cloud.google.com/logging/docs/quickstart-sdk
📖
RateLimits
https://cloud.google.com/logging/quotas
📖
Documentation
https://cloud.google.com/monitoring/api/ref_v3/rest
📖
GettingStarted
https://cloud.google.com/monitoring/docs/quickstart
📖
RateLimits
https://cloud.google.com/monitoring/quotas
📖
Documentation
https://cloud.google.com/dataflow/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/dataflow/docs/quickstarts
📖
RateLimits
https://cloud.google.com/dataflow/quotas
📖
Documentation
https://cloud.google.com/dataproc/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/dataproc/docs/quickstarts
📖
RateLimits
https://cloud.google.com/dataproc/quotas
📖
Documentation
https://cloud.google.com/kms/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/kms/docs/quickstart
📖
Documentation
https://cloud.google.com/secret-manager/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/secret-manager/docs/quickstart
📖
RateLimits
https://cloud.google.com/secret-manager/quotas
📖
Documentation
https://cloud.google.com/artifact-registry/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/artifact-registry/docs/quickstarts
📖
Documentation
https://cloud.google.com/build/docs/api/reference/rest
📖
GettingStarted
https://cloud.google.com/build/docs/quickstart-build
📖
Documentation
https://cloud.google.com/resource-manager/reference/rest
📖
GettingStarted
https://cloud.google.com/resource-manager/docs/creating-managing-projects
📖
Documentation
https://cloud.google.com/tasks/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/tasks/docs/quickstart
📖
RateLimits
https://cloud.google.com/tasks/docs/quotas
📖
Documentation
https://cloud.google.com/scheduler/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/scheduler/docs/quickstart
📖
Documentation
https://cloud.google.com/text-to-speech/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/text-to-speech/docs/quickstart-protocol
📖
Documentation
https://cloud.google.com/api-gateway/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/api-gateway/docs/quickstart
📖
Documentation
https://cloud.google.com/workflows/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/workflows/docs/quickstart-console
📖
Documentation
https://cloud.google.com/deploy/docs/api/reference/rest
📖
Documentation
https://cloud.google.com/dialogflow/cx/docs/reference/rest/v3-overview
📖
GettingStarted
https://cloud.google.com/dialogflow/cx/docs/quick/setup
📖
Documentation
https://cloud.google.com/sensitive-data-protection/docs/reference/rest
📖
GettingStarted
https://cloud.google.com/sensitive-data-protection/docs/quickstart
📖
Documentation
https://cloud.google.com/memorystore/docs/redis/reference/rest

Specifications

Schemas & Data

Other Resources

🔗
Pricing
https://cloud.google.com/compute/pricing
🔗
Console
https://console.cloud.google.com/compute
🔗
ReleaseNotes
https://cloud.google.com/compute/docs/release-notes
🔗
Pricing
https://cloud.google.com/storage/pricing
🔗
Console
https://console.cloud.google.com/storage
🔗
SDKs
https://cloud.google.com/storage/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/storage/docs/release-notes
🔗
Pricing
https://cloud.google.com/functions/pricing
🔗
Console
https://console.cloud.google.com/functions
🔗
ReleaseNotes
https://cloud.google.com/functions/docs/release-notes
🔗
Pricing
https://cloud.google.com/kubernetes-engine/pricing
🔗
Console
https://console.cloud.google.com/kubernetes
🔗
SDKs
https://cloud.google.com/kubernetes-engine/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/kubernetes-engine/docs/release-notes
🔗
Pricing
https://cloud.google.com/bigquery/pricing
🔗
Console
https://console.cloud.google.com/bigquery
🔗
SDKs
https://cloud.google.com/bigquery/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/bigquery/docs/release-notes
🔗
Pricing
https://cloud.google.com/pubsub/pricing
🔗
Console
https://console.cloud.google.com/cloudpubsub
🔗
SDKs
https://cloud.google.com/pubsub/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/pubsub/docs/release-notes
🔗
Pricing
https://cloud.google.com/vision/pricing
🔗
Console
https://console.cloud.google.com/apis/library/vision.googleapis.com
🔗
SDKs
https://cloud.google.com/vision/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/vision/docs/release-notes
🔗
Pricing
https://cloud.google.com/vertex-ai/pricing
🔗
Console
https://console.cloud.google.com/vertex-ai
🔗
ReleaseNotes
https://cloud.google.com/vertex-ai/docs/release-notes
🔗
Pricing
https://cloud.google.com/natural-language/pricing
🔗
Console
https://console.cloud.google.com/apis/library/language.googleapis.com
🔗
SDKs
https://cloud.google.com/natural-language/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/natural-language/docs/release-notes
🔗
Pricing
https://cloud.google.com/speech-to-text/pricing
🔗
Console
https://console.cloud.google.com/apis/library/speech.googleapis.com
🔗
SDKs
https://cloud.google.com/speech-to-text/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/speech-to-text/docs/release-notes
🔗
Pricing
https://cloud.google.com/translate/pricing
🔗
Console
https://console.cloud.google.com/apis/library/translate.googleapis.com
🔗
SDKs
https://cloud.google.com/translate/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/translate/docs/release-notes
🔗
Pricing
https://cloud.google.com/run/pricing
🔗
Console
https://console.cloud.google.com/run
🔗
ReleaseNotes
https://cloud.google.com/run/docs/release-notes
🔗
Pricing
https://cloud.google.com/sql/pricing
🔗
Console
https://console.cloud.google.com/sql
🔗
SDKs
https://cloud.google.com/sql/docs/mysql/apis
🔗
ReleaseNotes
https://cloud.google.com/sql/docs/release-notes
🔗
Pricing
https://cloud.google.com/spanner/pricing
🔗
Console
https://console.cloud.google.com/spanner
🔗
SDKs
https://cloud.google.com/spanner/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/spanner/docs/release-notes
🔗
Pricing
https://cloud.google.com/firestore/pricing
🔗
Console
https://console.cloud.google.com/firestore
🔗
SDKs
https://cloud.google.com/firestore/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/firestore/docs/release-notes
🔗
Pricing
https://cloud.google.com/bigtable/pricing
🔗
Console
https://console.cloud.google.com/bigtable
🔗
SDKs
https://cloud.google.com/bigtable/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/bigtable/docs/release-notes
🔗
Pricing
https://cloud.google.com/iam/pricing
🔗
Console
https://console.cloud.google.com/iam-admin
🔗
SDKs
https://cloud.google.com/iam/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/iam/docs/release-notes
🔗
Pricing
https://cloud.google.com/dns/pricing
🔗
Console
https://console.cloud.google.com/net-services/dns
🔗
SDKs
https://cloud.google.com/dns/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/dns/docs/release-notes
🔗
Pricing
https://cloud.google.com/logging/pricing
🔗
Console
https://console.cloud.google.com/logs
🔗
SDKs
https://cloud.google.com/logging/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/logging/docs/release-notes
🔗
Pricing
https://cloud.google.com/monitoring/pricing
🔗
Console
https://console.cloud.google.com/monitoring
🔗
SDKs
https://cloud.google.com/monitoring/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/monitoring/docs/release-notes
🔗
Pricing
https://cloud.google.com/dataflow/pricing
🔗
Console
https://console.cloud.google.com/dataflow
🔗
SDKs
https://cloud.google.com/dataflow/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/dataflow/docs/release-notes
🔗
Pricing
https://cloud.google.com/dataproc/pricing
🔗
Console
https://console.cloud.google.com/dataproc
🔗
SDKs
https://cloud.google.com/dataproc/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/dataproc/docs/release-notes
🔗
Pricing
https://cloud.google.com/kms/pricing
🔗
Console
https://console.cloud.google.com/security/kms
🔗
SDKs
https://cloud.google.com/kms/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/kms/docs/release-notes
🔗
Pricing
https://cloud.google.com/secret-manager/pricing
🔗
Console
https://console.cloud.google.com/security/secret-manager
🔗
SDKs
https://cloud.google.com/secret-manager/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/secret-manager/docs/release-notes
🔗
Pricing
https://cloud.google.com/artifact-registry/pricing
🔗
Console
https://console.cloud.google.com/artifacts
🔗
SDKs
https://cloud.google.com/artifact-registry/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/artifact-registry/docs/release-notes
🔗
Pricing
https://cloud.google.com/build/pricing
🔗
Console
https://console.cloud.google.com/cloud-build
🔗
SDKs
https://cloud.google.com/build/docs/api/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/build/docs/release-notes
🔗
JSONLD
https://artifacts.apis.io/google-cloud-platform/json-ld/google-cloud-platform-context.jsonld
🔗
Pricing
https://cloud.google.com/resource-manager/pricing
🔗
Console
https://console.cloud.google.com/cloud-resource-manager
🔗
SDKs
https://cloud.google.com/resource-manager/docs/apis
🔗
ReleaseNotes
https://cloud.google.com/resource-manager/docs/release-notes
🔗
Pricing
https://cloud.google.com/tasks/pricing
🔗
Console
https://console.cloud.google.com/cloudtasks
🔗
SDKs
https://cloud.google.com/tasks/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/tasks/docs/release-notes
🔗
Pricing
https://cloud.google.com/scheduler/pricing
🔗
Console
https://console.cloud.google.com/cloudscheduler
🔗
SDKs
https://cloud.google.com/scheduler/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/scheduler/docs/release-notes
🔗
Pricing
https://cloud.google.com/text-to-speech/pricing
🔗
Console
https://console.cloud.google.com/apis/library/texttospeech.googleapis.com
🔗
SDKs
https://cloud.google.com/text-to-speech/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/text-to-speech/docs/release-notes
🔗
Pricing
https://cloud.google.com/api-gateway/pricing
🔗
Console
https://console.cloud.google.com/api-gateway
🔗
ReleaseNotes
https://cloud.google.com/api-gateway/docs/release-notes
🔗
Pricing
https://cloud.google.com/workflows/pricing
🔗
Console
https://console.cloud.google.com/workflows
🔗
SDKs
https://cloud.google.com/workflows/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/workflows/docs/release-notes
🔗
Pricing
https://cloud.google.com/deploy/pricing
🔗
Console
https://console.cloud.google.com/deploy
🔗
SDKs
https://cloud.google.com/deploy/docs/api
🔗
ReleaseNotes
https://cloud.google.com/deploy/docs/release-notes
🔗
Pricing
https://cloud.google.com/dialogflow/pricing
🔗
Console
https://console.cloud.google.com/apis/library/dialogflow.googleapis.com
🔗
SDKs
https://cloud.google.com/dialogflow/cx/docs/reference
🔗
ReleaseNotes
https://cloud.google.com/dialogflow/cx/docs/release-notes
🔗
Pricing
https://cloud.google.com/sensitive-data-protection/pricing
🔗
Console
https://console.cloud.google.com/security/sensitive-data-protection
🔗
SDKs
https://cloud.google.com/sensitive-data-protection/docs/reference/libraries
🔗
ReleaseNotes
https://cloud.google.com/sensitive-data-protection/docs/release-notes
🔗
Pricing
https://cloud.google.com/memorystore/docs/redis/pricing
🔗
Console
https://console.cloud.google.com/memorystore/redis
🔗
SDKs
https://cloud.google.com/memorystore/docs/redis/apis
🔗
ReleaseNotes
https://cloud.google.com/memorystore/docs/redis/release-notes

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-cloud-platform:google-cloud-platform-saved-queries-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-cloud-platform-saved-queries-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloud Asset Saved Queries API
  version: v1
  description: Generated from Google's published Discovery document for Cloud Asset API (cloudasset v1, revision 20261106). 5 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://cloudasset.googleapis.com
tags:
- name: Saved Queries
paths:
  /v1/{v1Id}/{v1Id1}/savedQueries/{savedQueriesId}:
    get:
      operationId: cloudasset.savedQueries.get
      summary: Get savedQueries
      description: Gets details about a saved query.
      parameters:
      - name: v1Id
        in: path
        required: true
        description: Resource name segment (v1Id).
        schema:
          type: string
      - name: v1Id1
        in: path
        required: true
        description: Resource name segment (v1Id1).
        schema:
          type: string
      - name: savedQueriesId
        in: path
        required: true
        description: Resource name segment (savedQueriesId).
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SavedQuery'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
      - apiKey: []
      tags:
      - Saved Queries
    delete:
      operationId: cloudasset.savedQueries.delete
      summary: Delete savedQueries
      description: Deletes a saved query.
      parameters:
      - name: v1Id
        in: path
        required: true
        description: Resource name segment (v1Id).
        schema:
          type: string
      - name: v1Id1
        in: path
        required: true
        description: Resource name segment (v1Id1).
        schema:
          type: string
      - name: savedQueriesId
        in: path
        required: true
        description: Resource name segment (savedQueriesId).
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Empty'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
      - apiKey: []
      tags:
      - Saved Queries
    patch:
      operationId: cloudasset.savedQueries.patch
      summary: Patch savedQueries
      description: Updates a saved query.
      parameters:
      - name: v1Id
        in: path
        required: true
        description: Resource name segment (v1Id).
        schema:
          type: string
      - name: v1Id1
        in: path
        required: true
        description: Resource name segment (v1Id1).
        schema:
          type: string
      - name: savedQueriesId
        in: path
        required: true
        description: Resource name segment (savedQueriesId).
        schema:
          type: string
      - name: updateMask
        in: query
        required: false
        description: Required. The list of fields to update.
        schema:
          format: google-fieldmask
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SavedQuery'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SavedQuery'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
      - apiKey: []
      tags:
      - Saved Queries
  /v1/{v1Id}/{v1Id1}/savedQueries:
    get:
      operationId: cloudasset.savedQueries.list
      summary: List savedQueries
      description: Lists all saved queries in a parent project/folder/organization.
      parameters:
      - name: v1Id
        in: path
        required: true
        description: Resource name segment (v1Id).
        schema:
          type: string
      - name: v1Id1
        in: path
        required: true
        description: Resource name segment (v1Id1).
        schema:
          type: string
      - name: filter
        in: query
        required: false
        description: Optional. The expression to filter resources. The expression is a list of zero or more restrictions combined via logical operators `AND` and `OR`. When `AND` and `OR` are both used in the expression, parentheses must be appropriately used to group the combinations. The expression may also contain regular expressions. See https://google.aip.dev/160 for more information on the grammar.
        schema:
          type: string
      - name: pageSize
        in: query
        required: false
        description: Optional. The maximum number of saved queries to return per page. The service may return fewer than this value. If unspecified, at most 50 will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
        schema:
          type: integer
          format: int32
      - name: pageToken
        in: query
        required: false
        description: Optional. A page token, received from a previous `ListSavedQueries` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSavedQueries` must match the call that provided the page token.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListSavedQueriesResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
      - apiKey: []
      tags:
      - Saved Queries
    post:
      operationId: cloudasset.savedQueries.create
      summary: Create savedQueries
      description: Creates a saved query in a parent project/folder/organization.
      parameters:
      - name: v1Id
        in: path
        required: true
        description: Resource name segment (v1Id).
        schema:
          type: string
      - name: v1Id1
        in: path
        required: true
        description: Resource name segment (v1Id1).
        schema:
          type: string
      - name: savedQueryId
        in: query
        required: false
        description: 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.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SavedQuery'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SavedQuery'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
      - apiKey: []
      tags:
      - Saved Queries
components:
  schemas:
    Empty:
      description: 'A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }'
      properties: {}
      type: object
    SavedQuery:
      description: A saved query which can be shared with others or used later.
      properties:
        labels:
          type: object
          additionalProperties:
            type: string
          description: 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.
        name:
          type: string
          description: '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'
        lastUpdateTime:
          readOnly: true
          format: google-datetime
          type: string
          description: Output only. The last update time of this saved query.
        lastUpdater:
          readOnly: true
          type: string
          description: Output only. The account's email address who has updated this saved query most recently.
        creator:
          description: Output only. The account's email address who has created this saved query.
          type: string
          readOnly: true
        content:
          $ref: '#/components/schemas/QueryContent'
          description: The query content.
        createTime:
          readOnly: true
          type: string
          description: Output only. The create time of this saved query.
          format: google-datetime
        description:
          description: The description of this saved query. This value should be fewer than 255 characters.
          type: string
      type: object
    ListSavedQueriesResponse:
      description: Response of listing saved queries.
      type: object
      properties:
        nextPageToken:
          type: string
          description: A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
        savedQueries:
          description: A list of savedQueries.
          type: array
          items:
            $ref: '#/components/schemas/SavedQuery'
    Options:
      type: object
      description: Contains query options.
      properties:
        outputResourceEdges:
          type: boolean
          description: Optional. If true, the result will output the relevant parent/child relationships between resources. Default is false.
        expandResources:
          description: Optional. If true and IamPolicyAnalysisQuery.resource_selector is not specified, the resource section of the result will expand any resource attached to an IAM policy to include resources lower in the resource hierarchy. For example, if the request analyzes for which resources user A has permission P, and the results include an IAM policy with P on a Google Cloud folder, the results will also include resources in that folder with permission P. If true and IamPolicyAnalysisQuery.resource_selector is specified, the resource section of the result will expand the specified resource to include resources lower in the resource hierarchy. Only project or lower resources are supported. Folder and organization resources cannot be used together with this option. For example, if the request analyzes for which users have permission P on a Google Cloud project with this option enabled, the results will include all users who have permission P on that project or any lower resource. If true, the default max expansion per resource is 1000 for AssetService.AnalyzeIamPolicy][] and 100000 for AssetService.AnalyzeIamPolicyLongrunning][]. Default is false.
          type: boolean
        analyzeServiceAccountImpersonation:
          description: 'Optional. If true, the response will include access analysis from identities to resources via service account impersonation. This is a very expensive operation, because many derived queries will be executed. We highly recommend you use AssetService.AnalyzeIamPolicyLongrunning RPC instead. For example, if the request analyzes for which resources user A has permission P, and there''s an IAM policy states user A has iam.serviceAccounts.getAccessToken permission to a service account SA, and there''s another IAM policy states service account SA has permission P to a Google Cloud folder F, then user A potentially has access to the Google Cloud folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Another example, if the request analyzes for who has permission P to a Google Cloud folder F, and there''s an IAM policy states user A has iam.serviceAccounts.actAs permission to a service account SA, and there''s another IAM policy states service account SA has permission P to the Google Cloud folder F, then user A potentially has access to the Google Cloud folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Only the following permissions are considered in this analysis: * `iam.serviceAccounts.actAs` * `iam.serviceAccounts.signBlob` * `iam.serviceAccounts.signJwt` * `iam.serviceAccounts.getAccessToken` * `iam.serviceAccounts.getOpenIdToken` * `iam.serviceAccounts.implicitDelegation` Default is false.'
          type: boolean
        expandGroups:
          type: boolean
          description: Optional. If true, the identities section of the result will expand any Google groups appearing in an IAM policy binding. If IamPolicyAnalysisQuery.identity_selector is specified, the identity in the result will be determined by the selector, and this flag is not allowed to set. If true, the default max expansion per group is 1000 for AssetService.AnalyzeIamPolicy][]. Default is false.
        expandRoles:
          description: Optional. If true, the access section of result will expand any roles appearing in IAM policy bindings to include their permissions. If IamPolicyAnalysisQuery.access_selector is specified, the access section of the result will be determined by the selector, and this flag is not allowed to set. Default is false.
          type: boolean
        outputGroupEdges:
          description: Optional. If true, the result will output the relevant membership relationships between groups and other groups, and between groups and principals. Default is false.
          type: boolean
    IdentitySelector:
      properties:
        identity:
          type: string
          description: 'Required. The identity appear in the form of principals in [IAM policy binding](https://cloud.google.com/iam/reference/rest/v1/Binding). The examples of supported forms are: "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com". Notice that wildcard characters (such as * and ?) are not supported. You must give a specific identity.'
      description: Specifies an identity for which to determine resource access, based on roles assigned either directly to them or to the groups they belong to, directly or indirectly.
      type: object
    ResourceSelector:
      type: object
      description: Specifies the resource to analyze for access policies, which may be set directly on the resource, or on ancestors such as organizations, folders or projects.
      properties:
        fullResourceName:
          type: string
          description: Required. The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format) of a resource of [supported resource types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#analyzable_asset_types).
    AccessSelector:
      properties:
        roles:
          items:
            type: string
          type: array
          description: Optional. The roles to appear in result.
        permissions:
          items:
            type: string
          description: Optional. The permissions to appear in result.
          type: array
      type: object
      description: Specifies roles and/or permissions to analyze, to determine both the identities possessing them and the resources they control. If multiple values are specified, results will include roles or permissions matching any of them. The total number of roles and permissions should be equal or less than 10.
    QueryContent:
      properties:
        iamPolicyAnalysisQuery:
          $ref: '#/components/schemas/IamPolicyAnalysisQuery'
          description: An IAM Policy Analysis query, which could be used in the AssetService.AnalyzeIamPolicy RPC or the AssetService.AnalyzeIamPolicyLongrunning RPC.
      description: The query content.
      type: object
    ConditionContext:
      description: The IAM conditions context.
      properties:
        accessTime:
          format: google-datetime
          description: The hypothetical access timestamp to evaluate IAM conditions. Note that this value must not be earlier than the current time; otherwise, an INVALID_ARGUMENT error will be returned.
          type: string
      type: object
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
    IamPolicyAnalysisQuery:
      description: IAM policy analysis query message.
      type: object
      properties:
        accessSelector:
          $ref: '#/components/schemas/AccessSelector'
          description: Optional. Specifies roles or permissions for analysis. This is optional.
        identitySelector:
          $ref: '#/components/schemas/IdentitySelector'
          description: Optional. Specifies an identity for analysis.
        scope:
          description: Required. The relative name of the root asset. Only resources and IAM policies within the scope will be analyzed. This 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"). To know how to get organization ID, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). To know how to get folder or project ID, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
          type: string
        options:
          $ref: '#/components/schemas/Options'
          description: Optional. The query options.
        conditionContext:
          $ref: '#/components/schemas/ConditionContext'
          description: Optional. The hypothetical context for IAM conditions evaluation.
        resourceSelector:
          $ref: '#/components/schemas/ResourceSelector'
          description: Optional. Specifies a resource for analysis.
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/cloud-platform: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
            https://www.googleapis.com/auth/cloudasset: See, edit, configure, and delete your Google Cloud Asset data and see the email address for your Google Account
externalDocs:
  url: https://cloud.google.com/asset-inventory/docs/quickstart
x-provenance:
  method: harvested
  publisher: Google
  source: https://cloudasset.googleapis.com/$discovery/rest?version=v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261106)