- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- StandardResourceMetadata
- Try it!
Searches all the resources within a given accessible Resource Manager scope (project/folder/organization). This RPC gives callers especially administrators the ability to search all the resources within a scope, even if they don't have .get
permission of all the resources. Callers should have cloudasset.assets.searchAllResources
permission on the requested scope, otherwise the request will be rejected.
HTTP request
GET https://cloudasset.googleapis.com/v1p1beta1/{scope=*/*}/resources:searchAll
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
scope |
Required. The relative name of an asset. The search is limited to the resources within the
Authorization requires the following IAM permission on the specified resource
|
Query parameters
Parameters | |
---|---|
query |
Optional. The query statement. |
assetTypes[] |
Optional. A list of asset types that this request searches for. If empty, it will search all the supported asset types. |
pageSize |
Optional. The page size for search result pagination. Page size is capped at 500 even if a larger value is given. If set to zero, server will pick an appropriate default. Returned results may be fewer than requested. When this happens, there could be more results as long as |
pageToken |
Optional. If present, then retrieve the next batch of results from the preceding call to this method. |
orderBy |
Optional. A comma separated list of fields specifying the sorting order of the results. The default order is ascending. Add |
Request body
The request body must be empty.
Response body
Search all resources response.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"results": [
{
object ( |
Fields | |
---|---|
results[] |
A list of resource that match the search query. |
nextPageToken |
If there are more results than those appearing in this response, then |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
StandardResourceMetadata
The standard metadata of a cloud resource.
JSON representation |
---|
{ "name": string, "assetType": string, "project": string, "displayName": string, "description": string, "additionalAttributes": [ string ], "location": string, "labels": { string: string, ... }, "networkTags": [ string ] } |
Fields | |
---|---|
name |
The full resource name. For example: |
assetType |
The type of this resource. For example: "compute.googleapis.com/Disk". |
project |
The project that this resource belongs to, in the form of |
displayName |
The display name of this resource. |
description |
One or more paragraphs of text description of this resource. Maximum length could be up to 1M bytes. |
additionalAttributes[] |
Additional searchable attributes of this resource. Informational only. The exact set of attributes is subject to change. For example: project id, DNS name etc. |
location |
Location can be "global", regional like "us-east1", or zonal like "us-west1-b". |
labels |
Labels associated with this resource. See Labelling and grouping Google Cloud resources for more information. An object containing a list of |
networkTags[] |
Network tags associated with this resource. Like labels, network tags are a type of annotations used to group Google Cloud resources. See Labelling Google Cloud resources for more information. |