Class ResourceSearchResult (1.1.0)

A result of Resource Search, containing information of a cloud resoure. .. attribute:: name

The full resource name of this resource. Example: //compute. googleapis.com/projects/my_project_123/zones/zone1/instances/i nstance1. See Cloud Asset Inventory Resource Name Format <https://cloud.google.com/asset-inventory/docs/resource-name- format>__ for more information. To search against the name: - use a field query. Example: name : "instance1" - use a free text query. Example: "instance1"

The project that this resource belongs to, in the form of projects/{PROJECT_NUMBER}. To search against the project:

  • specify the scope field as this project in your search request.

    One or more paragraphs of text description of this resource. Maximum length could be up to 1M bytes. To search against the description: - use a field query. Example: description : "*important instance*" - use a free text query. Example: "*important instance*"

    Labels associated with this resource. See Labelling and grouping GCP resources <https://cloud.google.com/blog/products/gcp/labelling-and- grouping-your-google-cloud-platform-resources>__ for more information. To search against the labels: - use a field query, as following: - query on any label’s key or value. Example: labels : "prod" - query by a given label. Example: labels.env : "prod" - query by a given label’sexistence. Example: labels.env : * - use a free text query. Example: "prod"

    The additional attributes of this resource. The attributes may vary from one resource type to another. Examples: projectId for Project, dnsName for DNS ManagedZone. To search against the additional_attributes: - use a free text query to match the attributes values. Example: to search additional_attributes = { dnsName: "foobar" }, you can issue a query "foobar".

Classes

LabelsEntry

API documentation for asset_v1.types.ResourceSearchResult.LabelsEntry class.