Authorization requires the following IAM permission on the specified resource cryptoKey:
cloudkms.cryptoKeys.get
pageSize
integer
The maximum number of resources to return. The service may return fewer than this value. If unspecified, at most 500 resources will be returned. The maximum value is 500; values above 500 will be coerced to 500.
Optional. A list of resource types that this request searches for. If empty, it will search all the trackable resource types.
Regular expressions are also supported. For example:
compute.googleapis.com.* snapshots resources whose type starts with compute.googleapis.com.
.*Image snapshots resources whose type ends with Image.
.*Image.* snapshots resources whose type contains Image.
See RE2 for all supported regular expression syntax. If the regular expression does not match any supported resource type, an INVALID_ARGUMENT error will be returned.
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-30 UTC."],[],[],null,["# Method: organizations.protectedResources.search\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.SearchProtectedResourcesResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nReturns metadata about the resources protected by the given Cloud KMS [CryptoKey](/kms/docs/reference/inventory/rest/v1/projects.cryptoKeys#CryptoKey) in the given Cloud organization.\n\n### HTTP request\n\n`GET https://kmsinventory.googleapis.com/v1/{scope=organizations/*}/protectedResources:search`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\nResponse message for [KeyTrackingService.SearchProtectedResources](/kms/docs/reference/inventory/rest/v1/organizations.protectedResources/search#google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]