Returns aggregate information about the resources protected by the given Cloud KMS CryptoKey
. Only resources within the same Cloud organization as the key will be returned. The project that holds the key must be part of an organization in order for this call to succeed.
HTTP request
GET https://kmsinventory.googleapis.com/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/**}/protectedResourcesSummary
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The resource name of the Authorization requires the following IAM permission on the specified resource
|
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
Aggregate information about the resources protected by a Cloud KMS key in the same Cloud organization as the key.
JSON representation |
---|
{ "name": string, "resourceCount": string, "projectCount": integer, "resourceTypes": { string: string, ... }, "cloudProducts": { string: string, ... }, "locations": { string: string, ... } } |
Fields | |
---|---|
name |
The full name of the ProtectedResourcesSummary resource. Example: projects/test-project/locations/us/keyRings/test-keyring/cryptoKeys/test-key/protectedResourcesSummary |
resourceCount |
The total number of protected resources in the same Cloud organization as the key. |
projectCount |
The number of distinct Cloud projects in the same Cloud organization as the key that have resources protected by the key. |
resourceTypes |
The number of resources protected by the key grouped by resource type. |
cloudProducts |
The number of resources protected by the key grouped by Cloud product. |
locations |
The number of resources protected by the key grouped by region. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.